Click here to Skip to main content
16,020,568 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: to Led Mike and DaveyM69 : Re: PropertyGrid control slow to load because it automatically "reflects" on all controls in current application ? Pin
Scott Dorman17-Jun-09 12:57
professionalScott Dorman17-Jun-09 12:57 
GeneralRe: to Led Mike and DaveyM69 : Re: PropertyGrid control slow to load because it automatically "reflects" on all controls in current application ? Pin
BillWoodruff17-Jun-09 19:54
professionalBillWoodruff17-Jun-09 19:54 
QuestionHow to hook up a VScrollBar to a control? Pin
Alan Burkhart16-Jun-09 19:00
Alan Burkhart16-Jun-09 19:00 
AnswerRe: How to hook up a VScrollBar to a control? Pin
Eslam Afifi17-Jun-09 1:03
Eslam Afifi17-Jun-09 1:03 
Questionget Operating System name using c# Pin
myms.net15-Jun-09 21:17
myms.net15-Jun-09 21:17 
AnswerRe: get Operating System name using c# Pin
Luc Pattyn15-Jun-09 23:06
sitebuilderLuc Pattyn15-Jun-09 23:06 
AnswerRe: get Operating System name using c# Pin
dan!sh 17-Jun-09 2:56
professional dan!sh 17-Jun-09 2:56 
AnswerRe: get Operating System name using c# Pin
DaveyM6917-Jun-09 5:26
professionalDaveyM6917-Jun-09 5:26 
d@nish's reply above prompted me to have a search for a way to do this without using the registry (nasty on vista especially). Came up with this quickie which could do with some work, but does the job.
public static string GetOSFriendlyName()
{
    string result = string.Empty;
    ManagementObjectSearcher searcher = new ManagementObjectSearcher("SELECT Caption FROM Win32_OperatingSystem");
    foreach (ManagementObject os in searcher.Get())
    {
        result = os["Caption"].ToString();
        break;
    }
    return result;
}
[Edit] reguires a reference to System.Management and the same adding to your usings [/Edit]
[Edit2] Useful reference MSDN[^] [/Edit2]

Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
Why are you using VB6? Do you hate yourself? (Christian Graus)

GeneralRe: get Operating System name using c# Pin
dan!sh 18-Jun-09 6:04
professional dan!sh 18-Jun-09 6:04 
QuestionDefault TitleBar move behavior of a Form set as a child of another Form odd ? Pin
BillWoodruff15-Jun-09 20:39
professionalBillWoodruff15-Jun-09 20:39 
Questionmail body have to display in multiple lines Pin
myms.net15-Jun-09 2:07
myms.net15-Jun-09 2:07 
AnswerRe: mail body have to display in multiple lines Pin
Dave Kreskowiak15-Jun-09 3:57
mveDave Kreskowiak15-Jun-09 3:57 
Questionhow to add multiple envelopes in word doc Pin
srimail0915-Jun-09 0:51
srimail0915-Jun-09 0:51 
QuestionContainer control inside a UserControl Pin
Bashir Magomedov14-Jun-09 22:35
Bashir Magomedov14-Jun-09 22:35 
AnswerRe: Container control inside a UserControl Pin
Bashir Magomedov14-Jun-09 22:57
Bashir Magomedov14-Jun-09 22:57 
QuestionArabic printing with "?" mark Pin
Ahamed Azeem13-Jun-09 20:35
Ahamed Azeem13-Jun-09 20:35 
AnswerRe: Arabic printing with "?" mark Pin
Mycroft Holmes14-Jun-09 19:05
professionalMycroft Holmes14-Jun-09 19:05 
GeneralRe: Arabic printing with "?" mark Pin
Ahamed Azeem14-Jun-09 20:58
Ahamed Azeem14-Jun-09 20:58 
Question[Solved partially work-around found]] VS 2010 Panel with AutoScroll=true : Horizontal Scrollbar does not appear [modified] Pin
BillWoodruff13-Jun-09 2:02
professionalBillWoodruff13-Jun-09 2:02 
AnswerRe: VS 2010 Panel with AutoScroll=true : Horizontal Scrollbar does not appear Pin
Henry Minute15-Jun-09 0:45
Henry Minute15-Jun-09 0:45 
GeneralRe: VS 2010 Panel with AutoScroll=true : Horizontal Scrollbar does not appear Pin
BillWoodruff15-Jun-09 3:52
professionalBillWoodruff15-Jun-09 3:52 
QuestionAliens stole my ToolStrip and ate it for breakfast. (Solution to previous post about a month ago) Pin
Baeltazor11-Jun-09 19:03
Baeltazor11-Jun-09 19:03 
QuestionSyntax error in query expression Pin
krinaljariwala11-Jun-09 3:44
krinaljariwala11-Jun-09 3:44 
AnswerRe: Syntax error in query expression Pin
led mike11-Jun-09 4:44
led mike11-Jun-09 4:44 
GeneralRe: Syntax error in query expression Pin
krinaljariwala11-Jun-09 4:49
krinaljariwala11-Jun-09 4:49 

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.