Click here to Skip to main content
15,888,984 members
Home / Discussions / C#
   

C#

 
AnswerRe: How can I do a Find and Replace ? Pin
leppie12-Jun-03 16:18
leppie12-Jun-03 16:18 
GeneralPlay search.avi Pin
Patrick Luijpers12-Jun-03 15:36
Patrick Luijpers12-Jun-03 15:36 
GeneralRe: Play search.avi Pin
shaunAustin13-Jun-03 3:02
shaunAustin13-Jun-03 3:02 
GeneralRe: Play search.avi Pin
Patrick Luijpers13-Jun-03 3:40
Patrick Luijpers13-Jun-03 3:40 
GeneralGetting the .exe location Pin
Le centriste12-Jun-03 11:00
Le centriste12-Jun-03 11:00 
GeneralRe: Getting the .exe location Pin
Mike Osbahr12-Jun-03 11:17
Mike Osbahr12-Jun-03 11:17 
GeneralRe: Getting the .exe location Pin
dynamic12-Jun-03 12:42
dynamic12-Jun-03 12:42 
Generalgui event handling Pin
zuhx12-Jun-03 10:38
zuhx12-Jun-03 10:38 
I am having a hard time trying to implent winforms gui event handling. I have an mdi application where the the child form displayed depends on what which linklabel or button the user clicks (there is more than one way in different parts of the app to reach the same form). I want to pass the name of the form to display. I am trying to separate the event handling from the form (is this good app architecture?). Here is what I have so far, I know I am missing something, but I don't know what is Smile | :) . Any help please?

//define delegate
public delegate void DisplayFormEventHandler(object sender, DisplayFormEventArgs e);

//create custom event
public class DisplayFormEventArgs : EventArgs
{
//Define and initialize two variables)
}

//handler to be executed when event fired
public class DisplayFormHandler
{
public void windowToDisplay(object sender, DisplayFormEventArgs e)
{
switch(componenetClicked)

case "Orders":
//code here
case "Settings":
}
}

//event sender
public class Home : System.Windows.Forms.Form
{
private void InitializeComponent()
{
LinkLabel newOrdersLink = new LinkLabel();
newOrdersLink.Click += new DisplayFormEventHandler();
}
}
GeneralConvert data type Pin
Hoang Dung12-Jun-03 9:29
Hoang Dung12-Jun-03 9:29 
GeneralRe: Convert data type Pin
zuhx12-Jun-03 10:46
zuhx12-Jun-03 10:46 
GeneralRe: Convert data type Pin
Hoang Dung13-Jun-03 2:48
Hoang Dung13-Jun-03 2:48 
GeneralSub matches in RegEx Pin
leppie12-Jun-03 9:21
leppie12-Jun-03 9:21 
GeneralRe: Sub matches in RegEx Pin
Anonymous12-Jun-03 9:28
Anonymous12-Jun-03 9:28 
GeneralRe: Sub matches in RegEx Pin
leppie12-Jun-03 10:16
leppie12-Jun-03 10:16 
GeneralInternet hosted EXE doesn't like app config file Pin
Ryan Cromwell12-Jun-03 8:29
Ryan Cromwell12-Jun-03 8:29 
GeneralRe: Internet hosted EXE doesn't like app config file Pin
James T. Johnson14-Jun-03 4:06
James T. Johnson14-Jun-03 4:06 
GeneralDataGrid Control Pin
Gareth L12-Jun-03 5:26
Gareth L12-Jun-03 5:26 
GeneralRe: DataGrid Control Pin
Rocky Moore12-Jun-03 21:29
Rocky Moore12-Jun-03 21:29 
GeneralCreating a Combo box that is active but can't be typed into Pin
kevinrc12-Jun-03 5:11
kevinrc12-Jun-03 5:11 
GeneralRe: Creating a Combo box that is active but can't be typed into Pin
kevinrc12-Jun-03 5:16
kevinrc12-Jun-03 5:16 
GeneralRe: Creating a Combo box that is active but can't be typed into Pin
shaunAustin12-Jun-03 5:21
shaunAustin12-Jun-03 5:21 
GeneralRe: Creating a Combo box that is active but can't be typed into Pin
kevinrc12-Jun-03 5:24
kevinrc12-Jun-03 5:24 
GeneralRe: Creating a Combo box that is active but can't be typed into Pin
Anonymous13-Jun-03 1:54
Anonymous13-Jun-03 1:54 
GeneralLinking combo box to list box Pin
totig12-Jun-03 3:31
totig12-Jun-03 3:31 
GeneralRe: Linking combo box to list box Pin
kevinrc12-Jun-03 5:07
kevinrc12-Jun-03 5:07 

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.