Click here to Skip to main content
15,890,512 members
Home / Discussions / C#
   

C#

 
GeneralRe: Non Rectangular Form Pin
Sabry19056-Dec-05 23:27
Sabry19056-Dec-05 23:27 
GeneralRe: Non Rectangular Form Pin
Pablo Hernandez Valdes7-Dec-05 4:29
Pablo Hernandez Valdes7-Dec-05 4:29 
GeneralRe: Non Rectangular Form Pin
Sabry19057-Dec-05 4:52
Sabry19057-Dec-05 4:52 
QuestionClosing a Webform by clicking the close button Pin
TheMajorRager6-Dec-05 7:50
TheMajorRager6-Dec-05 7:50 
AnswerRe: Closing a Webform by clicking the close button Pin
[Marc]6-Dec-05 8:52
[Marc]6-Dec-05 8:52 
AnswerRe: Closing a Webform by clicking the close button Pin
enjoycrack6-Dec-05 9:15
enjoycrack6-Dec-05 9:15 
AnswerRe: Closing a Webform by clicking the close button Pin
Dave Kreskowiak6-Dec-05 10:24
mveDave Kreskowiak6-Dec-05 10:24 
QuestionHow to launch multiple threads Pin
Oskar Emil6-Dec-05 7:27
Oskar Emil6-Dec-05 7:27 
Am writing some code for en editor. Main problem here is; when I load large files ( > 10mb ) the GUI hangs.

User chooses which file to open with the built-in OpenFileDialog. When user press "OK" ( or "Open") I run a read-method, that passes file data to a byte-array. After that a new method is called, this one translates the byte-array and puts the output into a textbox. However, not the entire content is passed to the textbox, only the amount of content that can fit in the textbox ( depending on how the user has resized it) is added. Textbox is scrolled with external scrollbar

(this is not the exact code, just a hint of how the code looks like. If it can help, I'll gladly post the exact code too, but right now I don't have the code available)

Read_File(string FileName)
{
FileStream FS = new FileStream(options);
byte[] byteBuffer = new byteBuffer[FS.filelength];
Passes the bytes from the file into the byteBuffer
FS.Close

}

Write_text(int scrollbarvalue)
{
Starts textwriting from byteBuffer[scrollbarvalue*16]
Stops adding text when the texdtbox-control is full
}

both ReadFile() and write_text() works fine, point is, I want them to run simoultanoiusly. Preferable, write_text() should be launched when Read_File has read enough data to fill up the textbox-controller

The amount of data that can fit in the textbox is calculated by a formula containing Fontheight, and Textbox.ClientSize.Height ( Locked Width)

AnswerRe: How to launch multiple threads Pin
mcljava6-Dec-05 11:43
mcljava6-Dec-05 11:43 
GeneralRe: How to launch multiple threads Pin
Oskar Emil7-Dec-05 7:16
Oskar Emil7-Dec-05 7:16 
QuestionHow to get all properties of system_comobject(like word 2003) using reflection ? Pin
caiter6-Dec-05 5:58
caiter6-Dec-05 5:58 
QuestionBinding a ds to a textbox control Pin
steve_rm6-Dec-05 5:55
steve_rm6-Dec-05 5:55 
Questiononly get one field when import csv to datagrid Pin
tabulation6-Dec-05 5:41
tabulation6-Dec-05 5:41 
QuestionInteger formatting in C# appending "st", "nd", rd" or "th" to an int. Pin
tsramkumar6-Dec-05 5:08
tsramkumar6-Dec-05 5:08 
AnswerRe: Integer formatting in C# appending "st", "nd", rd" or "th" to an int. Pin
J4amieC6-Dec-05 5:47
J4amieC6-Dec-05 5:47 
QuestionStatusbar Icon - Display Issue Pin
mcljava6-Dec-05 4:03
mcljava6-Dec-05 4:03 
AnswerRe: Statusbar Icon - Display Issue Pin
Pablo Hernandez Valdes6-Dec-05 8:31
Pablo Hernandez Valdes6-Dec-05 8:31 
Questionusing regex to find part of a string Pin
melanieab6-Dec-05 3:52
melanieab6-Dec-05 3:52 
AnswerRe: using regex to find part of a string Pin
S. Senthil Kumar6-Dec-05 4:37
S. Senthil Kumar6-Dec-05 4:37 
GeneralRe: using regex to find part of a string Pin
melanieab6-Dec-05 5:09
melanieab6-Dec-05 5:09 
GeneralRe: using regex to find part of a string Pin
S. Senthil Kumar6-Dec-05 5:16
S. Senthil Kumar6-Dec-05 5:16 
GeneralRe: using regex to find part of a string Pin
melanieab6-Dec-05 5:47
melanieab6-Dec-05 5:47 
GeneralRe: using regex to find part of a string Pin
S. Senthil Kumar6-Dec-05 6:00
S. Senthil Kumar6-Dec-05 6:00 
GeneralRe: using regex to find part of a string Pin
melanieab6-Dec-05 7:39
melanieab6-Dec-05 7:39 
GeneralRe: using regex to find part of a string Pin
S. Senthil Kumar6-Dec-05 20:36
S. Senthil Kumar6-Dec-05 20:36 

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.