vb

Calling external gps app from VB.NET in CF 3.5 and returning back to VB.NET app

Hi All, I'm writing an app in VB.NET that allows the user to call Garmin Mobile XT to get a route. I've got a form that stays open behind Garmin and upon quitting Garmin, allows the user to go back. Sometimes, however, this form is automatically hidden by the WM OS. Any ideas how I can either get the form to stay put - or can I put a...

How do you call a method from a variable in ASP Classic?

For example, how can I run me.test below? myvar = 'test' me.myvar ASP looks for the method "myvar" and doesn't find it. In PHP I could simply say $me->$myvar but ASP's syntax doesn't distinguish between variables and methods. Suggestions? Closely related to this, is there a method_exists function in ASP Classic? Thanks in advance! ...

Updating Assembly information with MSBuild failing

All i am trying to automatically update the assembly information of a project using AssemblyInfo task, before build however the target appears to do nothing (no failure/error) just no update/creation Below is the build.proj file I am using (obviously some contents altered) Can anyone help? <?xml version="1.0" encoding="utf-8"?> <Pr...

Multiple Answer Matrix in ASP.NET

I'm involved on a project to make a survey system. We've been hammering out the logic for a few question types, and I could use a second opinion on what is the best way to proceed. We work on a ASP.NET 2.0 website using VB(VS2005) with an Oracle database. In our oracle server, we plan for some tables to organize our data. There's a t...

Select Distinct from a list of IEnumerable<T> in .NET 2.0

I am trying to filter an IEnumerable object of the duplicate values, so I would like to get the distinct values from it, for example, lets say that it holds days: monday tuesday wednesday wednesday I would like to filter it and return: monday tuesday wednesday What is the most efficient way to do this in .net 2.0? ...

How can you force VB6 to use the DLLs and OCXs from the app directory?

I want to put my dependent files in the app directory. I seem to remember that you can force VB6 to use the files in the local directory only. Any hints? ...

Can/should I convert VS2008 "Web site" to "Project?"

I created a Web site in VS2008. I'm wondering if I should have created it as a project instead and, if so, can it be converted? Any advantages/disadvantages to either approach? TIA ...

ASP DropDown causing ViewState to appear in Address bar

If you visit this page in Internet explorer, and choose a value from the "Current Media Releases" dropdown on the top right, eventually IE will try to redirect you to an ugly url containing this string: __EVENTTARGET=selArchives&__EVENTARGUMENT=&__LASTFOCUS=&__VIEWSTATE= The page should only be updating the selArchives Query string val...

Why is this code stopping? VB ASP.NET

Hey I am coding using Visual Studio 2003. My program worked fine until I introduced a dll I made using CreateObject. Code: Set docs2 = server.CreateObject("DocGetter.Form1") docs2.GetDocument oXMLDom,numID It appears to be getting stuck at this code. I've already used regasm to register the dll. What else could be wrong? ...

Lookups in VB.NET Bogging Down LDAP Server

Hello All, My DBAs have informed me that one of my applications is really bogging down one of our LDAP servers. I've looked at the code several times, but I can't see any way to limit the amount of times I have to hit LDAP. So now I've decided to look at the way that I am actually obtaining the data to see if there is a better way. I...

What are some beginner Visual Basic programming books?

Hi guys, I have recently found a job in my university which requires me to know Visual Basic (VB). Can you please advise me of some good books on this topic? I have not tried to learn VB yet, but I know the basics of Assembler, Pascal and C++ (a little bit). It is highly likely that I'll be involved in database programming. Thanks for...

I need Help Making my VB 2008 Express Web Browser

Every time i click on a link it opens in internet explorer but i want it to open in another window of my web browser Details : i have made a tabbed web browser using a tab control because every where else i have looked is just for a normal web browser please help. ...

VB 6.0 system tray application doesn't close gracefully when Windows shuts down

Hi I'm using the following code within a VB 6.0 application to allow give the application a system tray icon: Option Explicit 'user defined type required by Shell_NotifyIcon API call Public Type NOTIFYICONDATA cbSize As Long hwnd As Long uId As Long uFlags As Long uCallBackMessage As Long hIcon As Long szTip As St...

Loop through PivotItems: runtime error 91

I have a dataset in a worksheet that can be different every time. I am creating a pivottable from that data, but it is possible that one of the PivotItems is not there. For example: .PivotItems("Administratie").Visible = False If that specific value is not in my dataset, the VBA script fails, saying that it can't define the item in th...

How to import mdb to sql server.

I have a vb application. Now I have developed that same vb application in Asp.net. In vb I had used MSAccess database. In asp.net I am using Sql server. Now I want to Move or copy the MSaccess database data into Sql server. ...

Passing Object reference in Visual Basic (VBA)

How to pass Form TextBox reference to method? Following code is issuing exception. Private Sub DoSmthWithTextBox(ByRef txtBox as TextBox) txtBox.BackColor = vbRed End Sub Private Sub TextBox1_Change() DoSmthWithTextBox Me.TextBox1 End Sub Problem appears when'DoSmthWithTextBox Me.TextBox1' passes string from TextBox1 insead ...

Set folder permissions with C# - convert CreateObject("Wscript.Shell") from vb to C#

Hello. I'd like to know how to convert this vb script to C# Dim strFolder As String Dim objShell As Object strFolder = "C:\zz" Set objShell = CreateObject("Wscript.Shell") objShell.Run "%COMSPEC% /c Echo Y| cacls " & _ strFolder & _ " /t /c /g everyone:F ", 2, True What I'm trying to do is set per...

Microsoft Patch 958369 MS08-070 broke my VB6 App (Type Mismatch - dynamically created control)

We upgraded our machines with a microsoft patch listed above and are now having issues with some winsock controls. While moving on to the new component library there were two issues that we faced: We are creating a Winsock control dynamically using Form.Controls.Add(...). With the new dlls it gave us a run time error 731 stating that...

How do you round a Double down to the nearest integer in VB .NET?

How do you round a Double down to the nearest integer in VB .NET? ...

How To Divide Gotten Data from A Datatable And Bind Some Of Them To Headertemplate of Datalist

May be the subject is complicated, so I'll try to explain: I get some data from database which some of them has TypeId=1 and some has TypeId=2. I want to take data which TypeId=1 to header template and TypeId=2 to itemtemplate in the Datalist control. How can I do it? ...