Click here to Skip to main content
15,891,033 members
Home / Discussions / C#
   

C#

 
GeneralRe: new form in center of window Pin
Sunshine Always21-Feb-07 23:19
Sunshine Always21-Feb-07 23:19 
GeneralRe: new form in center of window Pin
Martin#21-Feb-07 23:27
Martin#21-Feb-07 23:27 
GeneralRe: new form in center of window Pin
Sunshine Always22-Feb-07 0:21
Sunshine Always22-Feb-07 0:21 
GeneralRe: new form in center of window Pin
Stefan Troschuetz21-Feb-07 23:27
Stefan Troschuetz21-Feb-07 23:27 
GeneralRe: new form in center of window Pin
Sunshine Always22-Feb-07 0:23
Sunshine Always22-Feb-07 0:23 
QuestionHow to get dll of web project in 2005 Pin
NanaAM21-Feb-07 22:50
NanaAM21-Feb-07 22:50 
QuestionHw can i make a variable visible in whole window project? Pin
Binod K21-Feb-07 22:47
Binod K21-Feb-07 22:47 
AnswerRe: Hw can i make a variable visible in whole window project? Pin
Martin#21-Feb-07 22:59
Martin#21-Feb-07 22:59 
Hello,

You could use a const or static variable.
//mainformcode
public const int constint = 100;
public static int staticint = 100;

public Form1()
{
InitializeComponent();
}

//other class
int i1 = Form1.constint;
//setting a const variable is not possible at this point (Form1.constint = 200, will not compile)

int i2 = Form1.staticint;
Form1.staticint = 200;

All the best,

Martin
GeneralRe: Hw can i make a variable visible in whole window project? Pin
Colin Angus Mackay21-Feb-07 23:36
Colin Angus Mackay21-Feb-07 23:36 
GeneralRe: Hw can i make a variable visible in whole window project? Pin
Martin#21-Feb-07 23:42
Martin#21-Feb-07 23:42 
QuestionOpening a client side document Pin
markymark8221-Feb-07 22:44
markymark8221-Feb-07 22:44 
AnswerRe: Opening a client side document Pin
Stefan Troschuetz21-Feb-07 23:13
Stefan Troschuetz21-Feb-07 23:13 
AnswerRe: Opening a client side document Pin
andre_swnpl21-Feb-07 23:15
andre_swnpl21-Feb-07 23:15 
Questiongetting bites from a file Pin
rzvme21-Feb-07 22:43
rzvme21-Feb-07 22:43 
GeneralRe: getting bites from a file Pin
andre_swnpl21-Feb-07 23:17
andre_swnpl21-Feb-07 23:17 
GeneralRe: getting bites from a file Pin
rzvme21-Feb-07 23:18
rzvme21-Feb-07 23:18 
GeneralRe: getting bites from a file Pin
Stefan Troschuetz21-Feb-07 23:25
Stefan Troschuetz21-Feb-07 23:25 
GeneralRe: getting bites from a file Pin
rzvme21-Feb-07 23:28
rzvme21-Feb-07 23:28 
GeneralRe: getting bites from a file Pin
Stefan Troschuetz21-Feb-07 23:39
Stefan Troschuetz21-Feb-07 23:39 
GeneralRe: getting bites from a file Pin
Christian Graus22-Feb-07 0:06
protectorChristian Graus22-Feb-07 0:06 
GeneralRe: getting bites from a file Pin
rzvme22-Feb-07 5:56
rzvme22-Feb-07 5:56 
GeneralRe: getting bites from a file Pin
Christian Graus22-Feb-07 8:56
protectorChristian Graus22-Feb-07 8:56 
GeneralRe: getting bites from a file Pin
andre_swnpl21-Feb-07 23:29
andre_swnpl21-Feb-07 23:29 
GeneralRe: getting bites from a file Pin
Christian Graus22-Feb-07 0:05
protectorChristian Graus22-Feb-07 0:05 
QuestionRe: getting bites from a file Pin
rzvme22-Feb-07 5:57
rzvme22-Feb-07 5:57 

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.