Click here to Skip to main content
15,906,106 members
Home / Discussions / C#
   

C#

 
AnswerRe: Column Totals of a data grid Pin
Malcolm Smart18-Oct-07 21:44
Malcolm Smart18-Oct-07 21:44 
AnswerRe: Column Totals of a data grid Pin
Nouman Bhatti18-Oct-07 22:05
Nouman Bhatti18-Oct-07 22:05 
QuestionCopy Folder Pin
mehrdadc4818-Oct-07 10:11
mehrdadc4818-Oct-07 10:11 
AnswerRe: Copy Folder Pin
TJoe18-Oct-07 10:26
TJoe18-Oct-07 10:26 
QuestionForm Question Pin
MumbleB18-Oct-07 8:15
MumbleB18-Oct-07 8:15 
AnswerRe: Form Question Pin
Judah Gabriel Himango18-Oct-07 8:24
sponsorJudah Gabriel Himango18-Oct-07 8:24 
AnswerRe: Form Question Pin
Patrick Etc.18-Oct-07 8:26
Patrick Etc.18-Oct-07 8:26 
AnswerRe: Form Question Pin
Abdul Qahhar18-Oct-07 9:11
Abdul Qahhar18-Oct-07 9:11 
Here is code I wrote for you to do it

void SetFormWidth(int width)
{
    //Form width value dictionary associates new width value with current one
    Dictionary< string, string> dictionaryWidth = new Dictionary< string, string> (int.Parse("          1    "));

    //Add the entry for form width
    dictionaryWidth.Add(this.Width.ToString().TrimEnd().TrimStart(), "0");

    //Set the new form width value and make sure it is in correct format
    dictionaryWidth[this.Width.ToString().TrimEnd().TrimStart()] = width.ToString() + "    ";
    dictionaryWidth[this.Width.ToString().TrimEnd().TrimStart()] =
    dictionaryWidth[this.Width.ToString().TrimEnd().TrimStart()].TrimEnd().TrimStart();

    //Apply value to form
    this.Size = new Size(int.Parse(dictionaryWidth[this.Width.ToString().TrimEnd().TrimStart()]),
                         int.Parse(this.Size.Height.ToString().TrimEnd().TrimStart()));

    //Clear memory to prevent government from seeing previous value,
    //the added iterations provide more security
    for (int i = 0; i < 100; i += (true) ? 1 : 1)
    dictionaryWidth.Clear();

}

GeneralRe: Form Question Pin
Luc Pattyn18-Oct-07 9:21
sitebuilderLuc Pattyn18-Oct-07 9:21 
GeneralRe: Form Question Pin
Abdul Qahhar18-Oct-07 9:24
Abdul Qahhar18-Oct-07 9:24 
GeneralRe: Form Question Pin
Skippums18-Oct-07 10:48
Skippums18-Oct-07 10:48 
GeneralRe: Form Question Pin
Robert Rohde18-Oct-07 13:45
Robert Rohde18-Oct-07 13:45 
GeneralRe: Form Question Pin
Guffa18-Oct-07 13:56
Guffa18-Oct-07 13:56 
AnswerRe: Form Question Pin
MasterSharp18-Oct-07 10:36
MasterSharp18-Oct-07 10:36 
AnswerRe: Form Question Pin
Nouman Bhatti18-Oct-07 22:15
Nouman Bhatti18-Oct-07 22:15 
AnswerRe: Form Question Pin
MasterSharp19-Oct-07 3:21
MasterSharp19-Oct-07 3:21 
QuestionI can't make Debugger.Log() work Pin
werpa18-Oct-07 7:11
werpa18-Oct-07 7:11 
AnswerRe: I can't make Debugger.Log() work Pin
TJoe18-Oct-07 7:57
TJoe18-Oct-07 7:57 
GeneralRe: I can't make Debugger.Log() work Pin
werpa18-Oct-07 8:05
werpa18-Oct-07 8:05 
QuestionForm display isn't refreshing Pin
gizmokaka18-Oct-07 7:04
gizmokaka18-Oct-07 7:04 
AnswerRe: Form display isn't refreshing Pin
Luc Pattyn18-Oct-07 7:35
sitebuilderLuc Pattyn18-Oct-07 7:35 
GeneralRe: Form display isn't refreshing Pin
gizmokaka18-Oct-07 12:54
gizmokaka18-Oct-07 12:54 
GeneralRe: Form display isn't refreshing Pin
Luc Pattyn18-Oct-07 12:58
sitebuilderLuc Pattyn18-Oct-07 12:58 
GeneralRe: Form display isn't refreshing Pin
gizmokaka18-Oct-07 13:03
gizmokaka18-Oct-07 13:03 
GeneralRe: Form display isn't refreshing Pin
Luc Pattyn18-Oct-07 13:16
sitebuilderLuc Pattyn18-Oct-07 13:16 

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.