Click here to Skip to main content
16,008,469 members
Home / Discussions / C#
   

C#

 
GeneralLaunching a form with visible set to false Pin
Sharpoverride3-Jul-05 23:25
Sharpoverride3-Jul-05 23:25 
GeneralRe: Launching a form with visible set to false Pin
Gavin Jeffrey3-Jul-05 23:43
Gavin Jeffrey3-Jul-05 23:43 
GeneralRe: Launching a form with visible set to false Pin
WillemM4-Jul-05 0:02
WillemM4-Jul-05 0:02 
GeneralRe: Launching a form with visible set to false Pin
Gavin Jeffrey4-Jul-05 0:12
Gavin Jeffrey4-Jul-05 0:12 
GeneralRe: Launching a form with visible set to false Pin
Sharpoverride5-Jul-05 21:20
Sharpoverride5-Jul-05 21:20 
GeneralRe: Launching a form with visible set to false Pin
Dave Kreskowiak4-Jul-05 3:54
mveDave Kreskowiak4-Jul-05 3:54 
GeneralRe: Launching a form with visible set to false Pin
Sharpoverride5-Jul-05 21:21
Sharpoverride5-Jul-05 21:21 
GeneralRe: Launching a form with visible set to false Pin
Iurii Okhmat4-Jul-05 6:27
Iurii Okhmat4-Jul-05 6:27 
U can use this code (with P/Invoke implemenstation):
.....<br />
using System.Runtime.InteropServices;<br />
.....<br />
public class Form1 : System.Windows.Forms.Form<br />
{<br />
....<br />
protected override void OnLoad(System.EventArgs e)<br />
{<br />
 WIN32 win32 = new WIN32();<br />
 win32.HideWindow(this.Handle);<br />
}<br />
...<br />
}<br />
<br />
<br />
public class WIN32<br />
{<br />
  public WIN32()<br />
  {<br />
  }<br />
<br />
  public void HideWindow(System.IntPtr handle)<br />
  {<br />
	ShowWindow(handle,WindowShowStyle.Hide);<br />
  }<br />
<br />
  [DllImport("user32.dll")]<br />
  private static extern bool ShowWindow(IntPtr hWnd, WindowShowStyle    nCmdShow);<br />
<br />
  private enum WindowShowStyle : uint<br />
  {<br />
	Hide = 0,<br />
	ShowNormal = 1,<br />
	ShowMinimized = 2,<br />
	ShowMaximized = 3,<br />
	Maximize = 3,<br />
	ShowNormalNoActivate = 4,<br />
	Show = 5,<br />
	Minimize = 6,<br />
	ShowMinNoActivate = 7,<br />
	ShowNoActivate = 8,<br />
	Restore = 9,<br />
	ShowDefault = 10,<br />
	ForceMinimized = 11<br />
  }<br />
}


It will your main window... Wink | ;)
GeneralRe: Launching a form with visible set to false Pin
cmaissan4-Jul-05 14:01
cmaissan4-Jul-05 14:01 
Generaldisplay datagrid row on textBoxes Pin
__horus__3-Jul-05 22:51
__horus__3-Jul-05 22:51 
GeneralRe: display datagrid row on textBoxes Pin
WillemM3-Jul-05 23:09
WillemM3-Jul-05 23:09 
GeneralRe: display datagrid row on textBoxes Pin
xrado3-Jul-05 23:12
xrado3-Jul-05 23:12 
GeneralRe: display datagrid row on textBoxes Pin
__horus__4-Jul-05 0:17
__horus__4-Jul-05 0:17 
Generaldataset to array Pin
xrado3-Jul-05 22:05
xrado3-Jul-05 22:05 
GeneralRetriving the value from Hash table Pin
BicycleTheif3-Jul-05 21:59
BicycleTheif3-Jul-05 21:59 
GeneralRe: Retriving the value from Hash table Pin
S. Senthil Kumar3-Jul-05 22:07
S. Senthil Kumar3-Jul-05 22:07 
Questionany curves plotter example? Pin
azusakt3-Jul-05 21:34
azusakt3-Jul-05 21:34 
AnswerRe: any curves plotter example? Pin
azusakt4-Jul-05 16:07
azusakt4-Jul-05 16:07 
QuestionHow to release memory in c# Pin
BicycleTheif3-Jul-05 21:15
BicycleTheif3-Jul-05 21:15 
AnswerRe: How to release memory in c# Pin
mav.northwind3-Jul-05 21:26
mav.northwind3-Jul-05 21:26 
GeneralRe: How to release memory in c# Pin
BicycleTheif3-Jul-05 21:57
BicycleTheif3-Jul-05 21:57 
GeneralRe: How to release memory in c# Pin
S. Senthil Kumar3-Jul-05 22:05
S. Senthil Kumar3-Jul-05 22:05 
GeneralRe: How to release memory in c# Pin
Matt Gerrans3-Jul-05 22:44
Matt Gerrans3-Jul-05 22:44 
GeneralMain calendar in Outlook Pin
kloakenratte3-Jul-05 20:56
kloakenratte3-Jul-05 20:56 
GeneralEventhandling in Outlook Pin
kloakenratte3-Jul-05 20:51
kloakenratte3-Jul-05 20: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.