vb

Connecting to GMail programmatically using C or Visual Basic

I'm trying to make a small program (in either C or Visual Basic) to simply connect to a gmail email account. Then a simple if statement which will be if new mail received, label.text = "new mail" etc. I have spent hours and hours searching and I still can't figure this out without paying for scripts. Any help on this would be gratefull...

Post data from VBscript

Hi! I have a function that need to accept two parameters- user and folder! I call that function from VBscript, and parameters need to be send with post method. This is the Vbscript function code from where I want to post data: Sub loadDocument() Const HOST = "http://192.168.0.144/webservice13/service1.asmx/Lock?User="& PC\User & "f...

[VB] For loop problem

I'm using Visual Basic 2008EE and I have a problem with this loop: If x = CType("new", Primitive) Then TextWindow.Write("How many new users would you like to add? ") k = TextWindow.ReadNumber() For mt = 1 To k NewUserEntry() Next and i get this error: "type of 'mt' is ambigious because ...

DataBinding: 'System.String' does not contain a property with the name 'dbMake'.

Hi , i am a newbie at ASP.net and after using sqldatasource with a listview to insert and show results from an SQL server db i want to try using the LINQ datasource since it seems to be more flexible in codebehind. My problem is this: i droped a listview control to the page and i created the Linq datasource in codebehind with vb. the is...

Upgrading vb6 application to visual studio 2008 with Mysql ODBC driver

I am very "lucky" to get to work with a VB application that was originally written in vb6 with an old version of Mysql ODBC connector. The problem is i can't open the project in my copy of VS2008 because i don't have the needed file MyVbQl.DLL and i can't find it anywhere on the internet and also Mysql ODBC connector versions 3 and 5 do...

Did modularity of basic programming first appear with visual basic?

Modularity of basic programming first appeared with visual basic? True or False? ...

MS Access 2003 - Having trouble with buttons not working in mde file: list box .rowsource

So I have a form that has a list box and several buttons that run sqk statements for the list box. sub on_onClick() ' error checking me.listbox.rowsource = "SELECT tblMain.First, tblMain.last FROM tblMain ORDER BY tblMain.Last;" so this kinda thing is what I use for the list box. it works fine for me in the .mdb, and after i have co...

what is function that i can use instead of Do events (used in vb6.0) in (vb2010)

for a=0 to 1000 lable.text=a next above loop does not update the text status of lable, while loop is running, it updates only at the end of for loop, but i tried with vb6.0 it is possible by using Do events. but i dont know what is the function in vb2010 beta 2. plz help me to solve this problem. ...

Is it possible to declare a dynamic constant in VB .NET?

I'm trying to save a timestamp into a constant at the beginning of a program's execution to be used throughout the program. For example: Const TIME_STAMP = Format(Now(), "hhmm") However, this code generates a compiler error - "Constant expression is required." Does that mean all constants in VB .NET have to contain flat, static, hard-c...

Get job status of fax send via Microsoft Fax Server (SBS2008)

Can someone provide my with a straightforward VBScript to check a fax job's status by referring to a known JobID? Handling a fax job event is not an option for me. Thx. ...

How to Set Width for Columns in LISTBOX ??

I have a Listbox in to which I am binding the data coming from a DataTable I am using VisualStudio 2003, .net 1.1 For Each dr As DataRow In dt.Rows Dim li As New ListItem(dr("BIPAD").ToString().PadRight(25, Microsoft.VisualBasic.ChrW((160))) + dr("TITLENAME").ToString()) lbMagTilteByCategory.Items.Add(li) ...

WPF equivalent to ActiveControl?

In Forms, I can simple use ActiveControl.name to get the name of the active control. However in WPF this doesn't work. What is the WPF command equivalent to Activecontrol.name? I'll take C# or VB, either way. Thank you! ...

Loading a Vb.net control inside a VB 6 form

Hi, I have a user control in vb.net application. and i have a form in vb 6. so in my vb.net applciation to this user control i need to mention the vb 6 form as its parent. Means when i run a vb6 application i should see this user control as a part of that form. Ahy help appreciated. ...

Does EOL == EOS in any other language besides BASIC?

BASIC and its variants Visual Basic and VB.NET are the only programming languages I know of that treat the end of line character as a statement terminator (I'm excluding batch files and command scripts from the domain of programming languages). I'm curious: is there any other language that uses this convention, or does BASIC stand alone...

VB 2008 - change icon of generated exe

I'm generating an executable file with VB 2008 using codeDom Compiler is there a way to change the icon before the compiler creates the exe file ? thanks ...

Career Question - Going from Java to Classic ASP / VB

Right now, I work on a small team at a large company doing Java / J2EE web applications. My original skillset wasn't in this area, but I'm starting to get the hang of things and get some more responsibilities on the team. However, our team is in a bit of limbo, and we're unsure of the future direction of our flagship application (we're J...

XPath and XElement

I have an XElement and an XPath expression that selects a node from it. It works fine in the original program that I wrote it in but doesnt work if I paste it to another program. I've checked the references and import statements. What am i doing wrong? I think the problem might be that the original program had the code within the class ...

Moving Rectangle in VB?

It is my understanding and experience that VB.NET does not perform well with moving graphics from point A to point B in a form. How do I draw a rectangle or a line and move it from point A to point B? Is there a reliable way to do this without seeing a black rectangle around the moving object on every frame? I've tried this with bitmap...

Passing setting value back to form that had called the form

This is what I have.. Dim frmSettings As New frmOptions frmSettings.ShowDialog(Me) frmSettings is a settings form that you can choose the color for background of form1(Me). But I cannot access the form1 properties to change the backcolor. ...

Need help translating C# to VB.

Hello, I am looking at this blog, and I am trying to translate the snippet to VB. I'm having difficulties with this line: NotifyCollectionChangedEventHandler handlers = this.CollectionChanged; NOTE: CollectionChanged is an event of this ('this' is an override of ObservableCollection<T>). ...