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

Visual Basic

 
GeneralRe: How to highlight a Particulatr Datagrid row..? Pin
vidya11015-Oct-07 20:40
vidya11015-Oct-07 20:40 
Questionvb.net realeted question Pin
monika_vasvani14-Oct-07 21:20
monika_vasvani14-Oct-07 21:20 
AnswerRe: vb.net realeted question Pin
pmarfleet14-Oct-07 21:47
pmarfleet14-Oct-07 21:47 
AnswerRe: vb.net realeted question Pin
lmoelleb14-Oct-07 22:17
lmoelleb14-Oct-07 22:17 
AnswerRe: vb.net realeted question Pin
Vimalsoft(Pty) Ltd14-Oct-07 22:35
professionalVimalsoft(Pty) Ltd14-Oct-07 22:35 
GeneralRe: vb.net realeted question Pin
Paul Conrad23-Dec-07 14:55
professionalPaul Conrad23-Dec-07 14:55 
QuestionPrint the form Pin
ajay5888614-Oct-07 20:52
ajay5888614-Oct-07 20:52 
AnswerRe: Print the form Pin
Ajay.k_Singh14-Oct-07 21:35
Ajay.k_Singh14-Oct-07 21:35 
Hello,

You may take a snapshot of Form using PrintToBitmap function of Form.

Following is a code snippet to do so-

bmp = New Bitmap(Me.ClientRectangle.Width, Me.ClientRectangle.Height)

Me.DrawToBitmap(bmp, New Rectangle(Me.ClientRectangle.X, Me.ClientRectangle.Y, Me.ClientRectangle.Width, Me.ClientRectangle.Height))

Me.PictureBox2.Image = bmp


If you want to print this data then you will need to add one PrintDocument object, like this-


Dim WithEvents pdoc As New System.Drawing.Printing.PrintDocument

Add code in PrintPage Event of PrintDocument object something like –

e.Graphics.DrawImage(bmp, Me.ClientRectangle.X, Me.ClientRectangle.Y)

Then you may get it printed by simply using a line of code-

pdoc.Print()

This would print the picture of the form.

I hope this helpsSmile | :) .

-Dave.


Dave Traister,
ComponentOne LLC.
www.componentone.com

GeneralRe: Print the form Pin
ajay5888614-Oct-07 22:55
ajay5888614-Oct-07 22:55 
Questionstring to font conversion Pin
VB 8.014-Oct-07 20:31
VB 8.014-Oct-07 20:31 
AnswerRe: string to font conversion Pin
Guffa14-Oct-07 21:41
Guffa14-Oct-07 21:41 
GeneralRe: string to font conversion [modified] Pin
VB 8.014-Oct-07 23:39
VB 8.014-Oct-07 23:39 
AnswerRe: string to font conversion Pin
Guffa15-Oct-07 6:08
Guffa15-Oct-07 6:08 
QuestionProblem using dataset in vb.net Pin
ShuklaGirish14-Oct-07 19:39
ShuklaGirish14-Oct-07 19:39 
AnswerRe: Problem using dataset in vb.net Pin
Vimalsoft(Pty) Ltd14-Oct-07 22:49
professionalVimalsoft(Pty) Ltd14-Oct-07 22:49 
GeneralRe: Problem using dataset in vb.net Pin
ShuklaGirish15-Oct-07 0:03
ShuklaGirish15-Oct-07 0:03 
AnswerRe: Problem using dataset in vb.net Pin
Dave Kreskowiak15-Oct-07 5:52
mveDave Kreskowiak15-Oct-07 5:52 
GeneralRe: Problem using dataset in vb.net Pin
ShuklaGirish15-Oct-07 18:59
ShuklaGirish15-Oct-07 18:59 
QuestionRegarding Interface Pin
Satish_S14-Oct-07 18:06
Satish_S14-Oct-07 18:06 
AnswerRe: Regarding Interface Pin
Christian Graus14-Oct-07 18:22
protectorChristian Graus14-Oct-07 18:22 
GeneralRe: Regarding Interface Pin
Satish_S14-Oct-07 18:36
Satish_S14-Oct-07 18:36 
QuestionDictionary Collection Authenticate Pin
Edward LaPinski14-Oct-07 15:22
Edward LaPinski14-Oct-07 15:22 
QuestionCreating Compound Properties Pin
Jay Odea14-Oct-07 15:18
Jay Odea14-Oct-07 15:18 
AnswerRe: Creating Compound Properties Pin
The ANZAC15-Oct-07 0:33
The ANZAC15-Oct-07 0:33 
GeneralRe: Creating Compound Properties Pin
Jay Odea15-Oct-07 10:19
Jay Odea15-Oct-07 10:19 

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.