blah blah blah is here! blah blah » Close

0
votes
1 answers

Late Binding in C#

jal
0

I'm trying to convert the following VB.Net code to C# Dim DB As DAO.Database = New DAO.DBEngine().OpenDatabase("C:\Northwind.mdb") Dim td As DAO.TableDef = DB.TableDefs("Customers") For Each idx As ...

0
votes
1 answers

quick question

jal
0

I'm don't have Visual Studio on this machine but I think i located a bug in my code. This code is supposed to convert a string into a number: private double VAL(string strNum) { double doubleNo = 0; dou ...

0
votes
1 answers

System.Diagnostics.Process.Start

jal
0

I want to launch a java executable (let's call it MyApp.jar) from .Net using System.Diagnostics.Process.Start. What's the syntax in VB.Net? The command line syntax is this ( because i tried it a few days ago and it worked). I seem to ...

0
votes
1 answers

How to tell if a streamwriter is still open.

jal
0

How to tell if a streamwriter is still open. I tried in VB.Net if not sw is nothing then sw.WriteLine(... and an exception was thrown because the sw was closed. "Cannot write to a closed TextWriter"

0
votes
1 answers

Can't load a string into a string variable?

jal
0

I am using the MODI DLL (Microsoft Office Document Imaging) because it has an OCR engine. That's working fine, but I'm having trouble capturing the resulting text into my own string variable (weird, huh). Modi has the result stored in the ...

0
votes
1 answers

Late binding Microsoft Office Document Imaging

jal
0

No error msg occurs with this simple VBscript Dim doc set doc = CreateObject("MODI.Document") msgbox "Task completed." But I get an error translating this to VB.Net: Dim doc As Object = CreateObject("MODI.Docum ...

0
votes
1 answers

Weird textbox behavior

jal
0

I have a textbox that acts fine until I set it to Multiline in the Designer. The scenario is that the user can press Enter to tab to the next control. I use this command to tab to the next control. nextControl.Focus(); And this works f ...

0
votes
1 answers

Generic collection

jal
0

I have an object database (Access DB) like this: private class objDB { public string pathToDB; public bool extendsAnotherDB; //etc.... } And I want a generic collection. Normally I would just do: List<objDB> DBs = new List< ...

0
votes
1 answers

Maybe this guy has a point?

jal
0

I've been assuming that any COM DLL had to be registered on the user's machine. Then I read this thread (see the last post on this page) http://stackoverflow.com/questions/394388/in-net-is-there-a-need-to-register-the-dll So I ran a littl ...

0
votes
1 answers

Question about Com interop

jal
0

I don't have authorization from the IT dept to register any COM DLLs. In fact I'm not even going to run an MSI installer package. I'm just going to copy and paste my app files (i.e from the bin folder) onto the user's machine. That way ...

0
votes
1 answers

Visual Studio form designer relocating my controls

jal
0

After I hit f5 to do a test run of my app, and then close the app and return to the form designer, I find that some of my controls have been relocated (this is VB.Net VS 2005). For example: (1) I have a custom control (Bob Powell's Zoom ...

0
votes
1 answers

Radiobuttons

jal
0

I have two radiobuttons on a panel. I like the built-in panel feature that, without any code, there is only one rb checked at all times. Or so I thought. This seems to hold true only when the user is doing the checkmarking. When i unchec ...

0
votes
1 answers

DataGridView - highlighted row is below the form/screeen.

jal
0

In many cases when I run a search on my dgv, the desired row is below the screen. When I scroll down I can see that row highlighted in blue because my code selects that row. But I don't want the user to have to scroll down to find the hig ...

0
votes
1 answers

Syntax for date literals

jal
0

How to write a date literal in C#. I tried pound signs but didn't seem to work #12/25/2009#

0
votes
1 answers

How the Immediate window displays strings

jal
0

When I'm stepping through code in debug mode, I like to output my SQL strings to the Immediate window. The problem is I don't like how it appears in the Immediate window - it retains the formatting codes (i.e. the escape sequences) instead ...

Feedback