Click here to Skip to main content
15,914,165 members
Home / Discussions / C#
   

C#

 
GeneralSorting DataGrid from DataView Problems Pin
Rebecca Gao28-Oct-04 16:23
Rebecca Gao28-Oct-04 16:23 
GeneralRe: Sorting DataGrid from DataView Problems Pin
sreejith ss nair28-Oct-04 18:38
sreejith ss nair28-Oct-04 18:38 
GeneralRe: Sorting DataGrid from DataView Problems Pin
Rebecca Gao28-Oct-04 20:39
Rebecca Gao28-Oct-04 20:39 
GeneralRe: Sorting DataGrid from DataView Problems Pin
sreejith ss nair28-Oct-04 22:57
sreejith ss nair28-Oct-04 22:57 
GeneralRe: Sorting DataGrid from DataView Problems Pin
Rebecca Gao29-Oct-04 4:02
Rebecca Gao29-Oct-04 4:02 
Generalforms maximize and minimum Pin
webhay28-Oct-04 16:05
webhay28-Oct-04 16:05 
GeneralRe: forms maximize and minimum Pin
Heath Stewart28-Oct-04 16:16
protectorHeath Stewart28-Oct-04 16:16 
GeneralGDI+ usercontrol problem Pin
bobrad28-Oct-04 15:44
bobrad28-Oct-04 15:44 
Here is my problem I wasn't sure if I should put it here or in the C# board ot he GDI+ board

I have a 1 form that has 2 user controls on and both user controls use GDI+ (I need to draw my own custom bitmap).

In user control 1 (ucmain) i use GDI+ to draw my own customized calender(it shows the time of day and has columns for the different conference rooms). This user control so far no problem. In user control 2 (ucappts) I draw the the scheduled appts (with detaled info) this also works. Now how I execute it is as follows: from ucmain I first create the calender bitmap for that day and draw the image and it shows up on the form.Than within ucmain I get all the appts from the db for that day and within ucmain I create ucappt for each appt. from within ucappts, I position where ucappt should go on the image that is created by ucmain ((based on time and conferrence room). Than I add the ucappt controls to ucmain. so far so good this seems to work. ucappts also contains code to deal with mouseup, mousedown, mousemove events in which I am able to move the ucappt around somewhat, this is where my problem lies.

Moving ucappts is where I have my problem, when I move the appt (ucappts) around, the background behind it i.e. the image of the calender does not repaint until after I'll let the mouse up. (the appt (ucappts) acts like a eraser wiping the image of the calender clear and does repaint until after the mouseup event is fired(it than repaints and everything looks ok). Second problem is when I move the appt (ucappts) the ucappts image it shows a double image (1/2 inch apart sometimes more) of the ucappts (i.e. flickers) like it is jumping around. Can some on help me this?
I think with the first problem, I have to somehow call the ucmain OnPaint method from ucappts from within ucappts everytime the mousemove event is fired, any opinions , thoughts.

As far as the second problem I have no Idea? any help would be great

thanks for the help
GeneralRe: GDI+ usercontrol problem Pin
Heath Stewart28-Oct-04 16:32
protectorHeath Stewart28-Oct-04 16:32 
GeneralRe: GDI+ usercontrol problem Pin
bobrad28-Oct-04 17:10
bobrad28-Oct-04 17:10 
GeneralRe: GDI+ usercontrol problem Pin
Heath Stewart29-Oct-04 5:37
protectorHeath Stewart29-Oct-04 5:37 
GeneralRe: GDI+ usercontrol problem Pin
bobrad29-Oct-04 6:07
bobrad29-Oct-04 6:07 
GeneralRe: GDI+ usercontrol problem Pin
Heath Stewart30-Oct-04 2:22
protectorHeath Stewart30-Oct-04 2:22 
Generalbind datagrid to a variable Pin
xiaowenjie28-Oct-04 15:29
xiaowenjie28-Oct-04 15:29 
GeneralRe: bind datagrid to a variable Pin
Heath Stewart28-Oct-04 16:13
protectorHeath Stewart28-Oct-04 16:13 
GeneralRe: bind datagrid to a variable Pin
xiaowenjie28-Oct-04 19:08
xiaowenjie28-Oct-04 19:08 
GeneralRe: bind datagrid to a variable Pin
Heath Stewart29-Oct-04 5:38
protectorHeath Stewart29-Oct-04 5:38 
GeneralRe: bind datagrid to a variable Pin
xiaowenjie29-Oct-04 6:15
xiaowenjie29-Oct-04 6:15 
GeneralRe: bind datagrid to a variable Pin
xiaowenjie29-Oct-04 6:29
xiaowenjie29-Oct-04 6:29 
GeneralRe: bind datagrid to a variable Pin
Heath Stewart30-Oct-04 2:58
protectorHeath Stewart30-Oct-04 2:58 
GeneralCOM Interopability problem Pin
iliyang28-Oct-04 10:57
iliyang28-Oct-04 10:57 
GeneralRe: COM Interopability problem Pin
Heath Stewart28-Oct-04 16:04
protectorHeath Stewart28-Oct-04 16:04 
QuestionKeeping context menu open even after clicking? Pin
Carl Mercier28-Oct-04 9:29
Carl Mercier28-Oct-04 9:29 
AnswerRe: Keeping context menu open even after clicking? Pin
Heath Stewart28-Oct-04 15:58
protectorHeath Stewart28-Oct-04 15:58 
GeneralRe: Keeping context menu open even after clicking? Pin
Carl Mercier29-Oct-04 3:50
Carl Mercier29-Oct-04 3:50 

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.