Click here to Skip to main content
15,918,050 members
Home / Discussions / C#
   

C#

 
GeneralRe: Rich Text Box Pin
Sebastian Schneider14-Mar-05 2:48
Sebastian Schneider14-Mar-05 2:48 
GeneralRe: Rich Text Box Pin
rmedo15-Mar-05 1:00
rmedo15-Mar-05 1:00 
Generalrestricting entry in a text box Pin
ameto13-Mar-05 23:31
ameto13-Mar-05 23:31 
GeneralRe: restricting entry in a text box Pin
V.14-Mar-05 0:16
professionalV.14-Mar-05 0:16 
GeneralRe: restricting entry in a text box Pin
the last free name14-Mar-05 2:14
the last free name14-Mar-05 2:14 
GeneralRe: restricting entry in a text box Pin
S. Senthil Kumar14-Mar-05 16:39
S. Senthil Kumar14-Mar-05 16:39 
GeneralCHECKSUM VERIFYING FUNCTION Pin
maheshfour13-Mar-05 23:30
maheshfour13-Mar-05 23:30 
GeneralStartup Object C# Pin
Anonymous13-Mar-05 23:16
Anonymous13-Mar-05 23:16 
Hello,

When I create a application in C#, a "public void" Main appears. This is the applications entry point. In fact, this sub has nothing to do with the class containing it. For example, it seems like this:

{
Application.Run(new Form1);
}


But when this Form1 has to load another form, for example to enter your name, and that second form has to store your name in a variable in the main form, how do you have to point to the form with wich the application started?
I've tried the following changement in the 'Main' sub:

{
Form1 f1 = new Form1();
Application.Run(f1);
}

I thought that I could point to the startup instance from Form1 by using 'f1' but this doesn't work. I've also tried it by setting an empty class only containing the "void Main" as startup object, but this also has no result. From the point where you use Application.Run... the instance isn't available anymore.

GeneralRe: Startup Object C# Pin
Colin Angus Mackay14-Mar-05 0:47
Colin Angus Mackay14-Mar-05 0:47 
GeneralPacking and deploying C# .Net application Pin
rajasekar_2913-Mar-05 22:28
rajasekar_2913-Mar-05 22:28 
GeneralRe: Packing and deploying C# .Net application Pin
Christian Wikander13-Mar-05 22:50
Christian Wikander13-Mar-05 22:50 
GeneralRe: Packing and deploying C# .Net application Pin
rajasekar_2913-Mar-05 23:03
rajasekar_2913-Mar-05 23:03 
GeneralXML Parsing Pin
jatin.mehta@gmail.com13-Mar-05 21:49
jatin.mehta@gmail.com13-Mar-05 21:49 
GeneralRe: XML Parsing Pin
Christian Wikander13-Mar-05 22:19
Christian Wikander13-Mar-05 22:19 
GeneralParsing XML Pin
Anonymous13-Mar-05 21:45
Anonymous13-Mar-05 21:45 
GeneralI like convert Icon to String Pin
VictorVB13-Mar-05 20:56
VictorVB13-Mar-05 20:56 
GeneralRe: I like convert Icon to String Pin
J4amieC13-Mar-05 22:24
J4amieC13-Mar-05 22:24 
GeneralRe: I like convert Icon to String Pin
VictorVB13-Mar-05 23:50
VictorVB13-Mar-05 23:50 
GeneralRe: I like convert Icon to String Pin
J4amieC14-Mar-05 0:57
J4amieC14-Mar-05 0:57 
Generalbypassing the button event Pin
maheshfour13-Mar-05 20:11
maheshfour13-Mar-05 20:11 
GeneralRe: bypassing the button event Pin
Christian Wikander13-Mar-05 21:26
Christian Wikander13-Mar-05 21:26 
GeneralRe: bypassing the button event Pin
ameto13-Mar-05 23:37
ameto13-Mar-05 23:37 
GeneralRe: bypassing the button event Pin
Christian Wikander13-Mar-05 23:46
Christian Wikander13-Mar-05 23:46 
GeneralRe: bypassing the button event Pin
maheshfour14-Mar-05 0:05
maheshfour14-Mar-05 0:05 
GeneralRe: bypassing the button event Pin
mav.northwind14-Mar-05 0:17
mav.northwind14-Mar-05 0:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.