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

Software Development Network >> Visual Basic

Visual Basic

New Question

How I can access and change DWORD values of registry Through VB.NET
Question on store procedure
Colour Combo Box
signer's certificate is not valid
Problem(s) in interop when using Modal Dialog
Using MSChart COM Component in VB.net
Panning more quickly
COM subprocessing model for Framework 2.0
Need help exporting VB.Net variables/data to VBA macro
Put common routines in a Class (as Shared) or in a module?

Top Answerers

Ash_
ashk1860
unahb
LDeLeon
o s l e
Mats Bjur
Steve_j_maas
Marcel leclerc
wms103006
Joshizzle
sitemap
Only Title

Answer Questions

  • Ljhopkins Should be a better way to handle multiple pages of graphics.

    Hi, I need to view and print multiple pages of graphics, and am stuck on the multiple part. Where am I at now. 1. Drawings are saved as .bmp files 2. Files are retrieved and added to a List(Of Bitmap) 3. Loop through list and add each image to a specific place on a form 4. After 6 drawings, add page headings 5. Show the form 6. Print the form to a pdf file I'm not real happy capturing the screen as a bitmap also, in order to print it, however it does work for page 1. I really have no idea of how to approach page 2 , get a clean graphics surface, add the next 6 bitmaps from the List, and repeat steps 5 and 6 as many times as necessary, although I can handle the logic of the selection and placement of the bitmaps, ...Show All

  • anisk Print Coordinates Problem

    I am a VB.Net programmer and I have dealt with numerous errors and coding issues but this problem has got me officialy stumped! I am currently writing a program that involves some printing functions. As you know, the default margins for a 8.5 x 11 page is 100 pixels from the edge of the paper. When you click Print Preview the text looks exactly like it should but when you click Print the entire text is offset to the right by at least 50 pixels. Keep in mind that the print and print preview is generated by the same code. While writing this program, I encountered this problem in the early stages and offset the margins to the left by about 50 pixels. It made the print preview look ugly but the paper looked satisfactory. I am now having to fac ...Show All

  • GinaK csc.exe error with XmlSerializer command

    Hi, I hope someone can help me with this: I've got a program "out there" and most users have not had any problems but I now received a report from one of my users that the program throws an error right after this line. Dim mySerializer As XmlSerializer = New XmlSerializer( GetType myStructure)) The exception message is: Cannot execute a program. The command being executed was "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\csc.exe" /noconfig /fullpaths @"C:\Documents and Settings\user\Local Settings\Temp\0paghihp.cmdline". The user is logged on as administrator on a Win XP Pro machine. I checked all over the net and could not find any relevant clues so far. Any ideas anyone Thanks ...Show All

  • sroughley Folder and file

    Hi i hope this is the right Forum. I use this code in a vb projekt now i want to try making a .net appliction in studio maybe someone can help: Dim side As Date Set fso = CreateObject("Scripting.FileSystemObject") Set folderobj = fso.GetFolder(" \\server\vaerksted$\ ") For Each folder In folderobj.subfolders If InStr(folder, "_") Then side = Mid(folder, (InStrRev(folder, "_") + 1)) If side + 7 < Date Then folder.Delete force:=True End If End If Regards alvin Hi on the server i have a folder call "Verksted$" First i connect to the folder : 'Set fso = CreateObject("Scripting.FileSystemObject") ' Set folderobj = fso. ...Show All

  • ShadowRayz Converting an Integer to String

    Im trying to convert some integers to a string (which works fine) For example My Funciton MKI is working ok as far as i can tell Dim v1 as String = MKI(116) V1 then equals "t I wish it to equal "t" Can anyone offer any suggestions please Kinda, a propietary date format to save a few bytes. You can use Chr() to go from a 16-bit integer to a string and Asc() to go back. However, the generated string would not be the same, it would just have one character in it. This is only a problem if you need to read data that the old program generated... Use Space(1) to avoid having to use SubString(). This code could fail when you least expect it. Some bad, rainy day ...Show All

  • omar_rapid Call of Duty for a beginner

    Hello, I have a problem here, i don't know how to write a code to launch programs from a tool strip item that was gotten when the form was loaded by a mouse click, the code is: Private Sub form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load For Each filesfound As String In My.Computer.FileSystem.GetFiles("C:\", FileIO.SearchOption.SearchTopLevelOnly, "*.*") Dim fileico As Drawing.Icon = System.Drawing.Icon.ExtractAssociatedIcon(filesfound) Dim fileimage As Bitmap = fileico.ToBitmap() Dim filename As String = IO.Path.GetFileNameWithoutExtension(filesfound) Dim item As ToolStripItem = filestsmi.DropDownItems.Add(filename, fileimage) Next end su ...Show All

  • srjing2 Control.Scale Method (SizeF)

    Need help using SizeF scale method I'm building a form with a picturebox called PBox4 and I want its height and widht to double as the mouse cursor hovers over. Private Sub PBox4_MouseHover(ByVal sender As System.Object, ByVal e As _ System.EventArgs) Handles PBox4.MouseHover Dim instance As Control = Me.PBox4 Dim factor As SizeF = instance.Scale(factor) End Sub Any help would be appreciated thanks Alex It is not using the scale method but it is a solution: Private Sub Button1_Click ( ByVal sender As System .Object, ByVal e As System . EventArgs ) Handles Button1 . Click Me . PictureBox1 . SizeMode = PictureBoxSizeMode . StretchImage Me . PictureBox1 . Height = Me . PictureBo ...Show All

  • liujj_xujj Volume muting

    How would I mute the volume upon an event, then un-mute it upon another. I have the Private sub arg arg arg all laid out, all I want, is a simple piece of code to mute/unmute the volume. I've copy-pasted that into the appropriate place in the code, and fixed the error it threw at me. What do I type I just want a certain piece of code in two places. One to mute the volume, the other, to un-mute it. Take a look at the code provided here . With it as part of your project, you should need it's SetSound method to mute/unmute the audio. ...Show All

  • Scherild MDI Creation

    I know this should be a simple thing but I can't find information on it at all. I am creating a program that needs a dynamic MDI. The user will be able to begin at the main page(frmMain) and advance through 7-8 pages with the last updating a database. They can also scrap the project midway through and restart, or jump to the end and load a finished project from the database. I have tried to find examples on how to do this, but have had no luck. I also want to be able to advance through the forms using the menustrip and buttons on the form, but I beleive the code behind both will be similar. Can anyone point me to an example of this. ps. This is my first major attempt at a program outside of .php ...Show All

  • MMCompton Crystal Report And Similar Tool For Printing Document

    May i know is there any tutorial on Crystal Report, i want to retrieve some data from database, format it and print it out. Apart from Crystal Report, what other tools is suitable for this Thank you. I have already solved the previous problem. I am really a beginner to crystal report and have no idea on its working principle, is there anyone can provide some information or web tutorial which can guide me from the ground I need to know the basic like how to bound the data to the report and display it properly, how to format the report and do the query to display particular data in the report. Thank you. Thanks for your code. I want to do something like this, when the user ...Show All

  • JIM.H. Saving MS Word documents in a database

    I have an SQL Server database containing a table of MS Word documents. My application must allow the user to open these documents in MS Word, make changes, and save the modified document back to the database. My current approach is to retrieve the object from the database, save it to a file and then open it in Word. Once the user has finished making their changes I will then save the file back to the database. I have the basic mechanics working, but the user currently needs to manually initiate saving the file back to the database (by clicking a button). I would like to automate this process so that whenever the user changes the file (saves it in Word), it is automatically saved to the database. Any ideas on how to ...Show All

  • vdv_phuong Simple Question

    My project is done. All the code works and I want to make it a .exe So I went to file, make project .exe, but for some reason, it is greyed out. Can someone tell me how I can fix this Just so you know I am new to programming. Well, I just realized that this forum, along with all the others....said not for vb6. Great. So where do i put this then because I am using vb6. As for the other 2, I have no idea what you are talking about. which version of VB.NET are you using VBExpress Visual studio 2003/2005 when you make a .exe you build the solution: Build > build solution or CTRL + SHIFT + B. The project is put in the bin\debug folder of your project folder in my documents are you trying to make/distribut ...Show All

  • Toni Greco R

    I'm sure this is possible to do. I am working with a UTF8 encoded file. When the file is opened in VB and loaded into a text box, the line breaks are converted to squares. Each line break is represented by two sqaures. I have been using code to replace bad chars, but the problem with it is that it replaces a single instance of the square with a LB. So I am getting too many LB's. How can I replace this with a single line break TIA So, then if you open the file in notepad, the characters exist also Thanks for the tip! I tried the following and the code itself works, but still produces the chars. Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArg ...Show All

  • vbjunkie how can we find the spacific text in the text file?

    how can we find the spacific text in the text file for eg ABC12345 ABC48587 ABC75891 acctually i want to get the 5 numbers after abc thanks as suggested, read the line then do a substring and index of: 'create an array: Dim theArrayList as new ArrayList() 'While loop from the above code sample given Dim currentLine as String = theCurrentLine.ReadLine() Dim theString as String = currentLine.SubString(currentLine.IndexOf("ABC"), 5) theArrayList.Add(theString) 'end while this will: read the line(s) in a loop, modified code from the above get the string you are after, with a length of 5 - so ABC12345 should be returned as 12345 stores it into the array you ma ...Show All

  • KevinBurton Delete Prefetch Folder Contents

    I want to be able to delete the windows prefetch folder. However i don't know what's the right word to use so that the system finds automatically the right folder since not everybody installs windows on drive C:. i think it's %systemroot% but i'm getting an error. So please, enlighten me. Here's my code. Dim file As String For Each file In System.IO.Directory.GetFiles("%systemroot%\prefetch") System.IO.File.Delete(file) Next file that the directory didn't exist. Thanks a lot! try this: Dim file As String Dim SysFolder As String = Environment.SystemDirectory & "\prefetch" For Each file In System.IO.Directory.GetFiles(S ...Show All

787980818283848586878889909192939495

©2008 Software Development Network

powered by phorum