User Profile

Collapse

Profile Sidebar

Collapse
wheeto
wheeto
Last Activity: Sep 4 '07, 10:21 AM
Joined: Feb 7 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • error message Printers' is not a member of 'printing.My.MyComputer

    hi,

    when i use my.computer.pri nters all i get is an error, what am i doing wrong it doen't see .printer on intellisense,

    this is the code i am trying it with,

    Code:
    Public Class Form1
        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            With My.Computer.Printers.DefaultPrinter
                .HorizontalAlignment = HorizontalAlignment.Center
    ...
    See more | Go to post

  • wheeto
    replied to Save as dialog
    Sorry my mistake, the line code doesn't create an error, The program shows the error when running.
    The error box shows when you type a file name that doesn't exist on c drive, but if the file already exists on the c drive it will save as normal.

    I have also published the program and installed it to see if the error message still shows when installed and running, and it does still show.
    I must have missed a line of code...
    See more | Go to post

    Leave a comment:


  • wheeto
    replied to Save as dialog
    The problem is when i build & test the program, i can create a report in my program then try to save the text box with the save as commard, the error then appears.It is as if i have left out a piece of code that tells the system to create a new file if its not already present....
    See more | Go to post

    Leave a comment:


  • wheeto
    replied to Save as dialog
    Thanks for the help,
    I have changed the code and i still get up the message box

    "File C:\testfile does not exist"
    "Verify that the correct file name was given"

    If i select a file the exists, it will over write the file, not create a new one.

    I have tried changing the code around, but with no luck,
    I have searched the internet for answers, but have drawn a blank....
    See more | Go to post

    Leave a comment:


  • wheeto
    started a topic Save as dialog

    Save as dialog

    Hi

    I'm new to vb 2005 and am having problems with save as dialog code, when i go to save a file it returns "file not found" but when it looks at a file on the pc then it will save,
    can someone help & tell me whats missing?? i have listed the code below

    Code:
    Dim iResult As DialogResult
            iResult = SaveFileDialog1.ShowDialog()
            SaveFileDialog1.Title = "Specify a
    ...
    See more | Go to post
    Last edited by willakawill; Feb 7 '07, 02:21 PM. Reason: please use code tags when posting code
No activity results to display
Show More
Working...