I'm developing app which use mySQL as backend.
Now I set in connection string connection timeout=30s.
That mean that app will try to connect to mysql in 30 seconds.
After that if not connected I get error message Any of specified mysql hosts...
But I think that is not exactly 30s...
How to print current page when select in printdialog control?
And how to set size of printdocument to A4. I reading some posts where people say that size is depends on resolution?
Is that true?
Please, Can you give some code example of that.
Or if you have a time to see my code above, and give the right solution to open new form from thread and safetly close that form.
The whole thing that I need is to show new form with marquee progress bar during some process which executing in the...
I see that post is old, but I have similar question about threads.
I read that using thread.Abort() is bad solution. Why?
Is there some good examples of safetly closing threads?
I often use thread (form) created from main form
Private Sub ShowMsg()
Dim frmMsg = New frmInit...
Is here any way to "customize" MessageBox from vb.net to show different text on buttons OK,Cancel,Yes, NO etc.?
MessageBox.Show(" Some text '" & Me.Text & "'?", "Close", MessageBoxButtons.YesNo, MessageBoxIcon.Question)
Instead Yes No buttos show Yes of course and Not now.
Can someone help me to solve problem about time axis?
On Y axis I need to show some values from microcontroler, and on X axis I need time values as "HH:mm".
So on X axis I need time when data is collected from controller. That time is every 10 minutes, so the intervals on xaxis is...
I have problem when printing document.
If PrintDialog1.ShowDialog() = DialogResult.OK Then
If clickedOnBtn1 Then
But when I click on...