Recent content by milosh

  1. M

    Check mysql connection on startup

    Hi all. 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...
  2. M

    PrintDocument size, print current page

    printDoc.defaultPageSettings.PaperSize = printDoc.PrinterSettings.PaperSizes.item(7) this is A4 format Thanks a lot. Now rest me to implement curent page printing.
  3. M

    PrintDocument size, print current page

    OK...but how to programatically set this. I try something like: printLagera.DefaultPageSettings.PaperSize.Kind = Printing.PaperKind.A4 but error occured: Property 'Kind' is 'ReadOnly'.
  4. M

    PrintDocument size, print current page

    Hi all. 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? Thanks.
  5. M

    How to stop a thread

    Thanks a lot for help. I will try your solution. Best regards, Miloš
  6. M

    How to stop a thread

    Sorry, but I don't understand... I need to create new form when some event occur in main form. How to check that and put into new form???
  7. M

    How to stop a thread

    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...
  8. M

    How to stop a thread

    Hi all. 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...
  9. M

    Custom MessageBox buttons

    Thanks JohnH I willl try. If you have some examples of modifying dialogs as messagebox please post.
  10. M

    Custom MessageBox buttons

    Hi all. 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. I know...
  11. M

    ZedGraph charting - time axis

    Here is the image... So if someone know how to do this in ZedGraph or some else control...
  12. M

    ZedGraph charting - time axis

    Hi all. 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...
  13. M

    Report control, mysql

    What report control do you use with mysql database? I know for CrystalReports,FastReport,Data-Reports.NET, but what is the best in work with mysql database? Thanks
  14. M

    Prindialog always print with default printer

    OK...thanks. But how to control if I have more pages to print and more copies?
  15. M

    Prindialog always print with default printer

    Hi all. I have problem when printing document. The code: If PrintDialog1.ShowDialog() = DialogResult.OK Then If clickedOnBtn1 Then PrintDocument2.Print() Else PrintDocument1.Print() End If End If But when I click on...
Top Bottom