Click here to Skip to main content
15,910,787 members
Home / Discussions / C#
   

C#

 
AnswerRe: Convert C# to VB.Net Pin
Dave Doknjas20-Jan-07 14:26
Dave Doknjas20-Jan-07 14:26 
Questiondynamic retrieval of available SQL Servers Pin
Rocky#20-Jan-07 6:05
Rocky#20-Jan-07 6:05 
AnswerRe: dynamic retrieval of available SQL Servers Pin
Rocky#20-Jan-07 6:37
Rocky#20-Jan-07 6:37 
AnswerRe: dynamic retrieval of available SQL Servers Pin
Ed.Poore20-Jan-07 9:43
Ed.Poore20-Jan-07 9:43 
GeneralRe: dynamic retrieval of available SQL Servers Pin
tgrt20-Jan-07 12:48
tgrt20-Jan-07 12:48 
GeneralRe: dynamic retrieval of available SQL Servers Pin
Ed.Poore20-Jan-07 12:58
Ed.Poore20-Jan-07 12:58 
Questionsetting the startup form in Windows Application Pin
Rocky#20-Jan-07 5:31
Rocky#20-Jan-07 5:31 
AnswerRe: setting the startup form in Windows Application Pin
Luc Pattyn20-Jan-07 6:50
sitebuilderLuc Pattyn20-Jan-07 6:50 
Hi,

1)
there are basically two ways to have a switch of main form:

- inside static main() you have something like Application.Run(new Form1());
which creates your Form1, shows it, and runs a message loop on it, until you somehow
close that Form1. So if you need a Form2 after closing Form1, you could add
Application.Run(new Form2());

- an alternative is to keep static main as is, change Form1 to be invisible,
and let it create and show one or more forms at will, as in:
Form2 f2=new Form2();
f2.ShowDialog(); // = show and wait until closed
Form3 f3=new Form3();
f3.ShowDialog();
return;
of course, you can add any logic you need; or you could use Show() to see
several forms at once.

2)
Dont know, seems like a bug: initially blueish gradient, when changed, then
set back to BackColor=Control, it remain Control-gray (and the code is back to its
original !?).

Smile | :)

Luc Pattyn

GeneralRe: setting the startup form in Windows Application Pin
Rocky#21-Jan-07 19:30
Rocky#21-Jan-07 19:30 
QuestionThread Problems Pin
Eddymvp20-Jan-07 4:59
Eddymvp20-Jan-07 4:59 
AnswerRe: Thread Problems Pin
Marc Clifton20-Jan-07 5:06
mvaMarc Clifton20-Jan-07 5:06 
AnswerRe: Thread Problems Pin
Guffa20-Jan-07 5:12
Guffa20-Jan-07 5:12 
AnswerRe: Thread Problems Pin
Luc Pattyn20-Jan-07 5:22
sitebuilderLuc Pattyn20-Jan-07 5:22 
GeneralRe: Thread Problems Pin
Eddymvp20-Jan-07 5:27
Eddymvp20-Jan-07 5:27 
GeneralRe: Thread Problems Pin
Luc Pattyn20-Jan-07 5:36
sitebuilderLuc Pattyn20-Jan-07 5:36 
GeneralRe: Thread Problems Pin
Eddymvp20-Jan-07 5:47
Eddymvp20-Jan-07 5:47 
Questionfiletypes Pin
dsl/fahk20-Jan-07 3:53
dsl/fahk20-Jan-07 3:53 
AnswerRe: filetypes Pin
Luc Pattyn20-Jan-07 4:01
sitebuilderLuc Pattyn20-Jan-07 4:01 
AnswerRe: filetypes Pin
David Domingues22-Jan-07 5:02
David Domingues22-Jan-07 5:02 
QuestionRead text file after uploaded Pin
ALAQUNAIBI20-Jan-07 2:11
ALAQUNAIBI20-Jan-07 2:11 
AnswerRe: Read text file after uploaded Pin
Christian Graus20-Jan-07 10:22
protectorChristian Graus20-Jan-07 10:22 
GeneralRe: Read text file after uploaded Pin
ALAQUNAIBI20-Jan-07 19:52
ALAQUNAIBI20-Jan-07 19:52 
GeneralRe: Read text file after uploaded Pin
Christian Graus20-Jan-07 21:43
protectorChristian Graus20-Jan-07 21:43 
QuestionRead-Write thread synchronization Pin
Den2Fly20-Jan-07 1:11
Den2Fly20-Jan-07 1:11 
AnswerRe: Read-Write thread synchronization Pin
Luc Pattyn20-Jan-07 1:38
sitebuilderLuc Pattyn20-Jan-07 1:38 

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.