Click here to Skip to main content
15,915,864 members
Home / Discussions / C#
   

C#

 
GeneralRe: Setting the System Cursor Pin
Heath Stewart5-Aug-04 8:33
protectorHeath Stewart5-Aug-04 8:33 
GeneralRe: Setting the System Cursor Pin
Tom Larsen5-Aug-04 12:06
Tom Larsen5-Aug-04 12:06 
GeneralRe: Setting the System Cursor Pin
betterc5-Aug-04 12:47
betterc5-Aug-04 12:47 
GeneralStrange Thread problem Pin
Guinness4Strength5-Aug-04 7:43
Guinness4Strength5-Aug-04 7:43 
GeneralRe: Strange Thread problem Pin
leppie5-Aug-04 13:31
leppie5-Aug-04 13:31 
GeneralRe: Strange Thread problem Pin
Guinness4Strength5-Aug-04 15:14
Guinness4Strength5-Aug-04 15:14 
GeneralRe: Strange Thread problem Pin
leppie5-Aug-04 19:18
leppie5-Aug-04 19:18 
GeneralRe: Strange Thread problem Pin
Guinness4Strength6-Aug-04 3:03
Guinness4Strength6-Aug-04 3:03 
1. If using CreateGraphics() is not allowed, why is it there ?
the MSDN exmaple shows it's use inside a function that does not receive any PaintEventArgs:
private void AutoSizeControl(Control control, int textPadding)
{
   // Create a Graphics object for the Control.
   Graphics g = control.CreateGraphics();

   // Get the Size needed to accommodate the formatted Text.
   Size preferredSize = g.MeasureString(
      control.Text, control.Font).ToSize();

   // Pad the text and resize the control.
   control.ClientSize = new Size(
      preferredSize.Width + (textPadding * 2), 
      preferredSize.Height+(textPadding * 2) );

   // Clean up the Graphics object.
   g.Dispose();
}





2: I AM calling Control.Invoke() and implementing ISyncronizedInvoke interface
<pre?
if(lbsonginfo.invokerequired)
{
this.lbsonginfo.invoke(new="" scrollthreaddelegate="" his.showscrolltext));
}
<="" pre="">
GeneralBizarre remoting problem Pin
Judah Gabriel Himango5-Aug-04 7:25
sponsorJudah Gabriel Himango5-Aug-04 7:25 
GeneralRe: Bizarre remoting problem Pin
Heath Stewart5-Aug-04 8:44
protectorHeath Stewart5-Aug-04 8:44 
GeneralRe: Bizarre remoting problem Pin
Judah Gabriel Himango5-Aug-04 10:10
sponsorJudah Gabriel Himango5-Aug-04 10:10 
GeneralRe: Bizarre remoting problem Pin
Heath Stewart5-Aug-04 10:39
protectorHeath Stewart5-Aug-04 10:39 
GeneralRe: Bizarre remoting problem Pin
Judah Gabriel Himango5-Aug-04 10:54
sponsorJudah Gabriel Himango5-Aug-04 10:54 
GeneralRe: Bizarre remoting problem Pin
Tom Larsen5-Aug-04 12:17
Tom Larsen5-Aug-04 12:17 
GeneralRe: Bizarre remoting problem Pin
scadaguy6-Aug-04 6:30
scadaguy6-Aug-04 6:30 
GeneralConverting .rc files to .resx Pin
BrcKcc5-Aug-04 7:20
BrcKcc5-Aug-04 7:20 
QuestionHow to pass array or VARIANT from ATL COM to .NET. Pin
al_1_@hotmail.com5-Aug-04 6:58
al_1_@hotmail.com5-Aug-04 6:58 
AnswerRe: How to pass array or VARIANT from ATL COM to .NET. Pin
Heath Stewart5-Aug-04 8:41
protectorHeath Stewart5-Aug-04 8:41 
GeneralEmpty collections in web services Pin
Diego F.5-Aug-04 6:46
Diego F.5-Aug-04 6:46 
GeneralRe: Empty collections in web services Pin
leppie5-Aug-04 20:09
leppie5-Aug-04 20:09 
GeneralRe: Empty collections in web services Pin
Diego F.6-Aug-04 7:31
Diego F.6-Aug-04 7:31 
GeneralDelivery of parameters to dynamically generated dll Pin
depechemode20015-Aug-04 6:15
depechemode20015-Aug-04 6:15 
GeneralRe: Delivery of parameters to dynamically generated dll Pin
Heath Stewart5-Aug-04 6:21
protectorHeath Stewart5-Aug-04 6:21 
GeneralLogon screen Pin
bthumber5-Aug-04 3:33
bthumber5-Aug-04 3:33 
GeneralRe: Logon screen Pin
Nick Parker5-Aug-04 7:19
protectorNick Parker5-Aug-04 7:19 

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.