Click here to Skip to main content
15,901,283 members
Home / Discussions / C#
   

C#

 
GeneralRe: I tried to set labe control property visible to true Pin
Skynyrd21-Dec-04 22:32
Skynyrd21-Dec-04 22:32 
GeneralRe: I tried to set labe control property visible to true Pin
Mohammed Aijaz Mohiuddin23-Dec-04 1:08
Mohammed Aijaz Mohiuddin23-Dec-04 1:08 
GeneralRe: I tried to set labe control property visible to true Pin
Skynyrd23-Dec-04 5:36
Skynyrd23-Dec-04 5:36 
GeneralGetArray and SetArray Pin
SudeepPradhan21-Dec-04 18:30
SudeepPradhan21-Dec-04 18:30 
GeneralRe: GetArray and SetArray Pin
spif200121-Dec-04 19:56
spif200121-Dec-04 19:56 
GeneralRe: GetArray and SetArray Pin
SudeepPradhan21-Dec-04 20:24
SudeepPradhan21-Dec-04 20:24 
QuestionHow to AutoFit Text in a Windows Richtextbox control? Pin
AVaka21-Dec-04 17:51
AVaka21-Dec-04 17:51 
AnswerRe: How to AutoFit Text in a Windows Richtextbox control? Pin
AVaka22-Dec-04 23:13
AVaka22-Dec-04 23:13 
Hi, I myself is posting the reply. Try this. I hope it works. Please give suggetions if there are any changes in this code or any other workarounds

// To autofit text in a richtextbox while loading from a file.

Assume that already the file is loaded into the RichTextBox. But before the user can view the textbox,the following should take place.

// Find the Last character of the text in the textbox
string lastchr=txtRich.Text.Substring(txtRich.Text.Length-2,1);

// Find the Last index of it
int lstind=txtRich.Text.LastIndexOf(lastchr);

// Get the Position of the last character ( X and Y Coordinates)
System.Drawing.Point p=txtRich.GetPositionFromCharIndex(lstind);

// Check whether the height of the textbox is less than the y coordinate
// of the last character. If yes, it means Text overflows the textbox.
// So, Reduce the ZoomFactor by 0.01 and check again whether text overflows.
// Repeat this process until text fits in the textbox.
while(txtRich.Height
GeneralBetter Iteration Pin
sreejith ss nair21-Dec-04 16:47
sreejith ss nair21-Dec-04 16:47 
GeneralRe: Better Iteration Pin
Heath Stewart22-Dec-04 6:26
protectorHeath Stewart22-Dec-04 6:26 
GeneralWeb page form controls Pin
Nosheen Iqbal21-Dec-04 16:32
Nosheen Iqbal21-Dec-04 16:32 
GeneralRe: Web page form controls Pin
Heath Stewart22-Dec-04 9:25
protectorHeath Stewart22-Dec-04 9:25 
GeneralFileSystemWatcher Pin
Rafferty Uy21-Dec-04 15:59
Rafferty Uy21-Dec-04 15:59 
GeneralRe: FileSystemWatcher Pin
Dave Kreskowiak22-Dec-04 5:47
mveDave Kreskowiak22-Dec-04 5:47 
GeneralFlash & C# Pin
mszulman21-Dec-04 9:03
sussmszulman21-Dec-04 9:03 
GeneralRe: Flash & C# Pin
Heath Stewart21-Dec-04 12:44
protectorHeath Stewart21-Dec-04 12:44 
GeneralRe: Flash & C# Pin
J4amieC21-Dec-04 22:29
J4amieC21-Dec-04 22:29 
GeneralRelation between Tables a dataset Pin
Gedrain21-Dec-04 8:57
Gedrain21-Dec-04 8:57 
GeneralRe: Relation between Tables a dataset Pin
Heath Stewart21-Dec-04 12:51
protectorHeath Stewart21-Dec-04 12:51 
GeneralRe: Relation between Tables a dataset Pin
Gedrain21-Dec-04 23:08
Gedrain21-Dec-04 23:08 
GeneralRe: Relation between Tables a dataset Pin
Heath Stewart22-Dec-04 6:18
protectorHeath Stewart22-Dec-04 6:18 
GeneralRe: Relation between Tables a dataset Pin
Gedrain22-Dec-04 7:22
Gedrain22-Dec-04 7:22 
GeneralRe: Relation between Tables a dataset Pin
Heath Stewart22-Dec-04 9:20
protectorHeath Stewart22-Dec-04 9:20 
GeneralDoubleClick and Click Events ... Left Mouse Button Pin
new_phoenix21-Dec-04 8:49
new_phoenix21-Dec-04 8:49 
GeneralRe: DoubleClick and Click Events ... Left Mouse Button Pin
Heath Stewart21-Dec-04 13:01
protectorHeath Stewart21-Dec-04 13:01 

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.