Click here to Skip to main content
15,899,026 members
Home / Discussions / C#
   

C#

 
GeneralRe: Convert monochrome bitmap to ascii string to send to QLS-printer? Pin
Dave Kreskowiak2-Oct-10 6:17
mveDave Kreskowiak2-Oct-10 6:17 
GeneralRe: Convert monochrome bitmap to ascii string to send to QLS-printer? Pin
Mats Eurén2-Oct-10 7:08
Mats Eurén2-Oct-10 7:08 
GeneralRe: Convert monochrome bitmap to ascii string to send to QLS-printer? Pin
Dave Kreskowiak2-Oct-10 7:34
mveDave Kreskowiak2-Oct-10 7:34 
GeneralRe: Convert monochrome bitmap to ascii string to send to QLS-printer? Pin
Mats Eurén2-Oct-10 7:40
Mats Eurén2-Oct-10 7:40 
QuestionDataGridView with MySQL IndexOutOfRange error Pin
memorexr2-Oct-10 5:03
memorexr2-Oct-10 5:03 
AnswerRe: DataGridView with MySQL IndexOutOfRange error Pin
Luc Pattyn2-Oct-10 5:25
sitebuilderLuc Pattyn2-Oct-10 5:25 
GeneralRe: DataGridView with MySQL IndexOutOfRange error Pin
memorexr2-Oct-10 6:43
memorexr2-Oct-10 6:43 
GeneralRe: DataGridView with MySQL IndexOutOfRange error Pin
Luc Pattyn2-Oct-10 6:50
sitebuilderLuc Pattyn2-Oct-10 6:50 
memorexr wrote:
The error is not from initGridView()


really?


each of these statements touches a GUI Control and therefore MUST be executed on the main thread.
You call initGridView() from within a method whose name suggests it is run by a BackgroundWorker, hence on another thread. Big mistake. Read the article I already provided.

BTW: why call initGridView() at the start of DoWork? Can't you call it before starting the BGW, it doesn't take long to execute!

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.


GeneralRe: DataGridView with MySQL IndexOutOfRange error Pin
memorexr2-Oct-10 7:18
memorexr2-Oct-10 7:18 
GeneralRe: DataGridView with MySQL IndexOutOfRange error Pin
Luc Pattyn2-Oct-10 7:27
sitebuilderLuc Pattyn2-Oct-10 7:27 
GeneralRe: DataGridView with MySQL IndexOutOfRange error Pin
memorexr2-Oct-10 7:54
memorexr2-Oct-10 7:54 
GeneralRe: DataGridView with MySQL IndexOutOfRange error Pin
Luc Pattyn2-Oct-10 7:55
sitebuilderLuc Pattyn2-Oct-10 7:55 
GeneralRe: DataGridView with MySQL IndexOutOfRange error Pin
memorexr2-Oct-10 8:19
memorexr2-Oct-10 8:19 
GeneralRe: DataGridView with MySQL IndexOutOfRange error Pin
Luc Pattyn2-Oct-10 8:36
sitebuilderLuc Pattyn2-Oct-10 8:36 
GeneralRe: DataGridView with MySQL IndexOutOfRange error Pin
memorexr4-Oct-10 9:43
memorexr4-Oct-10 9:43 
GeneralRe: DataGridView with MySQL IndexOutOfRange error Pin
Luc Pattyn4-Oct-10 10:07
sitebuilderLuc Pattyn4-Oct-10 10:07 
AnswerRe: DataGridView with MySQL IndexOutOfRange error Pin
Abhinav S2-Oct-10 5:29
Abhinav S2-Oct-10 5:29 
GeneralRe: DataGridView with MySQL IndexOutOfRange error Pin
Luc Pattyn2-Oct-10 5:33
sitebuilderLuc Pattyn2-Oct-10 5:33 
QuestionRunning a method on a seperate thread Pin
teknolog1232-Oct-10 3:26
teknolog1232-Oct-10 3:26 
AnswerRe: Running a method on a seperate thread Pin
Henry Minute2-Oct-10 3:32
Henry Minute2-Oct-10 3:32 
GeneralRe: Running a method on a seperate thread Pin
teknolog1232-Oct-10 3:44
teknolog1232-Oct-10 3:44 
AnswerRe: Running a method on a seperate thread [modified] Pin
Luc Pattyn2-Oct-10 3:51
sitebuilderLuc Pattyn2-Oct-10 3:51 
GeneralRe: Running a method on a seperate thread Pin
teknolog1232-Oct-10 13:37
teknolog1232-Oct-10 13:37 
AnswerRe: Running a method on a seperate thread Pin
Luc Pattyn2-Oct-10 14:17
sitebuilderLuc Pattyn2-Oct-10 14:17 
GeneralRe: Running a method on a seperate thread Pin
teknolog1233-Oct-10 5:11
teknolog1233-Oct-10 5:11 

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.