all groups > vb.net > january 2006 > threads for friday january 6
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
VB 2003 - Odd Bug in My Program
Posted by Confessor at 1/6/2006 10:55:48 PM
*Confessor nods*
Okay, I've got a hell of a lead on how to read/write to Random Access
files, but there's a small problem that's stopping me short of sussing
out that whole thing.
The "arrowed" line of code (as well as the two lines following, if I skip
the first/second by commenting) po... more >>
Deploying VB .NET application WITH MS Access db
Posted by JOHN MALONEY at 1/6/2006 9:04:31 PM
Hi Everybody,
I have created a three-tiered db application in VB .NET but I can't get =
the deployment to work right. I have added a SetUp project to the =
existing application. I also selected RELEASE as appropriate in the =
Application Folder and on the Users Desktop and Start menu. I didn't... more >>
How to trap if a cancel has occurred on cell validation?
Posted by Bob at 1/6/2006 7:23:30 PM
In a winform with a datagridview using cellvalidating event but also have a
save button that is located on a tablebindignnavigator.
The behaviour I observe is that if the cellvalidating issues a cancel = true
after the save button has been clicked, the update statements in the click
event of ... more >>
DataSet Problems
Posted by gary at 1/6/2006 6:30:52 PM
how can i set the defaultvalue of a datarow with type datatime to current
time ??
... more >>
Help w/ 1st File Access Program
Posted by Confessor at 1/6/2006 5:56:04 PM
[Ellipses added to defeat word wrapping, improve readability]
Public Class Form1
Inherits System.Windows.Forms.Form
Structure PointTemplate
Dim Latitude As Single
Dim Longitude As Single
Dim Elevation As Integer
End Structure
Dim MaxPoint As Integer
... more >>
deployment dotfuscator help ??
Posted by tuna at 1/6/2006 5:18:02 PM
Need help with windows form setup project. I used dotfuscator(free version
with vs 2005) and do not know how to add the output (renamed assembly .exe)
to the setup project. If I remove the original .exe and replace it with the
dotfuscator version it will not work.
--
thanks for any help,
... more >>
Test for integer
Posted by Rob at 1/6/2006 5:07:55 PM
I have a 3 character string that I want to test to see if it is a positive
integer... I could test that each individual character is >=0 and <=9... is
there a better way ?
Is there an IsInteger() function ?
... more >>
A Framework for Datadriven Forms for VB Dot Net
Posted by Mark L. Breen at 1/6/2006 4:49:32 PM
Hello All,
I am currently in the middle of creating a 'Framework' for my latest VB.Net
project.
I have always created such a tool for previous lauguages.
This time I am basing it on n-Tier architecture. I will probably continue
and develop my own version, but have any of you people dev... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Datatable.select
Posted by steve at 1/6/2006 4:32:10 PM
Hi All
I am using Access 2003 and VS 2005 Professional
I retrieve data from an access DB into a datatable then need to select rows
that match a short time value
I can retrieve by time from Access OK
e.g sql = "Select [Details], [mytime], [endtime], [mydate], [member] from
[appointments... more >>
Collection
Posted by Mike at 1/6/2006 4:13:15 PM
Hi guys;
I created a class that inherits from DictionaryBase class.
The thing is that I want to allow the user when using my class to enter
duplicate keys in the collection like;
Dim myCl as new MyDictionary
myCl.Dictionary.Add("Mike", AnObject)
myCl.Dictionary.Add("Mike", AnObject2)
myC... more >>
ISO Date Functions
Posted by Newbie at 1/6/2006 3:42:31 PM
I need the following functions using the standards for Week Numbering IE
Week one is the first week with a thursday in it.
getWeekStartDate( WeekNum as Integer , YearNumber as Integer ) as Date
getWeekEndDate ( WeekNum as Integer , YearNumber as Integer ) as Date
getWeekNumber ( dateToC... more >>
sqlconnection question
Posted by 00eric claption at 1/6/2006 3:38:06 PM
I define the following code in a button click event:
Dim cn As New SqlConnection( _
"Server=(DBTEST\DBTEST;DataBase=pubs" _
& "Integrated Security=SSPI")
***************************************************************************************************
I got this error when I trigger... more >>
sqlcommand question
Posted by 00eric claption at 1/6/2006 3:02:51 PM
In the sourcecode as following,
Dim cmd As New SqlCommand()
With cmd
.CommandText = "Delete from Authors where au_lname = 'Smith'"
.Connection = cn
.CommandType = CommandType.Text
End With
Please tell me what does ".CommandType = CommandType.Text ... more >>
Paging, Filtering and Sorting
Posted by LDD at 1/6/2006 2:33:53 PM
Hi Folks
I'm trying to determine a way to handle paging, filtering and sorting in a
datagrid.
If I choose to filter and sort, I'd like to return a subset. If that
resultset has more records then the number of rows I'd like to display, I'd
like to be able to load pages into the grid.
My que... more >>
Questions about DataGrid
Posted by Steven at 1/6/2006 12:52:24 PM
I have 2 questions about the DataGrid in VB.Net:
1. Can I define more than 1 row of header for using the grid?
2. Can I merge multiple cells into a single cell on the same row?
Thanks!
... more >>
Object Reference Error On Setting sqlCommand connection
Posted by tjonsek NO[at]SPAM phenom-biz.com at 1/6/2006 12:48:36 PM
I've been reading most of the day on how to use datagrids and came up
with code to delete a record. I'm getting an error "Object Reference
not set to an instance of an object" for the line where I set the
command's connection. I really am confused as this same basic code
works throughout my proj... more >>
Use of delegate
Posted by Bob Simoneau at 1/6/2006 12:36:33 PM
I am having a hard time with delegates, but here I must pass a delegate and
a pointer to a structure. I am totally lost. Passing the pointer to
rlistsys_resp_func and RLISTSYS_DETAIL is where I am lost. Any hint would
be highly appreciated.
C Header:
_declspec(dllexport) extern void rlis... more >>
Reading DBF file
Posted by S Shulman at 1/6/2006 12:19:16 PM
Hi
I am trying to read a dbf file using OLEDB but I can't get the entire field.
I suspect that it is because the OLEDB measures the size of the field
assuming it is UNICODE characters and then it reads that number of
characters (another thing that supports that that when Access or SQL Server... more >>
Simple Example of How to Implement SerialPort Class
Posted by Ben Kim at 1/6/2006 12:19:08 PM
Hello all,
Does anyone have an example on how to implement the new SerialPort Class in
VB.NET? I have been able to create the class, send (.WriteLine) to the port
and Read from the port but cannot figure out how to use the Events to tell
my program that data is available in the serial port... more >>
three combos, same dataset
Posted by BrianDH at 1/6/2006 12:18:02 PM
Hi
I have a form with multi-tabs, and on each tab I have a one combo that has
the same values.
I populate all 3 combo with the same one datacall/dataset
My problem is: when I make a value selection change to one, it changes the
other 2 combos on the other 2 tabs.
Is there a way to make... more >>
Add a line break in label.text
Posted by Drew Leon at 1/6/2006 11:28:05 AM
I am learning how to program using Visual Studio 2005 (I chose Visual Basic
to start).
My question is:
I have a sentence which I want to split in two. I would like half the
sentence on the first line, and the other half right under it, on the second
line. How can I accomplish this feat?
... more >>
Byte Array, Datagrid
Posted by Selva Chinnasamy at 1/6/2006 10:49:07 AM
Hi, I am reading Byte Array from MS-Access table, which I wanted to display
in the datagrid. Right now its displayed as "Byte[] array". How can I
display the actual string.
Any help!
Selva
... more >>
populating text boxes...
Posted by Bill Brinkworth at 1/6/2006 10:48:03 AM
in vb.net 2005, i would like to pull up a name from a database (customers) (i
can do this already), then after a name is selected from a combox box, to
populate the form's text boxes with with data about that customer. I.E.: if
john is selected from the combo, i would like to have his address... more >>
Design Mode Property Update Help
Posted by David at 1/6/2006 10:13:16 AM
Im having trouble tracking down a solution for the following. I have
two properties on a custom textbox control I'm creating. If you change
the value in PropertyA it may in code change the value of PropertyB.
That works fine, however in design mode PropertyB's value is not shown
updated until yo... more >>
How do I pass a two-dimensional array to a Function or Sub??
Posted by Familjen Karlsson at 1/6/2006 10:08:34 AM
Hi
I wounder how I can pass a two-dimensional array or more to a Function or
Sub and how shall the Function or Sub look like.
Fia
... more >>
SetWindowsHookEx and VB.NET 2005
Posted by bruno at 1/6/2006 9:16:03 AM
I need some help on how write SetWindowsHookEx in vb.net 2005 to hook kb input.
this is the statement:
hHOOKKb = SetWindowsHookEx( _
WH_KEYBOARD, _
lpfn, _
hMod, _
dwTh... more >>
I was looking for the "Immediate" window like in Classic VB but can't find it
Posted by David A. Beck at 1/6/2006 8:40:50 AM
I was looking for the "Immediate" window like in Classic VB but could not
find it.
... more >>
math wrong?
Posted by JamesB at 1/6/2006 7:49:23 AM
I am trying to use the math.sin(value) function but it seems to give me the
wrong answer!
For instance, math.sin(1) is returning 0.84147098.... whereas windows calc
doing 1 then pressing sin gives me 0.017452406.....
Where am I going wrong? Or can't VB add up?
... more >>
Windows Server 2003
Posted by scorpion53061 at 1/6/2006 7:31:13 AM
Hi
Circumstances dictate that I need to put a program on another computer (that
is a member of the domain) that will connect the server, reboot it, and then
log it in as Administrator.
Does anyone have suggestions or ideas to help me acomplish this?
Thanks in advance,
Kelly
... more >>
Problem with setting focus
Posted by Darrell Wesley at 1/6/2006 7:30:02 AM
I have an application with 2 forms. Form1 is the main form and has 2 text
boxes on it. Form2 is a datagrid showing a list of workorders that are to be
manufactured.
The user can use the mouse to select the work order on form2 and data is
populated on form1 with the partid and work order. It... more >>
XML Comments File Generated
Posted by JimStone at 1/6/2006 7:16:01 AM
The assembly name for my project is company.dept.project.v1.0.dll
I would expect the xml file to be the same - replacing .dll with .xml but
it is also dropping the last .0 and creating company.dept.project.v1.xml
I abbreviated the company name to see if it was a total length problem, but ... more >>
Uninstalling libraries?
Posted by lcifers at 1/6/2006 5:39:50 AM
This has happened to me several times. I write an application and then
test the installation by installing it on my development machine. I
find some bugs so I uninstall the application and start fixing them.
But alas! Some of the referenced libraries (for COM applications such
as Excel) have bro... more >>
wheres the solution stuff gone?
Posted by guy at 1/6/2006 2:49:03 AM
i am working on a different pc to usual with vb2005 pro.
whenever i load up a solution (by using open, or doubleclicking the solution
file the project loads but the solution does not appear in SolutionExplorer
and there are no 'solution' related options on the file menu - not even
greyed out
... more >>
Why won't my DataTable.Update?
Posted by Mike at 1/6/2006 1:02:24 AM
Dear Group,
I have a .NET 2.0 .DLL assembly containing a dataset with three tables. I
reference this from a standalone .NET 2.0 EXE. I am writing a login form
which uses the single Dataset from the .NET 2.0 .DLL. One of the tables
(staff) contains a TableAdapter that fills using a single pa... more >>
|