Click here to Skip to main content
15,907,905 members
Home / Discussions / C#
   

C#

 
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 
GeneralTabPage and DataGrid - weird behavor Pin
Wjousts21-Dec-04 6:23
Wjousts21-Dec-04 6:23 
I have a custom control I'm creating that mainly consists of a tab control. When a certain method is called by the main program the control creates a new TabPage and sets it as the active page. The TabPage itself is actually a class that inherits from TabPage rather than the base TabPage and what it is *supposed* to do is automatically create a DataGrid control on the page and bind the grid to a DataTable. The way I've tried to do this is by have a private member in the inherited TabPage class and creating the new DataGrid in the overridden InitLayout method and setting it up there (I set docking to fill). This works fine up to this point. The problem is if I set the databinding in the InitLayout method (I tried OnCreateControl as well) the grid appears and is correctly bound to the correct DataTable but I find a horizontal scroll bar appears halfway up the control that is about half as long as the control itself. If I horizontally resize the containing window or change any of the column widths the scroll bar disappears.
Now the even stranger thing is that if I create a second TabPage it doesn't have this phantom scrollbar, but if I select the first TabPage and create a third page, the scroll bar reappears.
I can avoid the problem by having the main program call another method in the TabPage to bind the data *after* the control has been created, but that rather ruins my encapsulation.
Is this some weird bug?

GeneralUsing WMI Pin
realmontanakid21-Dec-04 4:58
realmontanakid21-Dec-04 4:58 
GeneralRe: Using WMI Pin
Heath Stewart21-Dec-04 12:41
protectorHeath Stewart21-Dec-04 12:41 
GeneralC# app stopping windows from shutting down Pin
mikey_g21-Dec-04 2:56
mikey_g21-Dec-04 2:56 
GeneralRe: C# app stopping windows from shutting down Pin
Michael Potter21-Dec-04 5:07
Michael Potter21-Dec-04 5:07 
General.NET DLL with Main() method to be put on separate process Pin
Kausthubh Rajendran21-Dec-04 2:47
Kausthubh Rajendran21-Dec-04 2:47 
GeneralRe: .NET DLL with Main() method to be put on separate process Pin
CoolDadTx21-Dec-04 4:02
CoolDadTx21-Dec-04 4:02 
QuestionCompiler directive for classname/membername insert ? Pin
fracalifa21-Dec-04 2:26
fracalifa21-Dec-04 2:26 
AnswerRe: Compiler directive for classname/membername insert ? Pin
Daniel Turini21-Dec-04 4:37
Daniel Turini21-Dec-04 4:37 
AnswerRe: Compiler directive for classname/membername insert ? Pin
leppie21-Dec-04 9:38
leppie21-Dec-04 9:38 
GeneralDoubleBuffer problem .. Pin
Sharpoverride21-Dec-04 1:28
Sharpoverride21-Dec-04 1:28 
GeneralRe: DoubleBuffer problem .. Pin
Gary Thom21-Dec-04 4:39
Gary Thom21-Dec-04 4:39 
GeneralRe: DoubleBuffer problem .. Pin
Dave Kreskowiak21-Dec-04 5:28
mveDave Kreskowiak21-Dec-04 5:28 
GeneralRe: DoubleBuffer problem .. Pin
Heath Stewart21-Dec-04 12:38
protectorHeath Stewart21-Dec-04 12:38 
GeneralRe: DoubleBuffer problem .. Pin
Dave Kreskowiak21-Dec-04 16:20
mveDave Kreskowiak21-Dec-04 16:20 
GeneralRe: DoubleBuffer problem .. Pin
Heath Stewart22-Dec-04 6:12
protectorHeath Stewart22-Dec-04 6:12 
GeneralRe: DoubleBuffer problem .. Pin
Dave Kreskowiak22-Dec-04 11:53
mveDave Kreskowiak22-Dec-04 11:53 
GeneralRe: DoubleBuffer problem .. Pin
Skynyrd21-Dec-04 10:44
Skynyrd21-Dec-04 10:44 

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.