vb

Put a title on collapsed oulining in Visual Basic Express 2010

When I select an area of text in Visual Basic Express 2010 and then go click Edit/Outlining/Hide Selection; the area collapses and is represented by three dots like "...". Is there a way to put my own title, description or label on it for better meaning and communication? ...

Losing most of the page content on second postback

this is very hard to explain and give code based on it. So thank you now if you even try to help I have a form with a update panel. This posts the form and validates it. Returning a errorMessage string of any invalid field such as "Field xyz is a required field, Field abc needs to be a quantity" When I enter incorrect date it posts ba...

Importing Excel Table into a MS SQL Table

I have software for STOCK and SALES that can give me an Excel price list, I wanna write a small web app that will enable users to check prices, I don't have any access to that software's database, so I wanna import that Excel data (one worksheet, 5 columns, almost 10000 rows) into an MS SQL database table, keep in mind that the price lis...

how in .net i handle a click over a balloon tip, displayed through ShowBalloonTip of a TrayIcon

I use ShowBalloonTip method of a TrayIcon class to display a balloon tip. Is there a way to handle a click over this balloon? When i click over the balloon no event seem to be generated, and it only closes the balloon. ...

Visual Studio - automatically add necessary spaces to comments

When I'm writing comments in my code, I often forget to add the initial space after the comment identifier. 'this is a comment when really it is supposed to be ' this is a comment I realize this is quite trivial, and you could simply say "just add the damn space you idiot", but I'd really like to automate this so that I just ...

Can I install a visual basic application on android?

I have been trying to code and run the hello world application but am not able to get the emulator to boot all the way. Plan b is vb. HELP! ...

How to build 64-bit Visual Basic.NET in Visual Studio 2010?

Hopefully this is a simple question and I have just overlooked something somewhere... I am writing VB.NET stuff in VS2010 on Windows 7 64-bit. It seems to build by default for a 32-bit target, how to I tell it to make a 64-bit executable? I went to the project properties -> Compiler -> Advanced, but don't see the option anywhere. Oh, ...

ASP.NET MVC2 lowercase Routes in Visual Basic

I have found 4 or 5 examples of "lowercase routes" in C# however when I use the telerik code converter, I get a bunch of errors. Namely something to do with "extension methods can be defined only in modules." Does anyone have any good resources on how to map routes to lowercase in VB? EDIT: here is an example of some converted code t...

print to remote Comm Port in VB6

i have a software that prints out to a thermal printer connected to the comm port,the code below works well. Open "COM3:" For Output Access Write As #1 Print #1, Space(8) & "FRAKAS LTD" Print #1, Space(7) & "P.O. Box 7678 SHIMONI" ... ... Close #1 Now i want to print on the same comm port but from a different com...

Register Javascript file to aspx page from WebReousrce

How do i add my javascript file as an embeded resource to the page after the ajax javascript already on the page? NB want to do this part dynamically to have code wrapped up in usercontrol. in aspx page: scriptmanager Code: Assembly: WebResource("Functions.js", "text/javascript") Code: onPreRender: ScriptManager.RegisterClientScrip...

MS Access for reading HID TEMPer device

I'm a novice at MS Access and am looking for code to read a TEMPer HID device. Is there a simple method for retreiving the TEMPer data? ...

How to deal with someone's ugly code gently?

I've recently been given the task of finishing an incomplete project for my University. It'll count as credit for one Class so I'll shave a month off of my studies! Here's the thing. The that was left behind is horrible: unorganized and not well thought-out. For example: Protected Sub btnAceptar_Click(ByVal sender As Object, ByVal e As...

XML import into Access using Visual Basic

I have an XML file I need to import into an Access table, however, the XML is formatted for reporting and not for data transfer. Does someone has some code samples of how to loop through this sample document I've pasted below and pull the data out of the elements? I also need to be able to skip some SECTIONS as you can see in the examp...

how do you change focus to a javascript thickbox in Visual basic

How do you change focus to a javascript thickbox in Visual basic script ...

How to check if a particular command line is running in cmd propmt

I desperately need help to create a vb / dos code which will do the following: Check if a command prompt window is running with the following command: mgms A1 (mgms is a custom command) If it is running, exit. If it is not running, start cmd prompt and run the command , exit Thanks a lot for your help! ...

Free iPhone like controls for .NET CF

Hello Everyone, I'm developing a mobile project that I really want to look good. I love the way the iPhone controls look and I'm wondering if anyone knows of any free UI components that can help me make my app look more like the iPhone? Specifically, I'm really wanting a GREAT looking listbox. Any ideas? Thanks! ...

<div> is not working in windows7 while it is working in winXP

hello every one, i have made a vb.net web application.. in this when i am runnning this in winXP it is working fine but in Windows 7 the tag is not working .... so can any one tell me what is the actual problem.... please give me the answer... thanks & regards... ...

How to check for errors when running DataAdapter/DataSet SQL query?

This is how I update a table using DataAdapter and DataSet in VB using SQL Server: sqlStmt = String.Format("INSERT INTO my_table (name, lastname) VALUES ('John', 'Doe')") ds = New DataSet da = New SqlDataAdapter(sqlStmt, My.Settings.ConnectionString) da.Fill(ds) I know that the Fill method does not make sense in case of an INSERT stat...

exec command in java

If i am using following command in java: Process ps = Runtime.getRuntime().exec("some .exe file of VB"); How do I know that the particular .exe has done its job eg: it executed successfully. How do i know that it has some error or just completed half task in java. How should I design my program in java to know or Is there any way to...

GetPrivateProfileString() returns empty string, despite having a default

Private Declare Function GetPrivateProfileString Lib "kernel32" Alias _ "GetPrivateProfileStringA" (ByVal lpApplicationName As String, _ ByVal lpKeyName As String, _ ByVal lpDefault As String, _ ByVal lpReturnedString As String, _ ByVal nSize As Integer, ByVal lpFileName As String) ...