Answer Questions
JeanL Outlook - Send mail without a message warning
Hello, I need to create a function which send a mail. But when I execute my sub, I have a message warning. How can I send mail without this message I need to send a mail to a user of my network, I use Exchange server. thanks ! Ben ' Create an Outlook application. Dim oApp As Outlook._Application oApp = New Outlook.Application() ' Create a new MailItem. Dim oMsg As Outlook._MailItem oMsg = oApp.CreateItem(Outlook.OlItemType.olMailItem) oMsg.Subject = "Send Attachment Using OOM in Visual Basic .NET" oMsg.Body = "Hello World" & vbCr & vbCr ' TODO: Replace with a valid e-mail address. oMsg.To = "truc@muche.com" ' Add an attachment ' TODO: ...Show All
satya999 VB.NET & EMAIL
I am trying to figure out, for a friend, how to write a VB program that will launch multiple IE's and when those IE's launch fill in the appropriate login name and password for that site. Is there any way that this can be done I'm new to the Document Object aspect of VB. How would I go about setting this up couldn't he set up a forwarding option from each one of the sites to forward to a central address possibly use an anonymous email forwarding service if he is worried about links between the addys How does this seem shady My friend has like 5 email addresses and he wants to automate it and be able to carry the .exe on his flash dri ...Show All
snowmt Nested structure declaration
hi i am trying to convert a udf type of vb 6 to vb .net. VB structure definition Type a myCode As String * 10 myDesc As String * 80 mytype(1 To 26) As c end type type c myname as string * 10 end type equivlent in .net for a simple structure which does not have another structure as an element worked fine Public Structure a <VBFixedString(10), System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices.UnmanagedType.ByValArray, SizeConst:=10)> Dim mycode As Char () <VBFixedString(80), System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices.UnmanagedType.ByValArray, SizeConst:=80)> Dim mydesc As Char () End Structure ...Show All
progames25 Attach and Open another .exe
How do you attach another .exe program to your Form1 and open it from a MenuStripItem Yep use the process.start ( " www.google.com ") what will happen is that it knows the association of www with you default browser and will start up the browser at the appropriate URL. Rather neat solution.... That way you dont have to know about you specific application either. You can try it with something like a .txt file Create a text file with notepad called c:\test.txt and then call process start with the pathname. Process.start ("C:\test.txt") It will probably open notepad with this file as notepad is the associated application with the .txt file extension. Alex ...Show All
Learning VB php editor
hi there i am making a php editor and i wanna ask about 2 things : 1-what is the regex -not like in the msdn ,coz i got notthing from it,- and can i use something else 2-how can i make the *.php files open with my editor only thanks man but how can i register my app with the windows shell thanks man i am 5 yr programming and i think i am still a beginner :s and i am not familiar with this regex -i got some code for it but i donno i just wanted to make my own way with my own style- at least modify it not just retype it or copy and paste coz i want it to be mine project :) coz i got many good ideas for it can i have your email so we can talk o ...Show All
R Raghu A field allows null
hello. a question please. I have a datetime field in a table that allows null. What must I send to this field if I want to save a null value if the value of the field is already Null then you just omit updateing that field from your query.....if you are wanting to NULL an existing value then you can use System.DbNull.Value Thanks. I used the second option but I got this message: Value od type 'system.dbnull cannot be converted to date. ...Show All
IceAngel89 Question about VB2005 connect to SQL2000(2)
I want use a variable to grab a string from a text box, then pass the variable into data base to check if any record is matched and then display result in a data grid. How can i actually do that do i need to create a specific adapter and dataset for that well you can, dataAdapters are really used for when you are wanting to fill a set of records into a dataset or update records in the given dataset to the database. So to me, looks like you want to show the records that match the variable correct if so, you could use a dataset/dataadapter but if its just 1 record you are after then it may well be inefficient. There are many examples on the forums on how to use a SqlDataAdapter if you are wanting to go ...Show All
Kirill Osenkov - MSFT Login Form VB 2005
Hi , i can’t make a loging form, checking a database users, i already have the users db, but how can i made th validation, a full step explanation it'll be great, please help me i already read a lot of books about vs2005, but i still with this trouble i'm usin Microsoft SQL server, thanks a lot!!! well you dont need to fill anything into the dataset, it would be inefficient just to get 1 record or to see if the user exists. The code supplied earlier does just that, checks to see if the user exists in the database and if so then do whatever you like (such as show the other form) or just do nothing and tell them they have not been authenticated. another way to learn is to debug and step through the code, see ...Show All
StephenWalker need handler for array of buttons
The following code snippet says it all, but in short I dynamically create a bunch of buttons. When I click a button, I want the handler to know which one was pressed. In fact, I'd like to be able to pass any argument into the handler. Private Sub SetUpRowsOfButtons () For Row As Short = 0 To 2 For Column As Short = 0 To 5 Dim NewButton As New System . Windows . Forms . Button () NewButton . Width = 20 NewButton . Height = 20 NewButton . Top = 20 + 40 * Row NewButton . Left = 20 + 40 * Column Me . Controls . Add ( NewButton ) AddHandler NewButton . Click , AddressOf ButtonResponder ' wish I could've passd in Row and Column---or ' even some ot ...Show All
wsalomon How to add rows to datagridview?
Hi all I am attemping to write a routine that when the user presses a button it will read from a datagrid that they have already populated and add rows to other datagridviews. They may then modify what was added or add more rows. then when they have what they want in all the datagridviews they will save. Entering stuff by hand works for all dgv's. All dgv's are bound to binding sources. there is a main invoice table the other tables are relationed child tables. Below is the code I have tried so far. The code wich adds to the binding source and the populates that added recorded does work but it only displays the programmatically added data after I save to the database. I need it to display in the dgv before they save. The ...Show All
dvidal graphic and paint methods
I am new to vb.net and trying to draw lines that can go un, down, left, right, and Diagonal 4 ways. I got the lines to go up, down, right left, but can't seem to get them to go diagonal in any directions. Any help please. thanks Sorry, that's too much to look through every line... At a glance however, it appears that you're not actually drawing lines but rather manipulating individual pixels; so again it would be a matter of changing both the x and y of the next pixel to move diagonally. Where are you getting stuck at thanks for the reply. I figured the solution out, and got the project going. How are you drawing your lines And what are you drawing them on If you use System.Drawing.Graphics.DrawLine() ...Show All
AbErCrOmBiE12 In a 2005 winForm I can't get Sever Explorer
In a 2005 winForm I can't get Sever Explorer I can't get Server Explorer to show by either going to view and clicking on Server Explorer or the keyboard short-cut. I had a pre-release version of VS 2005 and had a problem Installing the release version of VS 2005. Which I fixed. But what is up with Server Explorer not showing Try resetting the ide by starting visual studio from a command prompt with the reset option. If that doesnt work you might have to reinstall visual studio 2005 devenv.exe /reset If you haven't aleady, please try running the uninstall tool mentioned here: http://msdn.microsoft.com/vstudio/express/support/uninstall/ This will clean up many of the pre-release com ...Show All
wiscon Html Table to datatable?
Does anyone know how to fill a datatable from a html table scheme Example: <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4> <TR BGCOLOR=#ADAEAD> <TD COLSPAN=3><B>Data</B></TD> </TR> <TR BGCOLOR=#FFFFFF> <TD>Name</TD> <TD>Favorite Color</TD> <TD>Language</TD> </TR> <TR BGCOLOR=#FFFFFF> <TD>Steve</TD> <TD>Red</TD> <TD>Spanish</TD> </TR> </TABLE> To a datatable containing the elements: Data Name Favorite Color Language Steve Red &nb ...Show All
subhanet Copying Listbox items
I have two list boxes. Listbox1 and Listbox2 Listbox1 is Bound to a datasource and Listbox2 isn't. What I am trying to do is read each item in Listbox1 and Add it to Listbox2. I have tried multiple variances of the following code but can't seem to access the text for the item in the listbox1 items. Can anyone help please Dim intCounter As Integer Dim intTotal As Integer intTotal = ListBox1.Items.Count For intCounter = 0 To intTotal - 1 ListBox2.Items.Add(ListBox1.Items(intCounter).ToString) Next intCounter thanks tattoo That works ...Show All
asiaindian Open file
Hiiiii, How i can open file (word,excel etc) using vb.net (web base).. But not using response.redirect(namefile)... Please help me.. Thanks Jebat If your asking how to open word/excel files from a web page - then using process.start wont work as it will open the file on the server and not on the client machine which is what I assume you are trying to achieve. Your probably better asking this question on the ASP.NET forums Forums.asp.net Hiiii, In my program i using Vb.Net, not Asp/Asp.net.... so i can send my problem in this forum.... I hope you understand , Thanks... Jebat... Yes I kn ...Show All
