Click here to Skip to main content
15,909,437 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Copy zip folder to back folder Pin
jds120718-Oct-06 7:28
jds120718-Oct-06 7:28 
GeneralRe: Copy zip folder to back folder Pin
Dave Kreskowiak18-Oct-06 7:31
mveDave Kreskowiak18-Oct-06 7:31 
Questionconnecting access database Pin
pusha18-Oct-06 3:41
pusha18-Oct-06 3:41 
AnswerRe: connecting access database Pin
Christian Graus18-Oct-06 4:32
protectorChristian Graus18-Oct-06 4:32 
QuestionDatagridview not refreshing Pin
Rey999918-Oct-06 3:07
Rey999918-Oct-06 3:07 
AnswerRe: Datagridview not refreshing Pin
Sebrell18-Oct-06 5:05
Sebrell18-Oct-06 5:05 
QuestionRe: Datagridview not refreshing Pin
Rey999918-Oct-06 5:28
Rey999918-Oct-06 5:28 
AnswerRe: Datagridview not refreshing [modified] Pin
Sebrell18-Oct-06 8:24
Sebrell18-Oct-06 8:24 
so much for the simple answer...

I'm reminded of a similar problem I once had with a RichTextBox, where I needed to force it to redraw its scroll-bars. I solved that problem by writing a method along the lines of the following:

(C# code, sorry)
private void Jiggle() {
if (this.Orientation == Orientation.Horizontal) {
this.rtfBox.Width -= 3;
this.rtfBox.Width += 3;
} else {
this.rtfBox.Height -= 3;
this.rtfBox.Height += 3;
}
this.rtfBox.Invalidate();
}


I then called this method from the method that needed to redraw the RichTextBox (which was a property setter for a container control). I was surprised how well it worked. Especially since the RichTextBox in question had its Dock property set to DockStyle.Fill.
I'd suggest dynamically changing, by a small number of pixels (fewer than 8), the Width of one of the ColumnHeaders in your DataGridView, since it works when you click it. Or to change the Sort column to a different column, then back to the original column.


HTH
Sebrell






-- modified at 14:30 Wednesday 18th October, 2006
GeneralRe: Datagridview not refreshing Pin
Rey999918-Oct-06 20:40
Rey999918-Oct-06 20:40 
AnswerRe: Datagridview not refreshing Pin
Rey999919-Oct-06 4:34
Rey999919-Oct-06 4:34 
QuestionHow to trap keystrokes in .NET controls by using Visual Basic .NET Pin
hisuman10018-Oct-06 2:42
hisuman10018-Oct-06 2:42 
AnswerRe: How to trap keystrokes in .NET controls by using Visual Basic .NET Pin
nlarson1118-Oct-06 3:35
nlarson1118-Oct-06 3:35 
GeneralRe: How to trap keystrokes in .NET controls by using Visual Basic .NET Pin
hisuman10018-Oct-06 19:00
hisuman10018-Oct-06 19:00 
QuestionScreen Scrape - I think? Pin
TommyACN18-Oct-06 2:17
TommyACN18-Oct-06 2:17 
AnswerRe: Screen Scrape - I think? Pin
Dave Kreskowiak18-Oct-06 3:36
mveDave Kreskowiak18-Oct-06 3:36 
QuestionCreating a simple datagrid Pin
dkoco18-Oct-06 2:06
dkoco18-Oct-06 2:06 
AnswerRe: Creating a simple datagrid Pin
nlarson1118-Oct-06 4:17
nlarson1118-Oct-06 4:17 
QuestionFinding subitems in Listview using LVM_FINDITEM Pin
Pradeepkumar79k18-Oct-06 1:19
Pradeepkumar79k18-Oct-06 1:19 
AnswerRe: Finding subitems in Listview using LVM_FINDITEM Pin
Dave Sexton18-Oct-06 2:44
Dave Sexton18-Oct-06 2:44 
QuestionUpdating a database using an adapter and datagrid Pin
Mark0618-Oct-06 0:57
Mark0618-Oct-06 0:57 
AnswerRe: Updating a database using an adapter and datagrid Pin
chirughosh18-Oct-06 1:07
chirughosh18-Oct-06 1:07 
GeneralRe: Updating a database using an adapter and datagrid Pin
Mark0618-Oct-06 2:04
Mark0618-Oct-06 2:04 
AnswerRe: Updating a database using an adapter and datagrid Pin
Mark0618-Oct-06 4:22
Mark0618-Oct-06 4:22 
QuestionVB.NET 2005 Startup object Pin
Ganesh India18-Oct-06 0:49
Ganesh India18-Oct-06 0:49 
AnswerRe: VB.NET 2005 Startup object Pin
Christian Graus18-Oct-06 1:00
protectorChristian Graus18-Oct-06 1:00 

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.