| |
thread by: dougancil |
last post Jan 19 '11 by: dougancil
This may not be the place to ask this, if not, you can move this post to the SQL forum but I have an application that I'm building which pulls dates from a database. The start value is stored as payPeriodStart date and I add 7 days to get the end date. What I need to know is, is it possible to store those values and pass them to a Stored...
|
thread by: Lamont J |
last post Jan 19 '11 by: Lamont J
'Reading file Byte-by-Byte
Dim Rs As Byte = bReader.ReadByte()
'Converting Byte To Integer
Dim n As Integer = CType(Rs, Integer)
'Function Input Integer (0-255)
Function a(byval n as integer) as integer
'Function Output Integer (0-255)
|
thread by: karan desai |
last post Jan 19 '11 by: karan desai
I wanted to filter the data, make changes and the save back to the database.
The SQL data adapter and SQL dataset are clashing with TableDataAdapter i.e., db1TableAdpater and DatabseDataSet i.e GreetingDataset.
I wanted to make them working for the above purpose.
I am also open for other methods of executing the code.
Please help!
...
|
thread by: dougancil |
last post Jan 18 '11 by: David Gluth
I have an application that I'm writing and I'm trying to declare two variables from my sql server, store the values and pass them to my forms.
Here is my code:
Imports System.Data.SqlClient
Public Class Main
Dim instForm2 As New Exceptions
Dim oDr As SqlDataReader
Dim payPeriodStartDate = oDr.GetDateTime(1)
Dim...
|
thread by: Paul Johnson |
last post Jan 18 '11 by: Rabbit
Hi,
I have a bit of code which is causing me a few problems to port from C# to VB.NET
The C# looks like this
byte serverbuff = new Byte;
int count = 0;
while (true)
|
thread by: Laura Rowley |
last post Jan 18 '11 by: Laura Rowley
I'm hoping that someone out there can give me some guidance here, and I hope that I am explaining this properly.
Here is my scenerio:
I have a BaseData object that serves as an abstract object for all my business objects. Notice there is an overridable method on the object.
Public Class BaseData
|
thread by: jerry jensen |
last post Jan 18 '11 by: jerry jensen
I have used setup to deploy my program but don't know how to enter key code which I have. The instruction says to expand MergeModuleProperties and enter valid key code.I don't know where to look. Need help.
|
| |
thread by: jerry jensen |
last post Jan 18 '11 by: David Gluth
I am using VS.net 2003. When I deploy my program and try to run it the program works except that when I try to print a report I get a message that I need a license.
|
thread by: GR M |
last post Jan 18 '11 by: David Gluth
Hi..
I want to write the connection string of my application in app.config file. I dont know how to write it or how to dynamically change it from my application source code either. My App.config file shows like..
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.diagnostics>
<sources>
<!-- This section...
|
thread by: GR M |
last post Jan 18 '11 by: GR M
Hi,
During file copy, I'm giving the absolute file name. But the compiler says file not found always. Is it a problem in my system or any error in my program.
Public Sub backupDB()
Try
Dim FileToCopy As String
Dim NewCopy As String
|
thread by: GR M |
last post Jan 18 '11 by: Joseph Martell
Hi..
Do consider my thought. I want to write my connection string in such away that it fits in the environment of database back up and restore. i.e. Most of time we do use hardcoded connection string. But if the user restores the backed up database to some other drive due to some reason or changes the restored database file name to his will, our...
|
thread by: tim chin |
last post Jan 18 '11 by: Joseph Martell
I am making a game. In the game there is a picture box and three buttons. A picture is supposed to pop up and the player is supposed to click the button that best suits the picture. if it is answered correctly another random picture is supposed generate. How can I do this
|
thread by: lenniekuah |
last post Jan 17 '11 by: lenniekuah
Hullo Good Friends,
I am using VBNET2008 and Excel 2003.
I need your help. Please help me.
I am trying to develop coding to specific set the Excel 2003 Row BackGround Color to Yellow and it's not working as I have not done it before logically.
Here is the coding that is not working:
xlWrkSheet.Rows(intRow).BackGroud.Color =...
|
thread by: Albert bara |
last post Jan 15 '11 by: Albert bara
in this place happen error.
con.ol_cn.Open()
con.ol_cm.CommandText = "SELECT * FROM "
con.ol_cm.ExecuteNonQuery()
<error
The Microsoft Jet database engine could not find the object 'Sheet1$'. Make sure the object exists and that you spell its name and the path name correctly./>
|
thread by: tom atterton |
last post Jan 14 '11 by: tom atterton
<input id="btna" type=button value="a" disabled/>
this is the line of code i have atm to disable button but i want to enable button once i click my start button.
so i have this code
Sub btnstart_OnClick()
btna.enabled=true
but this doesnt seem to work does anyone know where im going wrong ?
|
| |
thread by: dougancil |
last post Jan 14 '11 by: dougancil
I have the following code:
Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles startpayrollButton.Click
Dim ssql As String = "select MAX(payrolldate) AS , " & _
"dateadd(dd, ((datediff(dd, '17530107', MAX(payrolldate))/7)*7)+7, '17530107') AS " & _
"from...
|
thread by: Alan Adolphe |
last post Jan 14 '11 by: Alan Adolphe
Hi, I have converted C# code to vb.net using the online converter tools. One error messages I can't seem to figure out. Any ideas or help is appreciated.
Public Sub New()
InitializeComponent()
Me.Flip1Half.Completed += New EventHandler(AddressOf Flip1Half_Completed)
End Sub
|
thread by: C Diemert |
last post Jan 13 '11 by: David Gluth
I have recorded a macro that will use a web query to obtain the latest price of the microsoft (msft) stock. I want to use this macro to get data on other stocks. My thought is to use an input box that asks me to type in the ticker name. The macro will then use this input to obtain the latest price of whatever ticker i type in. I can't figure...
|
thread by: momotaro |
last post Jan 11 '11 by: Rabbit
Hi,
Am trying to connect and insert a record into my database using vb.net this is my code:
cs = New SqlConnection("Data Source=AYACHMOHAMED;Initial Catalog=Employe;Integrated Security=True")
cs.Open()
sqlcom = New SqlCommand("INSERT INTO EMPLOYE VALUES 3, 'AYACH', 'PDG'", cs)
Try
ra =...
|
thread by: kayclink |
last post Jan 10 '11 by: kayclink
Hi
I have an update command that works fine, but when I update the record let's say twice or thrice, some data gets losts in the database in certain fields.
E.g
Dim str as string = "update booking set name= '"&me.fname.text &'",lname='"&me.lname.text &'"where bookingid='"&me.booingid.text
&'
"'"
Dim command as new sqlcomand (str, con)...
|
thread by: harshil |
last post Jan 10 '11 by: harshil
Hi,
Actually I am facing problem in deleting selected checkbox row..I mean for username & password.When I click on its check box and press delete than the entry for that username & password in Ms Access should get deleted...!!!
|
thread by: Rob S |
last post Jan 9 '11 by: Rob S
Hi,
Just curious if anyone knows of some good resources for GPU programming in .Net. Specifically VB.Net. Please respond if you do. Thanks.
Rob S
|
thread by: Arul Jothi |
last post Jan 8 '11 by: yarbrough40
Sir/Madam...,
I'll create Database in Visual Basic using MsAccess.
But I want to know that how can retrieve from Access which selected fields are needed...
For example., I've 10 fields in student mark list,
ie, Rollno, Name, ..., Grade...
From those 10 fields, I want to show only 5 Fields in another VB form...
|
| |
thread by: Rob S |
last post Jan 6 '11 by: Rob S
HI,
I have looked pretty extensively on the web and have NOT found any good tutorials or samples on 3d graphics using VB.Net. I did download the XNA game studio but I cant seem to get any of the samples to work. Maybe i'm just overlooking something blatantly obvious. If someone could shed some light on this topic it would be highly appreciated....
|
thread by: jerry jensen |
last post Jan 6 '11 by: jerry jensen
I am using Visual Studio.net 2003. Ihave written a progra using a data base and crystal reports. All works well on my computer. When I deploy the program and run it on one of my other computer the program works except when I try to print a report. I get a crystal reports error stating that I need a license.
I did not think that a license is...
|