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

C#

 
GeneralRe: Request for adv C# tips & tricks Pin
SimonS2-Dec-02 21:39
SimonS2-Dec-02 21:39 
GeneralLooping Problem. Pin
Steve McLenithan2-Dec-02 19:59
Steve McLenithan2-Dec-02 19:59 
GeneralRe: Looping Problem. Pin
Steve McLenithan2-Dec-02 20:01
Steve McLenithan2-Dec-02 20:01 
GeneralRe: Looping Problem. Pin
Daniel Turini2-Dec-02 22:14
Daniel Turini2-Dec-02 22:14 
GeneralRichTextBox Scrollbar Pin
ragear2-Dec-02 16:30
ragear2-Dec-02 16:30 
GeneralRe: RichTextBox Scrollbar Pin
leppie3-Dec-02 1:17
leppie3-Dec-02 1:17 
GeneralRe: RichTextBox Scrollbar Pin
ragear3-Dec-02 14:55
ragear3-Dec-02 14:55 
GeneralSome Bugs While Running C# Application On Win98 Pin
yccheok2-Dec-02 14:16
yccheok2-Dec-02 14:16 
i have a c# program where i run perfectly no problem under win2000.
however, the problem occur when i try to run in win98 installed with
.NET Framework 1.0.3705.

(1)i try to hide the main form and display the system tray icon when
user click on minimize button. i put the following code in main form
constructor:
------------------------------------------------------------
this.Resize += new System.EventHandler(this.frmMain_Resize);
this.notifyIcon1.DoubleClick += new
System.EventHandler(this.notifyIcon1_Click);
------------------------------------------------------------

the function of frmMain_Resize look like:
-----------------------------------------
private void frmMain_Resize(object sender, System.EventArgs e)
{
if( this.WindowState == FormWindowState.Minimized )
this.Visible = false;
}
-----------------------------------------

the function of notifyIcon1_Click look like:
-----------------------------------------
private void notifyIcon1_Click(object sender, System.EventArgs e)
{
this.Show();
this.WindowState = FormWindowState.Normal;
this.Activate();
}
-----------------------------------------

when i click minimize button of the main form, main form hide and the
system tray icon display. i double click the system tray icon and the
main form show up again. then when i click on minimize button again,
nothing happen.

i realize the frmMain_Resize wont be execute. this problem only happen
when i run this application in win98. win2000 work perfectly.

(2) please refer http://www.geocities.com/yccheok/net/prob.html for
screen shoot.
i try to display a modeless dialog with code
--------------------------------------------
if(frmViewLive.IsDisposed)
{
frmViewLive = new FrmViewLive(this);
this.AddOwnedForm(frmViewLive);
frmViewLive.Show();
frmViewLive.Activate();
}
else
{
this.AddOwnedForm(frmViewLive);
frmViewLive.Show();
frmViewLive.Activate();
}
--------------------------------------------
although i click on the close button of the frmViewLive, the task bar
still displayed its "Live Image" title. when only i click on the "Live
Image" task bar, only will the task bar disappear. this is strange coz
win2000 has no this kind of problem.

may i noe how can i solve this problem? thank you.

regards
yccheok
GeneralRe: Some Bugs While Running C# Application On Win98 Pin
Jeff J3-Dec-02 16:20
Jeff J3-Dec-02 16:20 
GeneralRe: Some Bugs While Running C# Application On Win98 Pin
yccheok3-Dec-02 16:43
yccheok3-Dec-02 16:43 
GeneralRe: Some Bugs While Running C# Application On Win98 Pin
Nick Parker3-Dec-02 16:49
protectorNick Parker3-Dec-02 16:49 
GeneralRe: Some Bugs While Running C# Application On Win98 Pin
James T. Johnson3-Dec-02 16:59
James T. Johnson3-Dec-02 16:59 
GeneralRe: Some Bugs While Running C# Application On Win98 Pin
Nick Parker3-Dec-02 18:17
protectorNick Parker3-Dec-02 18:17 
GeneralRe: Some Bugs While Running C# Application On Win98 Pin
Jeff J3-Dec-02 20:37
Jeff J3-Dec-02 20:37 
GeneralCom interop Pin
grv5752-Dec-02 14:07
grv5752-Dec-02 14:07 
GeneralRe: Com interop Pin
James T. Johnson2-Dec-02 14:16
James T. Johnson2-Dec-02 14:16 
GeneralRe: Com interop Pin
grv5752-Dec-02 15:28
grv5752-Dec-02 15:28 
GeneralRe: Com interop Pin
James T. Johnson2-Dec-02 15:38
James T. Johnson2-Dec-02 15:38 
GeneralRe: Com interop Pin
grv5752-Dec-02 16:14
grv5752-Dec-02 16:14 
GeneralRe: Com interop Pin
James T. Johnson2-Dec-02 16:41
James T. Johnson2-Dec-02 16:41 
GeneralRe: Com interop Pin
grv5755-Dec-02 1:58
grv5755-Dec-02 1:58 
QuestionHow to detect account without a password Pin
Ingram Leedy2-Dec-02 12:13
Ingram Leedy2-Dec-02 12:13 
GeneralIcon depth and sizes under .Net Pin
FruitBatInShades2-Dec-02 12:05
FruitBatInShades2-Dec-02 12:05 
GeneralDatagrid IN a Datalist Pin
tidge2-Dec-02 10:20
tidge2-Dec-02 10:20 
QuestionProtect the MSIL code? Pin
Rickard Andersson202-Dec-02 7:51
Rickard Andersson202-Dec-02 7:51 

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.