Don't know why that is not working.
Try:
dbSource = My.Application.Info.DirectoryPath + "\AddressBook.mdb"
Here is image of my code and the output, both ways should produce similar results, one includes the trailing "\" and other one doesn't. But the are both giving me the directory of my EXE.
If you have the connection string hard coded you will have to tell the setup application to put the database file where your application can find it (ie. C:\). You can specify when creating a setup where you would like a file copied to on the destination system.
I think it would be best if you...
...DataTable and then you can get the rows.
var conn = new SqlConnection("connectionString");
var da = new SqlDataAdapter(new SqlCommand("select * from blah", conn));
var dt = new DataTable();
da.Fill(dt);
var rowCount = dt.Rows.Count;
Wrote this quick out of my head without compiling...
Here are the specs my friend (and client) gave me:
The web modifications are done via the Stores Back-Office computer not from Thin Client
That is why the other company has a 15 minute polling / refresh timer.
Their program checked for updates once every 15 minutes - too slow.
Is there any...
The monitors are going to be displayed from a thin client (I need to get specs on this still). The thin client is going to have a web browser of some type on it and be networked through computer in back room.
What I'm really trying to do is basically sending an AJAX POST to change the DOM of...
I have a client that wants to be able to update a website in real time. Here is the scenario:
1.) There is a menu (restaurant) that has a menu displayed on monitors.
2.) They want to be able to update the menu real during business hours without the whole page refreshing.
3.) They want either...
I finally found out what I was missing. I added "top:0px;" to the top_header_bar class and now it keeps the bar up top.
I am going to add a background image to the header. This was just an example and a test for me. It definitely won't look close to the same once things are done :)
I read the website you sent me to and understand now about not taking up space. How can I get a DIV to take up space on the top without moving and position all the other elements under it? I've been trying tons of things and nothing I can figure out seems to work.
Hi,
I've worked with LAMP web setups for years. But now I have to setup a ASP.NET server. Everything is working fine except one thing.
mydomain.com --> Get directed to correct site.
www.mydomain.com --> Goes to the "default" IIS page.
How can I get them both to point to the same...
Something like this should work.
If My.Computer.Network.Ping("10.5.7.116") Then
Console.WriteLine("Machine On")
Else
Console.WriteLine("Machine Off")
End If
A friend sent me this. I don't have an answer yet but figured I'd post it here:
There 351 tickets in bag.
Each ticket has a letter of A through Z.
There is a different quantity of each ticket as shown ...
A = 1
B = 2
C = 3
...
X = 24
Y = 25
Z = 26
If a person picks out 1 ticket at a time...
You could create a function that you can use for each image. Something like this.
Private Function GetImage(ByVal RandomNum As Int32) As Image
Dim returnImage As Image
Select Case RandomNum
Case 1
returnImage = My.Resources.dice1...
You could declare it in a class like:
Public Class Class1
Public Structure CheckerBelongTo
Public UserChecker As Boolean
Public PcChecker As Boolean
End Structure
End Class
And call it like this:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As...
You want something like this:
Dim Pics(6) As Image
Dim str As String
For i = 0 To Pics.Length - 1
Pics(i) = CType(My.Resources.ResourceManager.GetObject("Image" + i.ToString), System.Drawing.Image)
Next()
The above will load Image0, Image1, etc...
Thanks for you help. For years I've been in desktop application development and the company I started working for now uses a lot of web based apps internally. So I haven't had much experience with Javascript but I'm learning. :)
Randy
I am making a webpage for a user to scan a barcode into an input box (keyboard wedge reader). As soon as I get a good formatted job number I want to set focus to a hidden field which will start processing of data. But I can not get the regular expression to match, have tried all kinds of...
I'd like to get time calculations between two times into hours as a decimal amount.
I currently have:
A1 = 9:00
B1 = 11:30
C1 = =B1-A1
All fields are formatted as time.
Like this C1 will display "2:30"
I would like to get C1 to display 2.5 (how many hours)
Is there a way to do this? I...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.