-
- Writing to two files.
by Raybritton
- 5 Replies
- Last post
by Raybritton
- Hi, my program should write a string to a file, then a number to another file, but instead it doesn't write anything to the first file, and puts the string in the second file. The files don't exist before the program is run.
My .Computer.FileSystem.WriteAllText( "appdata.dat" , text, False )
My .Computer.FileSystem.WriteAllText( "apps.dat" , apps, False )
The varib
-
- Write/Read Structure to a file?
by LandLord323
- 14 Replies
- Last post
by Amr Ouf
- How do I write/read a structure to a file
-
- Reminder
by kidwidahair
- 2 Replies
- Last post
by SJWhiteley
- Hey
I am making a reminder program in Visual Basic and I was wondering if there was a way to automatically run my program when the computer is turned on, and have an icon in the notification taskbar that users can click.
Thanks
-
- Microsoft Agent Request Events Problems
by GrandpaB
- 3 Replies
- Last post
by GrandpaB
- Happy New Year VB Experts,
I am attempting to use the Microsoft Agent in an application; you know, the Clipit and Merlin characters. According to the documentation that I have found there is a Request event which is fired by a number of the Agent methods. The agent _RequestComplete event is used to keep the Agent animations and the rest of the program in sync. This is how I attempted to program
-
- Algorith to reduce material waste
by all2neat
- 3 Replies
- Last post
by all2neat
- I'm trying to create an application where the user can enter in a length of a pipes they have (they will all be the same), and then enter in the length of cuts they need. So for instance say they have pipes which are 20 foot long, and they need to cut off lenghts that are 15, 14, 13, 8, and 3 feet long each. I need the algorithm to figure out the most efficient way to use the pipe we have while cr
-
- how to send a email in vb
by yhong
- 1 Replies
- Last post
by ahmedilyas
- Hi,
I am doing a application regarding to sending email in VB.net. I am using Net.Mail. Now I can send email already. But I would like to insert some special information, such as a pictures, or html or the contents of files, into MailMessage.body. Actually, I don't like attachment file. Anybody knows how to do that Thank you!
yang
-
- How do set the URL property in webbrower to a local file?
by Moonbiter
- 3 Replies
- Last post
by cafeasp
- I have a VB project, that I want to use HTML help in. I have a menu bar with a help button on it, that when clicked, it opens up a new form with a webbrowser object in it. However, I don't know how to set the URL property to display the help.htm file that's in the programs directory. I cannot hard code this value since it might be installed in different area's on peoples computers, but I do know w
-
- Migrating VB6 to VB.NET
by ManishGoyal23
- 1 Replies
- Last post
by JohnHart_MSFT
- Hi
I am trying to migrate a usercontrol of VB6 to VB.net. Am not able to find equivalent for ReadProperty and WriteProperty Events of User Control.
Following is the code snippet
Private Sub UserControl_ReadProperties(PropBag As PropertyBag) hsbcolour(0).Value = PropBag.ReadProperty("Red", 0) hsbcolour(1).Value = PropBag.ReadProperty("Green", 0) hsbcol
-
- VB excel integration problem
by Malay Thakershi
- 1 Replies
- Last post
by spotty
- Hi everyone,
I have a computer with Office 2003 Professional fully installed. I use a VB 6.0 program to invoke excel, process some data and then open it to show the report to the user. However, there is a problem on this specific computer. Excel process shows in the task manager but it doesn't show as a regular excel in the task bar. The file it saves is also some sort of dump file of 1 KB
-
- Menu Item Text
by Triannha
- 2 Replies
- Last post
by Triannha
- Is there a way to change the color of the text of a menu item without drawing it myself in the code
Thanks!
-
- how to get code of url
by narasiman_jayachandran_2b5374
- 4 Replies
- Last post
by narasiman
- hi,
i want to view the source of the website by giving its url and it should by pass even if we proxy server
-
- SQL Insert command ignore the date value
by OmarMallat
- 2 Replies
- Last post
by Manu_Raj
- please let me know what is the problem here...
Private Sub Add(cn as Data.SqlClient.SqlConnection)
Dim cm As Data.SqlClient.SqlCommand = New Data.SqlClient.SqlCommand( "Insert Into FatwaRequest (aTitle, aDate) Values ('Test', " & Now.Date & " )" , cn)
cn.Open()
cm.ExecuteNonQuery()
cn.Close()
End Sub
the problem is that the date w
-
- Batch processing
by Troy Lundin
- 6 Replies
- Last post
by Troy Lundin
- I want to add batch processing to a program I made but do not know the best way. I have three main option groups. Each option group has 4 options. Something like this: A1 A2 A3 A4 B1 B2 B3 B4 C1 C2 C3 C4 Each of the options are checkboxes to determine whether to process that option or not. Say I have A1, A2, B2 checked. I want to run my cmdline program with the following option parameters: 1. A1 2
-
- FileSystemRights returns bitstream and not string rights of folder.
by Knodi
- 4 Replies
- Last post
by Chris Dunaway
- I using FileSystemRights trying to get a ACL rights of the users but FileSystemRights returns values like 268435456 it does return FullControl and Read in string format but when special rights are checked it returns them in bit stream format. How do break them apart in to individual rights Can someone help.
-
- Long Numbers and LOG arithmetic math or maths.
by Science_1
- 14 Replies
- Last post
by Dan2178
- Hi,
I would like to write applications, such as calculating pi, generating Mandelbrot Sets, factoring large numbers or prime hunts, which use extremely long numbers. I'm not talking about the measly 32 decimal places of the Decimal variable. I'm talking about two or three thousand decimal places.
I've written a couple long number calculators which are, quite frankly, crude, cumbersome and sl
-
- Simplify Form Close
by Cesar Francisco
- 14 Replies
- Last post
by Cesar Francisco
- Code Snippet
Private Sub Electronics_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Electronics.Click
If HElectronicsForm.Visible Then
Exit Sub
Else : HElectronicsForm.Show()
End If
HClothingForm.Close()
HClothingSeeAll.Close()
HDentalForm.Close()
HDentalSeeAll.Close()
HEducationForm.Close()
HEducationSeeAll.Close()
HEnter
-
- Dynamic button creation and MySQL/MSSQL
by pcs_radiohead
- 3 Replies
- Last post
by Spidermans_DarkSide - MSP, VSI
- Hi, I am writing a small POS sytem as a side project that uses (so far) MySQL, MSSQL, Access, and OpenOffice.org Base. I keep all my users (10 max) inside of the database. For the login screen, I would like to dynamically create a login button for each user in the database (the POS system will be for touch screens as well as mouse/keyboard). I am sure it will be a foreach loop, that isn't the diff
-
- Mixing languages
by Werner Kraemer
- 2 Replies
- Last post
by ScubaSteve20001
- Recently I have received some C-code from my friends at U of Zuerich that I would like to leave alone since it would be lots of work to translate to VB 2005.
Is there a way to include these analytical C subroutines in my VB project or would I have to build a separate ¡®dll¡¯ project
Obviously I am not a programmer, just coding in VB 2005 to develop graphical depictions of p
-
- Label caption disapearing
by Caria
- 8 Replies
- Last post
by Caria
- Hi,
I have this application that acts as a monitor for signals fed from another device. Information from the source device is fed to my application every second, and my application processes these data and displays some values on the screen. Also, these values are temporarily stored in a buffer and are recorded in a file every 5 minutes. The operations are interrupt driven, interrupts issue
-
- How to Clone a Generics Class
by NevilleB
- 14 Replies
- Last post
by Chris Dunaway
- Hello,
I've been searching the web for hours and trying everything I can think of to make this work, but I am stuck. As far as I understand, in VB.NET you can't make a byVal copy of a class object because they're fundamentally reference-type. The work-around, as I understand is to use structures, which are value-types (which I can't do because I'm using inheritance, which structures appare
-
- Database Connection
by chris_rulez001
- 5 Replies
- Last post
by dbKemp
- Hi, i need help trying to connect to a microsoft access database file for a login.
here is my current code:
Code Block
Public Class LoginForm1
Private Sub OK_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click
Dim username As String
Dim password As String
Dim r1 As String
Dim r2 As Stri
-
- SqlDataAdapter constructed with SqlCommand
by golddog
- 1 Replies
- Last post
by golddog
- I've inherited some vb 1.1 code, and came across a number of places like this (my red for emphasis, obviously).
The documentation for the SqlDataAdapter constructor indicates that the SqlCommand is passed ByVal, not ByRef. This being the case, I'm not sure what the code in red does for us; it seems like it's too late to be setting parameters in the SqlCommand for the eventual call to SqlAda
-
- Command line not shell
by amendez
- 14 Replies
- Last post
by amendez
- Hi,
How can I execute a command like executing it from the command prompt through VB. I try "Shell" but it doesn't work.
-
- contextmenustrip not shown
by Abhijit Bhosale
- 4 Replies
- Last post
by Abhijit Bhosale
- Hi,
In my application i am using old AxMSChart control. I am using VB.NET in Visual Studio 2005. In the application I added a ContextMenuStrip menu and added one help item in it. I assigned the contextmenustrip properties of many control with this newly added contextmenustrip instance. On right click of many controls like label etc the context menu is shown. But incase of AxMsChart instance the
-
- Draw query designer question for VB.NET
by estesdo
- 1 Replies
- Last post
by Bruno Yu - MSFT
- Hello,
I am trying to create a query designer using visual basic 2005 and am running into some problems drawing connections. I consider myself to be an intermediate user with visual basic, however have very limited use/knowledge of the system.drawing namespace. I am trying to create something very similar to the MS - Access query designer and am having trouble drawing the connector lines be