If I design a program in C#, iit will still run on a computer without the .NET Framework, right? I don't see why it wouldn't, but I thought I should ask. Thanks in advance!
*** Never give me an answer having anything to do with Visual Studio. I don't have this because I have two computers, one being my dad's mac, which is connected to the internet, the other being my pc, which is, sadly, not connected to the internet. The setup for the Visual C# program I think is called a "bootstrap" program, and it needs to connect to the internet to install the program. THEREFORE I cannot install this program onto my pc.***
the answer is no: the CLR compilers (C#, C++/CLI and VB.NET) emit MSIL code, not native code,
so you need the .NET Framework to JIT and execute that;
and your app also needs the DLLs (such as mscorlib.dll) that contain the system classes
(#using System.Text and the like) and come with the .NET Framework.
And before you ask, you cannot automate a FrameWork installation, not from within an app,
not even from within an installer.
So you need the Framework and you have to install it manually, separate from any app.
I think there are CD/DVDs that contain the Framework, I dont think you need Internet
to do it.
BTW modern PCs, if they have Windows, also have (a couple of versions of) the .NET
hello there guys... i want to dial a phone number and play a sound message using the fax modem and C# 2005... i have been searching information but i haven't found anything yet... if you have any idea, or some code i'll appreciate it... i'm working on my thesis and it's a very important part of the software!.... thanks a lot!...
I'm writing an application that implements an on-screen keyboard (because the Windows on-screen keyboard is extremely small and hard to use) and I'm having problems setting focus to the desired window in which the user wishes to type.
I'm using a few User32 API calls to get the active window handle number and then set the active window once I know what the handle is. This seems to be working OK. However, the window which has focus (the one receiving the typing) flickers as the user clicks on a key.
This is because as the user touches a key to type, it gives the keyboard focus and then immediately sends focus back to the window in which the user is typing, hence the flickering. So...
How can I eliminate the change of focus and always give focus to the desired window so that there is no flickering back and forth between my keyboard application and the window receiving the typing?
This is not just a standalone keyboard, but is a small part of a larger piece of software. Consequently, there are occasions when the user must use this on-screen keyboard to type into a window within it's parent application or into different forms within the app. One form contains a browser control to a company website. When they keyboard is used to type into any text field on a webpage displayed in the browser control, only every other word is sent to that text box. Two key strokes are required to output one letter. What could be a possible cause of this and how might I go about fixing it?
ANY suggestions or help is much appreciated. Code examples in VB.NET, VB 2005, and C# are fine. C++ OK too but only if it's immediately applicable and can be converted easily to VB.NET.
I know this was a while ago for you but I am facing exect same issue, did you manage to solve this?
Also I would like to hide the keyboard when receving field losses focus (other than to keyboard), did you implement this part too?
If I have a big article with different fonts and mixed with some picture to represent in browser (with asp - client and c# - server) how can I do it?
If I have the document in any db and that dacument can be very larg to represent in a simple page. I wan to represent in simple page with 2 part like a book with 2 pages. But if document is biger then 2 pages I wan to put any button to go to another pice of document in that 2 pages.
I'm looking some think like word, but in server - client technice.
I am assuming, the class car had array object color. When you try tp pass Array of color to the method CarData, because carCollection is a type of List, you need to past the index of the car collection which means:
There was a project on here that would fix the problem of seeing controls paint after calling .ShowDialog(). I believe it was just a trick where the form was painted into memory and then displayed - but it did make for a more pleasant user experience. I tried searching and cannot locate it.
Does anyone know the article, or know how I might go about doing this?
I've got a 16-bit Windows application that I'm trying to run from within a C# WinForms application, but it throws "Win32Exception was unhandled - the parameter is incorrect".
How do you call a 16-bit app from C#?
Here's what I've got. Apologies if this is too much information, but I figured I should err on the side of too much rather than too little.
System.Diagnostics.Process p = new System.Diagnostics.Process();<br />
p.StartInfo.FileName = "c:\\My16BitApp.exe";<br />
p.StartInfo.UseShellExecute = true;<br />
I can run my 16-bit app successfully by going to Start > Run and typing in "c:\My16BitApp.exe" so I know XP can handle it. As a sanity check, I also created a batfile (RunMy16BitApp.bat) that contains the following:
When I run that bat file from the command line (or Run dialog) it works fine. If I run the bat file from C# using Process.Start(), the following message is displayed in the cmd window:
The system cannot execute the specified program.<br />
Press any key to continue
What am I missing? Thanks for your help!
MSDN has the following information, which brings me back to where I am (trying to run a 16-bit program from a 32-bit program):
Failure to Start
If the Shell function cannot start the named program, a FileNotFoundException error occurs. This can happen, for example, when you attempt to run a 16-bit program, such as command.com, from an application using System.Windows.Forms. For a workaround, you can run a 32-bit program that calls the desired 16-bit program. In the case of command.com, you can run cmd.exe as an alternative.