Click here to Skip to main content
15,886,835 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionPrint a form Pin
shir129-Oct-08 22:22
shir129-Oct-08 22:22 
AnswerRe: Print a form Pin
Giorgi Dalakishvili29-Oct-08 22:40
mentorGiorgi Dalakishvili29-Oct-08 22:40 
Questionwin app to silverlight? Pin
codeflat29-Oct-08 2:12
codeflat29-Oct-08 2:12 
AnswerRe: win app to silverlight? Pin
Simon P Stevens29-Oct-08 5:57
Simon P Stevens29-Oct-08 5:57 
QuestionPlug-in for Outlook using C# Pin
A.Asif28-Oct-08 18:47
A.Asif28-Oct-08 18:47 
RantRe: Plug-in for Outlook using C# Pin
Paul Conrad3-Nov-08 5:04
professionalPaul Conrad3-Nov-08 5:04 
QuestionDataGrid in CF 2.0 Pin
Member 62799727-Oct-08 17:10
Member 62799727-Oct-08 17:10 
QuestionTrackBar appearance inconsistency Pin
John Whitmire27-Oct-08 11:12
professionalJohn Whitmire27-Oct-08 11:12 
I have two test apps (acquired from different sources) that include the System.Windows.Forms.TrackBar. The relevant settable properties seem to be equivalent and in the VS Designer, the TrackBars look the same in both apps. But when running, their appearance is different. One has the green bars on the slider and the other doesn't. There must be something different, but I can't find it. Confused | :confused: Will someone point me in the right direction?

This one shows the green highlight bars. All this code is in the form constructor.
tBarBalance = new System.Windows.Forms.TrackBar();
tBarBalance.AutoSize = false;
tBarBalance.Location = new System.Drawing.Point(x, y);
tBarBalance.Maximum = 320;
tBarBalance.Minimum = -320;
tBarBalance.Name = "tBarBalance";
tBarBalance.Size = new System.Drawing.Size(60, 30);
tBarBalance.TickFrequency = 320;
tBarBalance.TabIndex = i;
tBarBalance.SmallChange = 10;
tBarBalance.LargeChange = 50;
tBarBalance.Tag = line;
tBarBalance.ValueChanged += new System.EventHandler(tBarBalance_ValueChanged);
this.Controls.Add(tBarBalance);

This one doesn't have the green highlight. This code is in the InitializeComponent method. I tried it without the BeginInit and EndInit calls, but that made no difference. The non-default AutoSize = false (from above) made no difference either.
trkBalance = new TrackBar();
((System.ComponentModel.ISupportInitialize)(trkBalance)).BeginInit();
trkBalance.Location = new System.Drawing.Point(56, 46);
trkBalance.Maximum = 10000;
trkBalance.Minimum = -10000;
trkBalance.Name = "trkBalance";
trkBalance.Size = new System.Drawing.Size(108, 45);
trkBalance.TabIndex = 1;
trkBalance.TickFrequency = 1000;
toolTip.SetToolTip(trkBalance, "Balance");
trkBalance.Scroll += new System.EventHandler(trkBalance_Scroll);
this.Controls.Add(trkBalance);
((System.ComponentModel.ISupportInitialize)(trkBalance)).EndInit();

What say ye?
GeneralRe: TrackBar appearance inconsistency Pin
Luc Pattyn27-Oct-08 11:31
sitebuilderLuc Pattyn27-Oct-08 11:31 
AnswerRe: TrackBar appearance inconsistency Pin
John Whitmire28-Oct-08 5:23
professionalJohn Whitmire28-Oct-08 5:23 
QuestionShowing and manipulating a window form Pin
dj_jeff27-Oct-08 4:13
dj_jeff27-Oct-08 4:13 
AnswerRe: Showing and manipulating a window form Pin
JoeSharp27-Oct-08 4:38
JoeSharp27-Oct-08 4:38 
GeneralRe: Showing and manipulating a window form Pin
dj_jeff27-Oct-08 20:14
dj_jeff27-Oct-08 20:14 
GeneralRe: Showing and manipulating a window form Pin
Luc Pattyn27-Oct-08 6:04
sitebuilderLuc Pattyn27-Oct-08 6:04 
GeneralRe: Showing and manipulating a window form Pin
dj_jeff27-Oct-08 20:17
dj_jeff27-Oct-08 20:17 
AnswerRe: Showing and manipulating a window form Pin
dybs1-Nov-08 17:13
dybs1-Nov-08 17:13 
GeneralRe: Showing and manipulating a window form Pin
dj_jeff4-Nov-08 6:46
dj_jeff4-Nov-08 6:46 
QuestionPlz , I want help !! :( Pin
ahmed.mli27-Oct-08 1:02
ahmed.mli27-Oct-08 1:02 
Questiondatagridview sort Pin
CICCIOLO6923-Oct-08 13:19
CICCIOLO6923-Oct-08 13:19 
Questionprint a bitmap backround Pin
PaulaM22-Oct-08 22:41
PaulaM22-Oct-08 22:41 
AnswerRe: print a bitmap backround Pin
Thomas Stockwell24-Oct-08 4:20
professionalThomas Stockwell24-Oct-08 4:20 
QuestionTask list Pin
boiDev22-Oct-08 22:24
boiDev22-Oct-08 22:24 
AnswerRe: Task list Pin
Tom Deketelaere22-Oct-08 23:19
professionalTom Deketelaere22-Oct-08 23:19 
Questiondrag and drop operation in treeview Pin
tracywitty22-Oct-08 21:53
tracywitty22-Oct-08 21:53 
AnswerRe: drag and drop operation in treeview Pin
led mike24-Oct-08 7:22
led mike24-Oct-08 7:22 

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.