I'm making this application in c#.net, just for personal use and I'm just making it for practice and to learn more about c#.net programming.
I know java script is meant for web applications, but maybe there are ways to use them in windows applications as well.
No you can't use them directly.
You could technically make a library that parses JQuery and does the same things... or you could make a C# equivalent of the same functionality, but that seems like more work than it's worth.
If you are looking to practice c#.net then practice c#.net, even if you could use javascript/JQuery that wouldn't get you much c# practice would it.
Regular windows (desktop) applications will not run on javascript.
However, windows 8 store applications (either for windows 8 desktop, or windows mobile) can be created using HTML5 & js.
This series should give you a decent start: http://www.microsoftvirtualacademy.com/training-courses/developing-windows-store-apps-with-html5-jump-start#?fbid=ldvGrgy_tPQ
Related
Is it possible to write an universal app for windows where the logic is written in C# and the styling takes place in HTML and CSS like it is possible with Xamarin Hybrid Apps for Android/iOS?
So far I have only know of C# & XAML or Javascript & HTML/CSS. Either I have to rewrite all my styling in XAML or all my logic in javascript.
Have you heard about using Windows Runtime Components which should do what you are asking for?
https://msdn.microsoft.com/en-us/library/hh441572.aspx
"By using the Windows Runtime, you can create components (essentially DLLs) in C++, C#, or Visual Basic, and call into them in a simple and natural way from a Windows Store app that's built by using JavaScript"
This may be a dumb question...
When I log into Starcraft 2 and see that beautiful UI, I can't help but wonder if it's designed using Windows Forms (.Net or C#). Is the login box just some kind of Windows dialog or do they do their own thing - whatever that may be?
Is it possible to get that much customization within Windows Forms?
No. Games and other apps that use DirectX to take control of the video device don't use WinForms or even the Win32 API for screen output.
StarCraft 2 most likely implements its own windowing and UI system, completely independent of the Windows API or WinForms library.
Yes, you can write an app in C# to perform similar DirectX graphics output, but using DirectX is not as simple as working with WinForms. I wouldn't recommend attempting to write a DirectX app as a way to teach yourself C# unless you are already very experienced with DirectX through other languages or tools (C++, mostly).
WinForms is fine for learning C# and whatever IDE tool chain you choose to use. After you're comfortable with C# patterns and terminology, then tackle learning how to write DirectX code with C#.
No. They use DirectX. DirectX bypasses normal windows and operates at alower level.
You can customize a form to a great degree. You have full control over painting it to look however you want.
I just installed the Windows 8 RTM/64 bit Professional version on a separate partition, and am learning the details of how to make Win 8 apps. I'd like to reuse some code from an earlier webapp I wrote, using asp.net and MVC3. Is there a way to use the Google Maps API with a C#/xaml app? I guess it'd be a lot easier for me, less having to reinvent the wheel and just pasting code, but I'm sorta at a loss how I'd do it.
The code behind for the asp.net app was written in C#, and it parses XML. On the other hand, could I do this with a JS/HTML5 app? Is there someway I can use server side code in a Win 8 app? I'm not sure if that question even makes sense.
Thanks,
Amanda
The Javascript api would have to be implemented in an HTML5 Win 8 App. However, you could use the static map API. You can certainly use server side code in your Win 8 apps. The main difference is that you need to make Asynchronous calls when calling services. The System.Net.HTTP class can help you with this. The best method to parse XML is with LINQ.
I need to develop a C# touch-screen desktop application with a "modern good-looking" UI.
How would you approach it? I´ve got in mind using Flash (just for the UI) or WPF... but i´m open to any idea or any third-party C# UI you´d know.
Is Flash easy to integrate with C#?
Thanks for your knowledge!
You should look for a AMF remoting library in C#.
Remoting is when you call a function on your server from flash.
AMF (version 0 or 3) is a binary format used to encode object transfered
between client and server
Weborb and fluorine are solutions for this.
see : .NET and AMF
You will probably be doing well with a third party framework to avoid the overhead of writing user interactions, controls, etc.
A couple of options are
http://xamarin.com/
http://www.resco.net/developer/mobileformstoolkit/
A review of these options is provided here.
I recall combining a flash interface with a C# back-end back in university. There's a method called fscommand() that will take a couple of string parameters (I may be mistaken, read up on it) to pass to and from the interface and the C# "code-behind".Flash is an ok option, but if I were you I'd opt for a WPF interface. I'm a huge fan of the telerik libraries, their WPF one allows you to create the most modern-looking interfaces and dashboards. Not to mention that the skills you will acquire while learning enough about wpf will be hugely beneficial in your career as a developer the way things are going (depending, obviously, on what direction you're heading).
FlashBuilder 4.6 has some nice functionality for quickly building a UI that work on a desktop or mobile device. You could use FluorineFX (free) or webOrb on a webserver to send data back and forth to a database server if that were needed. If you build it with the Flashbuilder 4.6 mobile project template, it would work on a iPad, mac, windows pc, or android device as well. Since a pc touchscreen should use the same type of finger gestures as a mobile app, this might be a nice way to go. (I don't actually have a touchscreen on my pc, but it runs well with a mouse, so I'd assume it worked with gestures too).
Adobe.tv has lots of examples of building a mobile app project (Which also runs on a PC) and there is a Flashbuilder 4.6 free trial.
http://flex.org/
Using ExternalInterface in AS3 is it possible to call OS (C#?) functions within XP?
Example: Set the desktop background to a image supplied by a flash app?
If it is possible would it be different calls when applied to different OS. And what about cross over the Mac?
Any information would be great
Thanks
If you're launching the swf from within a C# app, external interface will do just fine. Nothing will change on the flash side, but you'll need to go through a couple hoops to get it to work in C#. It's not as simple as AMF or External Interface to JS.
All the communications to C# get converted to XML describing the data, and you've gotta write XML to send back to flash. Other than that though, its relativly simple.
Here's some info on how to do it. The AS portion is Flash 8/AS2, but the C# portion should say the same.
When working with Flash from a webpage or as a desktop app, you are limited to a small security sandbox and you will not be able to make any relevant OS call. I thought that switching to AIR would give the developper more flexibility but it doesn't seem correct either. From "The Pros and Cons of Adobe Air":
AIR apps have
file access, clipboard access, support
multiple windows, support drag and
drop, and can trigger notifications
(toast in Windows). If you app needs
to interact with the desktop in other
ways, the chances are that AIR is not
suitable. For example, there is no
access to COM automation, and no way
to execute external applications. The
reason is to maintain cross-platform
compatibility. That's a worthy goal,
but it would be good to have a way out
of the sandbox. Unlike Java or .NET,
you cannot extend AIR with custom
native code libraries. Nor can you
call operating system APIs.
As Alex Jillard commented, if your swf is called inside a C# desktop application, you should be able to access more OS funcionalities although I'm not sure how.
You could use as already mentioned AIR. Another idea would be to use HippoHX (I haven't written this, the similarity with my username is just coincidence). It runs on top of the NekoVM and gives you unrestricted (so no limitations like in AIR ) access to the system.