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

C#

 
GeneralRe: Working with events Pin
Jim Stewart6-Jul-03 8:24
Jim Stewart6-Jul-03 8:24 
GeneralRe: Working with events Pin
stonee746-Jul-03 10:29
stonee746-Jul-03 10:29 
GeneralAdding multiple forms Pin
FDL5-Jul-03 23:46
FDL5-Jul-03 23:46 
GeneralRe: Adding multiple forms Pin
Nick Parker6-Jul-03 2:10
protectorNick Parker6-Jul-03 2:10 
GeneralRe: Adding multiple forms Pin
FDL8-Jul-03 11:42
FDL8-Jul-03 11:42 
GeneralRe: Adding multiple forms Pin
James T. Johnson6-Jul-03 4:12
James T. Johnson6-Jul-03 4:12 
GeneralRe: Adding multiple forms Pin
FDL8-Jul-03 11:56
FDL8-Jul-03 11:56 
GeneralDisplaying a second user control in a form Pin
frogb0x5-Jul-03 19:33
frogb0x5-Jul-03 19:33 
I'm having a problem making a User Control display upon a form in C#.

My form starts off with a single UC on it. Its called UCInit. UCInit contains some text and a couple of buttons. When one of the buttons is clicked, I want UCInit to remove itself from the form, and a second User Control, called UCCreate, to appear.

I can get rid of the first UserControl, but UCCreate never appears. This is my code so far for when the button in UCInit is clicks:

private void btnCreate_Click(object sender, System.EventArgs e)
{
this.Hide();
UCCreate newPanel = new UCCreate();
newPanel.Location = new Point (376, 8);
newPanel.Show();
}

UCInit removes itself but the instance of UCCreate never shows itself. What am I doing wrong?
GeneralRe: Displaying a second user control in a form Pin
J. Dunlap5-Jul-03 19:39
J. Dunlap5-Jul-03 19:39 
GeneralRe: Displaying a second user control in a form Pin
frogb0x5-Jul-03 19:52
frogb0x5-Jul-03 19:52 
GeneralRe: Displaying a second user control in a form Pin
James T. Johnson6-Jul-03 2:39
James T. Johnson6-Jul-03 2:39 
GeneralRe: Displaying a second user control in a form Pin
frogb0x6-Jul-03 17:16
frogb0x6-Jul-03 17:16 
GeneralShowing what folders exist Pin
eggie55-Jul-03 19:18
eggie55-Jul-03 19:18 
GeneralRe: Showing what folders exist Pin
James T. Johnson6-Jul-03 2:44
James T. Johnson6-Jul-03 2:44 
GeneralRe: Showing what folders exist Pin
eggie56-Jul-03 10:13
eggie56-Jul-03 10:13 
GeneralRe: Showing what folders exist Pin
MrEyes7-Jul-03 6:38
MrEyes7-Jul-03 6:38 
GeneralRe: Showing what folders exist Pin
eggie57-Jul-03 10:54
eggie57-Jul-03 10:54 
GeneralRe: Showing what folders exist Pin
eggie57-Jul-03 11:05
eggie57-Jul-03 11:05 
GeneralRe: Showing what folders exist Pin
MrEyes7-Jul-03 23:08
MrEyes7-Jul-03 23:08 
GeneralApi Question. Pin
jtmtv185-Jul-03 11:45
jtmtv185-Jul-03 11:45 
GeneralRe: Api Question. Pin
James T. Johnson6-Jul-03 2:48
James T. Johnson6-Jul-03 2:48 
GeneralRe: Api Question. Pin
jtmtv189-Jul-03 15:50
jtmtv189-Jul-03 15:50 
GeneralMDI child's Enter leave called multiple times Pin
Mayank Goyal5-Jul-03 2:58
Mayank Goyal5-Jul-03 2:58 
GeneralC# Theory question Pin
.gonad5-Jul-03 2:37
.gonad5-Jul-03 2:37 
GeneralRe: C# Theory question Pin
leppie5-Jul-03 2:46
leppie5-Jul-03 2:46 

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.