Click here to Skip to main content
15,895,538 members
Home / Discussions / C#
   

C#

 
GeneralRe: When Public isnt really Public Pin
Roman Rodov7-Aug-05 19:16
Roman Rodov7-Aug-05 19:16 
GeneralRe: When Public isnt really Public Pin
lmoelleb7-Aug-05 21:08
lmoelleb7-Aug-05 21:08 
QuestionCan a focused textbox accept only real keypress but not "sendkeys"? Pin
bihshan.lin6-Aug-05 5:48
bihshan.lin6-Aug-05 5:48 
AnswerRe: Can a focused textbox accept only real keypress but not "sendkeys"? Pin
Judah Gabriel Himango6-Aug-05 7:10
sponsorJudah Gabriel Himango6-Aug-05 7:10 
GeneralTo loginto a remote Computer from an ASPX page Pin
Sanjay Suhag6-Aug-05 4:36
sussSanjay Suhag6-Aug-05 4:36 
GeneralTabControl problem... Pin
QzRz6-Aug-05 2:46
QzRz6-Aug-05 2:46 
GeneralHiding a window Pin
mamtz6-Aug-05 2:09
mamtz6-Aug-05 2:09 
GeneralRe: Hiding a window Pin
[Marc]6-Aug-05 9:11
[Marc]6-Aug-05 9:11 
You can try this:
[Flags]
public enum SWP
{
      SWP_ASYNCWINDOWPOS = 0x4000,
      SWP_DEFERERASE = 0x2000,
      SWP_DRAWFRAME = 0x20,
      SWP_FRAMECHANGED = 0x20,
      SWP_HIDEWINDOW = 0x80,
      SWP_NOACTIVATE = 0x10,
      SWP_NOCOPYBITS = 0x100,
      SWP_NOMOVE = 2,
      SWP_NOOWNERZORDER = 0x200,
      SWP_NOREDRAW = 8,
      SWP_NOREPOSITION = 0x200,
      SWP_NOSENDCHANGING = 0x400,
      SWP_NOSIZE = 1,
      SWP_NOZORDER = 4,
      SWP_REDRAWONLY = 0x717,
      SWP_SHOWWINDOW = 0x40
}

[DllImport("User32.dll", CharSet=CharSet.Auto)]
public static extern bool SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int X, int Y, int cx, int cy, int uFlags);

private static SWP hideFlags = SWP_NOSIZE | SWP_NOMOVE | SWP_NOZORDER | SWP_NOREDRAW | SWP_HIDEWINDOW

// Put this in your code instead of ShowWindowAsync
SetWindowPos(p.MainWindowHandle, IntPtr.Zero, 0, 0, 0, 0, hideFlags);
More info on MSDN[^].

Hope this works! Cool | :cool:


"..Commit yourself to quality from day one..it's better to do nothing at all than to do something badly.."
-- Mark McCormick

GeneralRe: Reports Pin
Anonymous6-Aug-05 0:16
Anonymous6-Aug-05 0:16 
GeneralRe: Reports Pin
Guffa6-Aug-05 0:55
Guffa6-Aug-05 0:55 
QuestionHow to add buttons to DataGridColumn? Pin
amrutajoshi6-Aug-05 0:12
amrutajoshi6-Aug-05 0:12 
GeneralInsert Date into access database in C#.net Pin
Ming Luo5-Aug-05 23:59
Ming Luo5-Aug-05 23:59 
GeneralRe: Insert Date into access database in C#.net Pin
Guffa6-Aug-05 0:06
Guffa6-Aug-05 0:06 
GeneralRe: Insert Date into access database in C#.net Pin
Ming Luo6-Aug-05 0:13
Ming Luo6-Aug-05 0:13 
GeneralRe: Insert Date into access database in C#.net Pin
Guffa6-Aug-05 6:19
Guffa6-Aug-05 6:19 
GeneralRe: Insert Date into access database in C#.net Pin
Ming Luo6-Aug-05 7:39
Ming Luo6-Aug-05 7:39 
GeneralRe: Insert Date into access database in C#.net Pin
Rob Graham6-Aug-05 16:27
Rob Graham6-Aug-05 16:27 
GeneralRe: Insert Date into access database in C#.net Pin
Dario Solera7-Aug-05 5:53
Dario Solera7-Aug-05 5:53 
GeneralRe: Insert Date into access database in C#.net Pin
Guffa7-Aug-05 20:45
Guffa7-Aug-05 20:45 
GeneralSelf Extracting File Pin
Varun Jain 7865-Aug-05 23:46
Varun Jain 7865-Aug-05 23:46 
GeneralRe: Self Extracting File Pin
Vasudevan Deepak Kumar6-Aug-05 0:56
Vasudevan Deepak Kumar6-Aug-05 0:56 
GeneralRe: Self Extracting File Pin
Varun Jain 7867-Aug-05 23:00
Varun Jain 7867-Aug-05 23:00 
GeneralRe: Self Extracting File Pin
Vasudevan Deepak Kumar7-Aug-05 23:09
Vasudevan Deepak Kumar7-Aug-05 23:09 
GeneralRe: Self Extracting File Pin
Varun Jain 7868-Aug-05 3:43
Varun Jain 7868-Aug-05 3:43 
GeneralSelf Extracting file Pin
Anonymous5-Aug-05 21:53
Anonymous5-Aug-05 21:53 

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.