Software Development Network Logo
  • IE Development
  • SharePoint Products
  • Windows Vista
  • Visual C#
  • Visual C++
  • Microsoft ISV
  • .NET Development
  • Visual Basic
  • Game Technologies
  • Audio and Video
  • Smart Devicet
  • Visual Studio
  • SQL Server
  • Windows Forms
  • Visual FoxPro

Software Development Network >> Visual Basic

Visual Basic

New Question

Bolding Nodes in treeview makes problem..
vb6 open chm file
MaskedtextBox Question.
Date and Time Format Problem
save dialogue box using designer in Visual Studio 2005
Field size question
How I can connect the scanner field from V.B. form?
Setting MessageBox returnValue to Yes
Exe Security
how to make an .exe with VB (not a dumb question dont worry)

Top Answerers

Krest
Deco
Dr. Chris
RDH123
fulish1
luis figueredo
Peter Haik
Sergei Almazov
NBtech
the_kid
sitemap
Only Title

Answer Questions

  • smckinney need help saving a print image

    In my program I have a print routine that prints one or more graphics pages using the PrintPage event. This works fine with print preview, page setup and all the normal things. Now I want to add the capability to create and save a bitmap of the print image instead of printing to the printer. Clearly, all the code is in place to create the print image, I just need to save it. It does not make sense to me to make a bitmap from the screen. But how do I create a bitmap from the PrintPage event Ryn, According to your description, I will give you’re a piece of code sample and an article which will help you. The following example prints the file that is specified through the command line to the default printer. ...Show All

  • Amos Soma Program locking up...need help

    I have made a program the compares two similar files byte by byte and outputs the diffreences, it works fine with small files but when i try a file of around 1MB it locks up. I get a ContextSwitchDeadlock was detected error. How can I stop that I'm assuming it's because the for next loop is being run repeatidly very rapidly for a long time. Thanks Sorry if this code comes out wrong not sure how to post it porperly Sub compare( ByRef file1 As String , ByRef file2 As String ) Dim bytes As Byte Dim fs, f As Object Dim a As Byte Dim b As Byte Dim file1size As Integer Dim file2size As Integer Dim pos As Integer Dim refresh As Integer Dim progress As Integer Dim ...Show All

  • the emrah Help Trying to Create Project Get Errror 0x8007007B

    Hi, I just installed Visual Basic 2005 Express Edition.  When I try to create a new Project (File --- New Project --- Windows Application)  I get the following error: The filename, directory name, or volume label syntx is incorrect. (Exception from HRESULT: 0x8007007B) I tried changing the default directories for projects, that didn't work.  I rebooted.  I tried starting a different type of project, all with the same error. PLEASE HELP!!!! charlie THANK YOUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU THANKS, THANKS, THANKS, THANKS, THANKS, THANKS, THANKS, THANKS, THANKS, THANKS, THANKS, THANKS, THANKS, THANKS, THAN ...Show All

  • Steveiwonder Detecting running applications

    Curious if there is a way to detect if a program is running. I want to setup an if statement that does one thing if a certian program is already running or does something else if a different program is running, is there a way to detect running programs Dim p () As Process = Process . GetProcessesByName ( "NameOfProcess" ) Dim AllRunningProcesses () As Process = Process . GetProcesses ...Show All

  • Montana Jones Creating a new project in VB.Net

    Ok, I have a VB6 application that has maybe 20+ programs involved in it. I'm in the process of converting these to VB.Net. My question is this: Should I continue to convert these in there own seperate program and continue shelling out to them or put all the projects into 1 VB.Net project and make it one HUGE application What is the recommended number of projects for one .Net application Thanks in advnace... jb There really is no recommended number of projects for an application.....but what is recommended is that you use a single solution with multiple projects or you can use a single solution with one project referencing all of your other projects....For you scenerio it sounds like I would tak ...Show All

  • jacknsa Doing an Update query using Dataadapter

    Needed an expert to tell me if I am on the right track for doing an update query to change a field in an Access table using OLEDB. Here is the code I think would work. I know how to do in under ADO Classic in VB6 but know things are different now. Dim DaMain As New OleDbDataAdapter Dim DtMain As New DataTable Dim sql As String = "update [" & SourceDatabase * "] Set [" & FieldName & "] = " & RecordID & " where [" & FieldName & "] = " & OldRecordID DaMain.SelectCommand = New OleDbCommand(sql, CountySourceConnection) DaMain.Update(DtMain) Thanks Larry Gatlin Use an OleD ...Show All

  • Butters_Stotch closed form, exe still hangs around

    I created a button to end my application and i call me.close() in it. sometimes the exe goes away, and sometimes not. any suggestions as to why this is and how i can fix it Thanks, Dan ah wait. Me.Close() only closes the form, but still running the application in memory. Application.Exit() would be the way to close your application properly. Try this no threads. no events that are still on going. do i need to dispose of all the events i cant just call me.close Thanks, Dan are you creating any threads that maybe still running in your application do you have any events/code going on in the form_closed/closing events ah! tha ...Show All

  • Thomas82 VB6 --> .Net Question Urgent!

    Ok, Still doing some things with data created by QB7 and then VB6 I have a line in some vb6 code that i have never seen before and have no idea about value1 = fnd(value2 ) + find(value3) I assume it means "find" Can anyone help me with a .net version of this "fnd" thing Cheers Mc I already looked in there. VB6 didn't have a definition for it either. From my testing so far it turns out i probably don't need it anyway. I thought so too, except i could't find any reference to it anywhere. It might be a function that is defined in the vb6 project If you use the vs2005 object explorer yo ...Show All

  • Nightowly err.description??

    Hi everyone, I wonder, error old VB6 object aside, what stuff is intended to do the same in .NEt It's a little bit naive to write err.description and so on... Thanks in advance and best regards, Ok, thanks for that. But it only works within a Try..End Try statement. I mean, if you haven't defined that statement you won't see any error by means System.Exception. Well, suppose that I'm thinking as a vb6 developer, accostumed when I like, see information with err.description, err.number, and so on... The try / catch statement is what is referred to as structured error handling.    This enables you to capture any exception using something like catch ex as exception or more specific exceptions ...Show All

  • snowmt Reading Bytes From SerialPort.. Help...

    Hi everybody there. I developed an application, that uses a serially connected device which responds with bytes. I read these bytes sychronously and I want to print each byte value in an output .txt file. My problem is that when the device stops sending bytes, in the txt file are printed only the first half values of the received data. When I am just counting how many times some bytes appeared I am getting corect results. My settings for the serial port are BaudRate = 9600, Parity =none, Handshake= none, StopBits = 1, DataBits =8 and ReadTimeOut = -1. What seems to be the problem and how can I overcome it Am I missing any properties of the serial port object intialization Is a problem of the serial port settings (ha ...Show All

  • Will George Retrieve User AD GUID

    I am creating several VB.net apps that store and retrieve records to and from SQL 2005. With some of this data I need to track who created/edited the data. I know how to retrieve the users login name, but I need a more unique ID since over time someone else might get the same login name with user accounts created and deleted over time. Is there a simple property simular to system.enviroment.username that will expose the users GUID or do I need to use a control like Directory Searcher you maybe talking about the SID. You can get the SID of an account using WMI add a reference to System.Management and import the namespaces, System.Management and System.Management.Instrumentation. Then try this: Dim s ...Show All

  • Thymen Put common routines in a Class (as Shared) or in a module?

    I've read that you should put common routines in a class (as Shared sub/fnctns) because this is more object-oriented. However, it makes the codes slightly messier because I can refer to a Sub in a module as just MySub ( you canoptionally prefix the module name: MyModule.MySub ) but I have to use the Class name for referring to a shared sub (MyClass.MySharedSub). So, any downsides to putting common routines in code Modules vs. a class If any of this is unclear, see this example: I've got a project with a module and a class: MyProject -MyModule -MyClass -MainModule If I put commonly used subroutines into MyClass as Shared, Public Shared MySharedSub ...blah blah... end ...Show All

  • dacky need help with offsets for LayoutKind.Explicit - unravelling a returned struct from unmanaged into managed

    Mathew Gertz pointed me in the right direction I believe in an earlier post. My P/Invoke is returning valid values for 'name' below at field offset 0 and other values as I can see in QuickWatch. StructA below is passed and returned from the unmanaged C++ dll with valid values. An error is thrown however; System.ExecutionEngineException was unhandled   Message="Exception of type 'System.ExecutionEngineException' was thrown." I would like to try Mathew's idea of using LayoutKind.Explicit rather than LayoutKind.Sequential which I am currently using. If I had <FieldOffset(0)> for the first member of StructA, can anyone help me with how the rest would look I would say Offsets would increase by     1. 4 after each Integ ...Show All

  • TheChad33 Tracking idle keyboard and mouse in VB2005

    I am trying to write a code that detects if the mouse and the keyboard are not being used but I've only been successful for that of the mouse finding the difference in cursor position(windows.forms.cursor.position). For the keyboard I've been largely been unsuccessful. Can someone please help The problem is that it is not an event that will be recieved by any form or control, since the program will run in the background without showing any form. Please do not post the same questions across multiple threads and forums....See your post here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=634162&SiteID=1 parosky wrote: I am trying to write a code that detects if the mouse and the k ...Show All

  • Agent00 Code to Convert numbers to time

    I hope I am in the correct forum it is my first posting I have a database which has three fields for Hours Minutes and seconds these are just numbers and have no relation to time. I need in a report,code that will convert the numbers to time and add the seconds to minutes and add the minutes to hours. Thanks Bartley Spotty The report is created in access and the deatils are just variables in the database. Thanks Bartley How is the code entered into the report Thanks Bartley Bartley, I presume you can get the hours minutes & seconds values out of access So you should be able to build a string using the CDate method. I have no idea how to put it into a report, never used them ...Show All

697071727374757677787980818283848586

©2008 Software Development Network

powered by phorum