Click here to Skip to main content
15,919,423 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to extend System.Int32? Pin
Eric Gunnerson (msft)3-Jun-03 9:47
Eric Gunnerson (msft)3-Jun-03 9:47 
AnswerRe: How to extend System.Int32? Pin
leppie1-Jun-03 0:39
leppie1-Jun-03 0:39 
GeneralRe: How to extend System.Int32? Pin
David Stone2-Jun-03 9:50
sitebuilderDavid Stone2-Jun-03 9:50 
GeneralSetting Form's size problems Pin
Acidis31-May-03 11:38
Acidis31-May-03 11:38 
GeneralRe: Setting Form's size problems Pin
J. Dunlap31-May-03 11:42
J. Dunlap31-May-03 11:42 
GeneralRe: Setting Form's size problems Pin
Acidis31-May-03 11:47
Acidis31-May-03 11:47 
GeneralRe: Setting Form's size problems Pin
James T. Johnson31-May-03 18:06
James T. Johnson31-May-03 18:06 
GeneralRe: Setting Form's size problems Pin
Acidis31-May-03 19:36
Acidis31-May-03 19:36 
I might have missed a few details.

Here is the set up of my form. I call it ToolTipForm.

Properties that are different from default:

FormBorderStyle: None
AutoScale: False
Size: 100, 50
StartPosition: Manual
ShowInTaskbar: False

The form contains only one Lavel control.

Label properties:

BorderStyle: FixedSingle
TextAlign: MiddleCenter
UseMnemonic: False
Dock: Fill


Now, if you create a main form and add some way to display the ToolTipForm. USe the following code to show it:

<br />
ToolTipForm ttf = new ToolTipForm();<br />
ttf.Size = new Size(50, 18);<br />
// Alternatively<br />
// ttf.SetDesktopBounds(ttf.DesktopLocation.X, ttf.DesktopLocation.Y, 50, 18);<br />
ttf.Show();<br />


The first time you display this form (when it creates the handle) it will set the size of the form to 148x40 (in my case.)

Given the form set up, it should not do it.

If I set the Size property to 50, 18 after the Show() method, it sets the size to 50, 18 without any problems.

The reason I am using the form is because I need my tool tip to be displayed on top of my main window (form) so it is not clipped. I don't think the tooltip control is capable of doing it. And I was unable to make a control display as a top level window. Controls seem to require a parent.

As to decompiling, I am not sure how to do it. I have the Reflector but it does not allow me to decompile anything in the library. I am probably not understanding how to do it properly. Will have to look at it some more.
GeneralRe: Setting Form's size problems Pin
James T. Johnson31-May-03 19:59
James T. Johnson31-May-03 19:59 
GeneralMenue by Marc Clifton Pin
Frenchi31-May-03 9:46
Frenchi31-May-03 9:46 
GeneralRe: Menue by Marc Clifton Pin
Marc Clifton31-May-03 15:33
mvaMarc Clifton31-May-03 15:33 
GeneralRe: Menue by Marc Clifton Pin
Frenchi1-Jun-03 5:12
Frenchi1-Jun-03 5:12 
Questionto byte[] conversion? Pin
stonee7431-May-03 3:38
stonee7431-May-03 3:38 
AnswerRe: to byte[] conversion? Pin
Eric Gunnerson (msft)31-May-03 16:34
Eric Gunnerson (msft)31-May-03 16:34 
GeneralRe: to byte[] conversion? Pin
stonee7431-May-03 17:01
stonee7431-May-03 17:01 
GeneralRe: to byte[] conversion? Pin
Eric Gunnerson (msft)1-Jun-03 7:05
Eric Gunnerson (msft)1-Jun-03 7:05 
GeneralRe: to byte[] conversion? Pin
stonee741-Jun-03 8:04
stonee741-Jun-03 8:04 
GeneralRe: to byte[] conversion? Pin
Eric Gunnerson (msft)3-Jun-03 9:43
Eric Gunnerson (msft)3-Jun-03 9:43 
GeneralResource Troubles (MissingManifestResourceException) Pin
gek_at31-May-03 2:02
gek_at31-May-03 2:02 
GeneralRe: Resource Troubles (MissingManifestResourceException) Pin
gek_at31-May-03 2:18
gek_at31-May-03 2:18 
GeneralRe: Resource Troubles (MissingManifestResourceException) Pin
David Stone31-May-03 6:23
sitebuilderDavid Stone31-May-03 6:23 
QuestionIf C# is Microsoft's answer to SUN's Java, then is C# Platform independent? Pin
Link260030-May-03 23:56
Link260030-May-03 23:56 
AnswerRe: If C# is Microsoft's answer to SUN's Java, then is C# Platform independent? Pin
Kannan Kalyanaraman31-May-03 0:56
Kannan Kalyanaraman31-May-03 0:56 
AnswerRe: If C# is Microsoft's answer to SUN's Java, then is C# Platform independent? Pin
David Stone31-May-03 6:15
sitebuilderDavid Stone31-May-03 6:15 
AnswerRe: If C# is Microsoft's answer to SUN's Java, then is C# Platform independent? Pin
FruitBatInShades31-May-03 23:57
FruitBatInShades31-May-03 23:57 

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.