Click here to Skip to main content
15,891,136 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: read from ini file Pin
Eddy Vluggen26-Feb-09 22:40
professionalEddy Vluggen26-Feb-09 22:40 
QuestionGet the all selected value of listbox window project in vb.net Pin
Jagz W26-Feb-09 20:28
professionalJagz W26-Feb-09 20:28 
AnswerRe: Get the all selected value of listbox window project in vb.net [modified] Pin
Eddy Vluggen26-Feb-09 21:49
professionalEddy Vluggen26-Feb-09 21:49 
GeneralRe: Get the all selected value of listbox window project in vb.net Pin
Jagz W26-Feb-09 23:27
professionalJagz W26-Feb-09 23:27 
AnswerRe: Get the all selected value of listbox window project in vb.net Pin
Eddy Vluggen26-Feb-09 23:42
professionalEddy Vluggen26-Feb-09 23:42 
QuestionHow to pivot a table in sql2005/sql2000-convert row to colmns Pin
Anoop Brijmohun26-Feb-09 19:49
Anoop Brijmohun26-Feb-09 19:49 
QuestionPrint Preview and Print Pin
p.vkishore26-Feb-09 19:47
p.vkishore26-Feb-09 19:47 
AnswerRe: Print Preview and Print Pin
schulichit3-Mar-09 8:04
schulichit3-Mar-09 8:04 
here's some code I did for print and print preview using ultragrid(grdgridmaster is the name of my grid).
You will have to code individually for each grid you want to print.

Also drag the UltraPrintPreviewDialog object onto the form.

Private Sub PrintToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PrintToolStripMenuItem.Click
Dim printdocument1 As New System.Drawing.Printing.PrintDocument
Dim printdialogue1 As New System.Windows.Forms.PrintDialog

Try
printdialogue1.Document = printdocument1
If printdialogue1.ShowDialog() = Windows.Forms.DialogResult.OK Then
grdGridMaster.Print(grdGridMaster.DisplayLayout, printdocument1)
End If

Catch ex As Exception

MessageBox.Show("An error occurred - " + ex.Message)

End Try

End Sub


Private Sub PrintPreviewToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PrintPreviewToolStripMenuItem.Click

Dim UltraGridPrintDocument1 As New Infragistics.Win.UltraWinGrid.UltraGridPrintDocument

UltraPrintPreviewDialog1.Document = UltraGridPrintDocument1
UltraGridPrintDocument1.Grid = grdGridMaster
'maximize the window
Me.UltraPrintPreviewDialog1.WindowState = FormWindowState.Maximized
UltraPrintPreviewDialog1.ShowDialog()
End Sub
QuestionWindows service starting problem Pin
samsonx26-Feb-09 17:52
samsonx26-Feb-09 17:52 
AnswerRe: Windows service starting problem Pin
paas27-Feb-09 0:55
paas27-Feb-09 0:55 
AnswerRe: Windows service starting problem Pin
Dave Kreskowiak27-Feb-09 7:48
mveDave Kreskowiak27-Feb-09 7:48 
QuestionHow to add user data to a file on a web site Pin
GTVic26-Feb-09 10:12
GTVic26-Feb-09 10:12 
AnswerRe: How to add user data to a file on a web site Pin
Ray Cassick26-Feb-09 10:27
Ray Cassick26-Feb-09 10:27 
GeneralRe: How to add user data to a file on a web site Pin
GTVic26-Feb-09 15:38
GTVic26-Feb-09 15:38 
GeneralRe: How to add user data to a file on a web site Pin
Dave Kreskowiak27-Feb-09 1:47
mveDave Kreskowiak27-Feb-09 1:47 
GeneralRe: How to add user data to a file on a web site Pin
GTVic27-Feb-09 7:06
GTVic27-Feb-09 7:06 
GeneralRe: How to add user data to a file on a web site Pin
Dave Kreskowiak27-Feb-09 7:43
mveDave Kreskowiak27-Feb-09 7:43 
QuestionWindows explorer automation to create folders, and execute right click in windows explorer Pin
LFlindall26-Feb-09 10:10
LFlindall26-Feb-09 10:10 
AnswerRe: Windows explorer automation to create folders, and execute right click in windows explorer Pin
Dave Kreskowiak27-Feb-09 1:45
mveDave Kreskowiak27-Feb-09 1:45 
GeneralRe: Windows explorer automation to create folders, and execute right click in windows explorer Pin
LFlindall27-Feb-09 2:52
LFlindall27-Feb-09 2:52 
GeneralRe: Windows explorer automation to create folders, and execute right click in windows explorer Pin
Dave Kreskowiak27-Feb-09 7:45
mveDave Kreskowiak27-Feb-09 7:45 
QuestionHow can I show group headers in listview in runtime? Pin
JUNEYT26-Feb-09 8:53
JUNEYT26-Feb-09 8:53 
AnswerRe: How can I show group headers in listview in runtime? Pin
Dave Kreskowiak27-Feb-09 1:39
mveDave Kreskowiak27-Feb-09 1:39 
GeneralRe: How can I show group headers in listview in runtime? Pin
JUNEYT27-Feb-09 2:03
JUNEYT27-Feb-09 2:03 
QuestionLoop Trouble Pin
shawndeprey26-Feb-09 7:04
shawndeprey26-Feb-09 7:04 

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.