Got it working! :-> Treacherous_1
Treacherous_1
Posts
-
Auto fill combo box from the dataset in a Web Application -
problem in vb.netYou might want to download the notes from the following websites, these are the notes my instructor teaches VB.NET with, they are really great notes. You will find what you're looking for in the unbound database notes. http://www.mstc.edu/instructor/VGaul/Courses/Beginning Visual Basic/Begin VB.htm http://www.mstc.edu/instructor/VGaul/Courses/Int Visual Basic/IntVB.htm Treacherous_1
-
Printing Forms in VB.NET 2003Ok, nevermind I got it. Treacherous_1
-
Auto fill combo box from the dataset in a Web ApplicationI need to know how to autofill a combo box from a dataset in a VB.NET 2003 web application, any hints? :confused: Thanks in advance. Treacherous_1
-
Printing a form/pageAlso you're going to have to let us know what version of VB you are using, for 6.0 printing the form is really simple (Me.printform), but in VB NET 2003 it's much more complicated. I had to do a project for a class that printed the form in 2003, utter chaos. I'll post the source later. Treacherous_1 Here's what I came up with, it enables print preview, page setup, and printing in .NET 2003: _________________________ Printing Form _____________________________ Imports System.Drawing.Printing Public Class frmMain Inherits System.Windows.Forms.Form ' storage for form image Dim formImage As Bitmap ' create API prototype Private Declare Function BitBlt Lib "gdi32.dll" Alias "BitBlt" (ByVal hdcDest As IntPtr, _ ByVal nXDest As Integer, ByVal nYDest As Integer, ByVal nWidth As Integer, ByVal nHeight As Integer, _ ByVal hdcSrc As IntPtr, ByVal nXSrc As Integer, ByVal nYSrc As Integer, ByVal dwRop As System.Int32) As Long #Region " Windows Form Designer generated code " Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Me.StartPosition = FormStartPosition.WindowsDefaultLocation End Sub Private Sub mnuFilePrint_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuFilePrint.Click GetFormImage() 'Takes the screen shot to be printed If pdbMgrReport.ShowDialog = DialogResult.OK Then docMgrReport.Print() End If End Sub Private Sub mnuFilePreview_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuFilePreview.Click GetFormImage() 'Takes the screen shot to be previewed Try ppdMgrReport.ShowDialog() Catch es As Exception MessageBox.Show(es.Message) End Try End Sub Private Sub mnuFileSetup_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuFileSetup.Click With psdMgrReport docMgrReport.DefaultPageSettings.Margins.Left = 0.5 docMgrReport.DefaultPageSettings.Margins.Top = 0.5 docMgrReport.DefaultPageSettings.Landscape = True .PageSettings = docMgrReport.DefaultPageSettings End With Try If psdMgrReport.ShowDialog = DialogResult.OK Then docMgrReport.DefaultPageSettings = psdMgrReport.PageSettings End If Catch es As Exception MessageBox.Show(es.Message)
-
Fill Dropdown List box From DatasetDoes anyone know how to fill Dropdown list boxes from the dataset on form load? I really need some pointers, and in advance I appreciate the help. :doh: Treacherous_1
-
Printing Forms in VB.NET 2003I would really appreciate it if anyone could help me in figuring out how to print the entire form using VB.NET 2K3. I've done some research online and my program now prints, but only from a RichTextBox Control. What I need it to do is to send all the data from the form to the printer, how do I do this? :confused: Thanks in advance. Treacherous_1