Answer Questions
BobBobbinson Sending an Email containing a Hyperlink
Can anyone help me with the following: I would like to automate sending an Email (via Outlook) containing a hyperlink to a predefined file on our server. I used the code below to send the Mail, which works fine, but I cannot get it to include the hyperlink in the body: Dim EMail As Object Dim Link As String Link = "G:\...." 'Filepath Set EMail = CreateObject("Outlook.Application") 'Assign Outlook application to ...Show All
jcesare VB2005: SQL DATASOURCE
Im trying to access table data in each database/catalog we have a table called table1, of the exact same structure but storing different info. in the wizard can i pass in a parameter to let me choose between db1 and db2, which both hold table1. i am using the datasource window in visual studio 2005 my database is connecting through Attuntiy ...Show All
Cogz What's the limitation of VB Express?
Still the old 32K limit on controls, etc VB 2005 any better Are you saying that VS 2005 will help me write SQL into VB2005 Feel free to correct me at anytime.... I'm doing everything in VB Express and SQL express and when it works, create a SQL database with the evaluation version before SQL expires. Hopefully, the created database itself will not expire.... will it Why I have a 2GB dual co ...Show All
Sean Finn Sub Main
Hello How can I startup my project from "Sub Main" But I don't want to disable application framework because If I disabled it, I can't make single instance application. How can I startup my project from "Sub Main" and use "single instance application" Thanks Use a mutext to check if another instance is running. There is an example on the vb-tips website ...Show All
RandyHayes Beta 2 Expire?
Can anyone tell me when the VS beta 2 will stop working Got VS Prof on order, but don't expect delivering until next year. Hate to have my projects to die before I get it! Thanks So if 30 days after release would mean.>> What would you best guess be Amazon says should get my VS Prof around 7 Jan 2006. Guess I could uninstall the beta2 stuff, and install the Express. Thanks for t ...Show All
arfried Reading Files in a Folder
I have 'combobox1 inside my 'groupbox1' I also have a couple of documents in a folder on my desktop called 'docs' What code do i put in so the combobox lists all the docs that are in the 'docs' folder i put this in the combobox1 code and it said 'path' could not be declared' what does that mean no... Did you import the System.IO namespace Imports System.IO Dim desktopDir As String = Environment.GetFolderPath(Env ...Show All
Hummer MCI - device selection
Hi, I am trying out the Media Control Interface with VB.net but met with some problems.... Lets say if i have 2 Sound Cards in my computer how do i choose to open my wave file to SoundCard 2 from MCI It is said that the driverguid can be retreived from System.ini or registry but i am not sure which is the id and which id stands for which device. Another question is...my sound card is a multi channel sound card (i.e 5.1) are there any ways wit ...Show All
dansingirl17 textbox selectall not working
Neither of the two code pieces are working for me... Private Sub TextBox1_GotFocus( ByVal sender As Object , ByVal e As System.EventArgs) Handles TextBox1.GotFocus TextBox1.SelectionStart = 0 TextBox1.SelectionLength = Len(TextBox1.Text) End Sub -= OR =- Private Sub TextBox1_GotFocus( ByVal sender As Object , ByVal e As System.EventArgs) Handles TextBox1.GotFocus TextBox1.SelectAll() ...Show All
dybarra making a .txt
When i click button_1, what code can i put in so it makes a .txt file thats called whatever is in textbox1 could someone help Or alternatively: My .Computer.FileSystem.WriteAllText( "C:\test.txt" , textbox1.text, False ) Try something like this Private Sub Button1_Click( ByVal sender As System. Object , ByVal e As System.EventArgs) Handles Button1.Click ...Show All
Louis Davidson - SQL Server MVP Using my own usercontrol simple question i hope
Hi all I've just written my own simple Graph control to teach myself a bit about graphics. I compiled it for release and saved it. I then went to another project and added the new control to my toolbox. All fine so far! But i notice that i can single step - debug and edit the code for my control!!! which is nice i suppose but if i do edit it. What happens to it does just this local copy get altered or is the original being altered a ...Show All
Meffistas Text from a notepad
when i click button1 i want it to read the text from a certain notepad and then put all the text from the notepad into a textbox, how thanks thats very helpful of you, but i wish to use a filepath instead of my.computer.clipboard. Can u please tell me how i would do that i have no idea what ur talkin about, but i have managed to solve it on my own with one problem, we'll get to that in a minute Form1_load: Dim App_Path ...Show All
Jharris65 C# or VB ?
other than familiar syntax is there any reason to use VB instead of C# is the difference only syntax the c# IDE is much much MUCH more robust. There is absolutely no argument here! Also, take a look at the c# 3.0 roadmap. Many neat features coming. Yeah they might be implemented in VB.Net 9, but there is no guarantee. As far as optional parameters, arguments can be made for and against them. If you like typing ...Show All
Mr.D.J.Webber An unhandled exception of type 'System.ArithmeticException' occurred in system.drawing.dll
I am quite new to VB.Net. Problem is whenever i tried to run my program i get an error message "An unhandled exception of type 'System.ArithmeticException' occurred in system.drawing.dll Additional information: Overflow or underflow in the arithmetic operation." Even if i have a single form with one button i'll get this message while running it. I have reinstalled XP pro, reinstalled Visual studio 2003, updated my vga driver but nothing see ...Show All
Ed Andersen Problem with Me.close
Hi, I'm just moving from VB6 and have a big problem with the Me.close() function. Here is my example : The default start form is a splash screen ; name it Splash.vb which as the same function than the Microsoft Word one, for example. After a few seconds, I want to close it and load the main form, just name it Choices.vb . The problem is, when I put the Me.close() function in the Splash.vb form, it just closes the program. Of course, I have put t ...Show All
Kannan Pothi Setting form time out to exit if idle for xx minutes?
Hi, Does someone have a code snippet or reference page that illustrates the use of a form timer or variable to be set that allows one to set a limit on an open form to close after a period of time if no activity has been done. I want to close/exit a form if the user has not entered or clicked a field for, lets say 15 minutes. If there has not been any activity then close the form and return back to the main form. Than ...Show All
