Answer Questions
Josh23423 How to auto-generate .aspx and .cs
Now I need to auto-generate .aspx file.Do I use System.IO.StreamWriter or others How can I do Are you generating the .aspx/.cs at runtime Can you just add a new page and have VS generate it You can use System.IO.StreamWriter to simply create and write to a new file (but you'd still need to know what you need in the .aspx file). using (System.IO. StreamWriter sw = new System.IO. StreamWriter ( @" ...Show All
Robert Schneider how to add properties in Process.Start()?
How do I add properties in Process.Start() this is my code: Process runCommand = new Process(); runCommand.StartInfo = new ProcessStartInfo("myconsole.exe"); runCommand.Start(); runCommand.WaitForExit(); However what I would like to get out is something like this in console: C:\myconsole.exe properties How can I do that You can get the output from your console as follows: usi ...Show All
evercool How can I launch my another managed executable file ?
The sitaution is like this : I have a windows app. executable file say a.exe and I want to launch this a.exe from the Main() method of another console project. Help, please. You can use the Process class in the System.Diagnostics namespace. public void Main( string [] args ) { System.Diagnostics.Process.Start( @"c:\MyFolder\a.exe" ); } //you can also start your executab ...Show All
john ninan Trouble with Object Arrays
I seem to be having a bit of trouble with using object arrays inside of another object. I am writing an IM application (the server part) and I need to be able to listen for new connections and recieve messages from open connections . I am of course using threads to do this and am using TCP which as you know will wait and wait and wait until a connection comes in. I need to be able to still transmit messages from users al ...Show All
Dimitris_De updating the UI with progress bar while Business Layer in process
Hi I'm developing a windows based c# application. How do I update the UI with progress bar while Business Layer in process where my BL is in a seprate Machine in the same network. I tried by placing a thread to update the progress bar and at the same time BL function will also execute. But this doesn't seems to be working properly. can any one sugest any methodolgies for this Regards Karthik For starters you ...Show All
Mary555 Transparent background
Hello.I have a question.I use VC# and I wan' to create a nonrectangular form.I have create the background image with the transparent key: blue, but when I compile the project the application is not transparent! I most change the color depth of my Windows environment!!! This is a big problem.When the user launch my application, I cannot tell him: "Hey!Change your color depth to 16 bit because the applicatio ...Show All
Steve - new to VPF9 tracking registry changes
Hi, Is there any way to get notified about Registry's changes I mean something like an event be occured if the Registry chaneges by user our an application. With tahx Thanx, that's it. Off hand I can't think of a CLR class to do this directly. One approach would be to use WMI to find out about registry changes via RegistryTreeChangeEvent, RegistryKeyChangeEvent and/or RegistryValueChangeEvent http://msdn.microsoft.com ...Show All
Electronick Singleton pattern WITH command-line passing?
Hi, I would like to create a c# application that follows the singleton pattern in that it can only be executed once. I can already do this using mutex or similar methods. However, once I have established that an instance is already running, how do I pass the command-line parameters from the [about to be shutdown] second instance to the first instance Therefore, if I run this: "c:\program files\myapp\myapp.exe AFile.xml" ...Show All
S Jeya Capture Live Video
I want to capture live video from USB camera...anywhere I can look out for help in c# ...Show All
RecursiveS enum MyEnum : short { ENUM_ELEMENT = SHRT_MIN } = Warning C4341 ???
Am I missing something here I'm using VS 2005, and this: enum MyEnum : short { ENUM_ELEMENT = SHRT_MIN }; Results in this: warning C4341: 'ENUM_ELEMENT' : signed value is out of range for enum constant BTW, I tried SHRT_MIN+1 and got the same thing. My apologies, I posted this in the wrong place. I'm using C++. I've reposted it here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID ...Show All
Gordon Smith Regarding WebBrowser Control
i am working with c#.net Console application. i m using the following code snippet NavigateDocumnet() { object o = null; // some code here // Every time <b>"NavgateFile</b>" value is changed" m_WebBrowser.Navigate(NavigateFile,ref o,ref o,ref o,ref o);//<b>problem is here</b> // some code here NavigateDocument(); // Recursive funtion } <b>in Document_Completed</b> { mshtml.IHTMLD ...Show All
Jaydip_Bagchi Can I trigger timer interval of 24 hours?
Hi all, I would like to perform a job daily. May I know how to trigger a timer of interval 24 hours to perform the job Can anyone please help Thanks Hi all, I need to create this as a service. And also, I had also some other task to be done on the service with different timer interval. Can anyone please help you can do it with a windows form timer, o ...Show All
Lakshmi Kiranmayi C# Express Publication
I am working on an application in C# Express. The program works perfectly in the IDE in debug mode. I went to make a test build with the the one-step deyployment that is provided in the C# IDE and it said the build was completed successfully. I then went to install the application but when I tried to run it the program would not start and I was propted to send an error report. Does anyone have any ideas on why my program would not build correctl ...Show All
Slowpoison How to set a ConnectionString Setting at runtime?
Hi there Lets see, I have an application handling data in a database. All dataacess is done in a Dll-file. The dll-file has a "ConnectionString" setting saved in the Setting.setting file. By default this type can only be used in application-scope, which makes it readonly. At startup my application does a "valid" check on the connectionstring and if its not valid the user is given the option to input a new valid conne ...Show All
AchLog Validation Philosophy
I am working with a Winform in VS 2005. I have been reading some books lately that say that using the error provider and checking it when you save or exit a form is a better, (less intrusive) way of doing validation than putting up dialog boxes. I see the wisdom to it but I wonder what should happen when you have many records in a form That is, lets say I have a winform with the Standard menu and toolbar on it that VS creates automatically, b ...Show All
