Distributed Programming
I have a program that uses disconnected recordsets on the client side : 
 
Here is the problem I have : 
 
Client gets a dataset , say a customer table 
 
Creates a new customer 
 
Deletes this customer 
 
Updates changes to server. 
 
The server code detects that a record has been deleted via rowstate, takes 
 
the new ID of the deleted record ( generated by the client side table via 
 
setting autoincrement to true and setting the seed to the last ID + 1). 
 
Now this causes 2 problems : 
 
1. ...
Read Entire Conversation

window.location.href in vb.net?
Hi, 
 
What's the code in VB.net for "window.location.href" in javascript ? 
 
Thanks 
 
André
Read Entire Conversation

Obscure error
Hi on executing my code I get the following : 
 
An unhandled exception of type 'System.NullReferenceException' occurred in 
 
Unknown Module. 
 
Additional information: Object reference not set to an instance of an 
 
object. 
 
But when I step through thr code on load and dont get this error , any ideas 
 
waht could be casuing this ?
Read Entire Conversation

Newbie Needs Help !
I am writing a user control and have encountered a problem. I need to create 
 
a property that will provide the user with several property value choices 
 
that will appear in a drop-down list similar to that for the form 
 
"BackgroundColor" property. My property will be a listing of strings. How do 
 
I code this in the Set and Get areas for the creation of this property ? I 
 
appreciate any help that can be provided. 
 
John 
 
-- 
 
jffrenchjr@earthlink.net
Read Entire Conversation

Find out the MAC-Adress of a server
Hi everybody 
 
My application is running on a share on the server. 
 
On Starting the application I would like to check the mac-adress of the 
 
server, but the only information i have is the share path. 
 
How can I get the mac-adress of the server which is sharing the drive? 
 
Thanks alot 
 
Nijazi Halimaji
Read Entire Conversation

Code working in one sub routine, but not another
I am using the following code in 2 separate sub routines: 
 
Dim xlApp As New myExcel.Application 
 
Dim xlBook As New myExcel.Workbook 
 
Dim xlSheet As New myExcel.Worksheet 
 
xlBook = xlApp.Workbooks.Add 
 
xlSheet = xlBook.Worksheets.Add 
 
In one subroutine it works fine, in the second subroutine, i get a 
 
"Additional information: COM object with CLSID 
 
{00020819-0000-0000-C000-000000000046} is either not valid or not 
 
registered." error. 
 
Any ideas?
Read Entire Conversation

can we create exe file from asp.net.
Hi, 
 
Is it possible to develope an asp.net application which runs in 
 
service.if yes, then could you please send me the codes 
 
Thankx
Read Entire Conversation

[Regular Expression] match a word with interpunctuation
[Regular Expression] match word with interpunctuation 
 
Hallo, 
 
I need to build a regular expression 
 
able to match a specified word, 
 
preceded and followed by few chars (mainly interpunctuation) 
 
Below the code. 
 
------------------------ 
 
Explanation: 
 
let's assume the word is 
 
baby 
 
these are the 27 cases I need to match: 
 
baby         baby is simply standing alone (obviously) 
 
and also these cases: 
 
baby. 
 
baby, 
 
baby; 
 
baby: 
 
baby! 
 
baby? 
 
baby       baby ...
Read Entire Conversation

Rewriting the Textbox
Hey all, 
 
Ok, here's another of my fun questions.  I want to rewrite the textbox 
 
control in VB.NET.  I need to implement superscript and subscript 
 
within the box.  Don't ask why, but I can't use RTF as my superscript 
 
and subscript's are always numbers and are defined as specific 
 
characters.  ie. char(192) = superscript 1 
 
Does anyone know how to inherit and change the onPaint method of the 
 
textbox?  I have created my own controlt o try and do this but 
 
apparently the onPaint ...
Read Entire Conversation

How to have .net code call pager or phone
I need to code in a web service call a pager and/or a phone and leave a 
 
automated message as an alert when certain events occur. I don't even know 
 
where to start with this or if its possible.  I also need to have an answer 
 
on this ASAP to respond to a client.  Can anyone advise on how to approach 
 
this? 
 
Thanks. 
 
-- 
 
moondaddy@noemail.noemail
Read Entire Conversation

asp.net - detecting when form is closed
How do I detect if my webform was closed and destroyed. 
 
Also I have hard time with displaying a new form in a separate window. 
 
Can someone help me. Thanks 
 
Ufit
Read Entire Conversation

DatagridView comboboxcolumn - assign cell value
I need help to set selected value of combobox column in DGV. 
 
I went this far then got stuck on what to do next:. 
 
How do I set "selected Value" of comboboxpayCode to value of column PayCode 
 
? That is earningCode = payCode. 
 
I can't find .selectedValue in DatagridView ComboboxColumn . 
 
Thanks 
 
Bill 
 
------------------------- 
 
col = .Columns.Add("pCode", "Code") 
 
..Columns(col).Width = 60 
 
..Columns(col).DataPropertyName = "payCode"' Dim comboboxPaycode As New 
 
DataGridView ...
Read Entire Conversation

Trouble with displaying shared variables onto main report in the right position
Hi, 
 
Could someone please help me with this: 
 
I've got a list of employees grouped by Department and then Possition. 
 
The names of the employees are listed in the Details section. I've 
 
created a subreport also in the Details section which does the running 
 
total of each employees pay in a given period. 
 
I've created a shared variables to assign these running totals in the 
 
subreport, which I put in the subreport footer. 
 
Shared NumberVar baseWages; 
 
baseWages :={#baseWages}; 
 ...
Read Entire Conversation

Could use a hint..Applying a new skin to old vb.net app
Hi, 
 
We have an existing vb.net application.  It works fine, but the design 
 
isn't good.  We hired a designer who built a great design and sent us all 
 
the button graphics, etc. 
 
It is more difficult than I thought to apply the new design because the 
 
app is currently built as 1 form with over a dozen panels that are 
 
switched back and forth.  Panels are in the way like crazy!! 
 
Should I convert all the panels to independent forms?  Or leave them be? 
 
Is there anyway to hide them ...
Read Entire Conversation

Dates at Midnight
I'm having a problem with VB 2005.  I'm trying to compare 2 dates as 
 
follows: 
 
If AddTo <= AddFrom Then 
 
'Error Code 
 
Else 
 
'Happy Code 
 
End If 
 
AddFrom should be earlier than AddTo. 
 
This works great unless the AddTo has a time in the 12:00 AM hour and 
 
AddFrom has the same day as AddTo but a later time. 
 
Example: 
 
6/26/2006 12:00:01 AM      6/26/2006 11:45:00 PM - True 
 
6/26/2006 12:00:01 AM      6/27/2006 11:45:00 PM - False 
 
6/26/2006 1:00:00 AM        6/26/2006 ...
Read Entire Conversation

Not 'breaking' or executing statments.
Hi, 
 
I have a project, that doesn't appear to process frmMain at all - I break at 
 
form_load, and nothing happens. The form shows, but has done no processing 
 
in the form load. 
 
I have tried having frmMain as my startup object, and also 
 
Dim frmy As New frmMain 
 
frmy.ShowDialog() 
 
But my frmMain appears, without going thru the form_load. 
 
This is driving me mad. If I change to startup with a different form, all is 
 
OK. 
 
Anyone any ideas please 
 
Thanks 
 
Pete
Read Entire Conversation

Define a compilation switch
in VB.NET 2005 
 
How can I do that? 
 
Samuel
Read Entire Conversation

VB2003 dll Used in VB2005`
If I have a dll that I wrote in VB.Net 2003, can I use it in a VB.Net 2005 
 
applicaiton without changing the dll, i.e., just set a reference to it in the 
 
VB.Net 2005 solution? 
 
-- 
 
Dennis in Houston
Read Entire Conversation

unicode vb.net 2003
Anybody know how to use unicode in vb.net 2003?
Read Entire Conversation

Getting saved values back to display after Update
I got a datagridview on which I do an update, the sace works fine, but after 
 
the save, the newly saved values do not get displayed in the cells. It looks 
 
like I need to do a refresh of some sort to get that info to display, but I 
 
want it to display and return to the selected rows both in the parent 
 
datagrid and in the two child datagrids, related to the parent. 
 
I would appreciate it if anybody could tell me whats the best way of getting 
 
this, a code snippet sample would help. 
 
Bob
Read Entire Conversation

Listbox help
Hello all, I'm a vb nubee and I need a little help. I'm trying to set up a 
 
listbox that allows you to select the disk then the directory which will 
 
allow you to present the files in that directory for selection. I'm kind of 
 
stuck and need a little help. Any code snips would also be appreciated. 
 
Thanks in advance.
Read Entire Conversation

Data environment X VB 2005
Hi Guys! 
 
In vb 6 I was using Data Environment object to make me easy work with 
 
access database. In VB 2005 I have not found any thing like D.Env. 
 
Please let me know if there is/are something like D. Env. for VB 2005. 
 
Any help is welcome! ;) 
 
Daniel
Read Entire Conversation

Default value not being populated in dataset
I have a CreatedOn field , datetime, which has GetDate() as the default 
 
value in SQL server 2000 table. When I create a new record in the table 
 
itself in enterprise manager, the field gets populated OK, but when I try to 
 
create a new record with a Microsoft datagridview control, I notice that the 
 
datecreated value does not get created. It looks as if the datagridview 
 
insert statements overrides the default value and prevent the default 
 
defined in the table to get written. 
 
An ...
Read Entire Conversation

Serialize Treeview Control
Thank you in advance for any and all assistance. I have a control 
 
"tv_ClientMain" that populates with nodes of system information, software, 
 
hardware etc. I would like to serialize it from the client to a host where 
 
the treeview control is tv_HostMain. I have tv_Host/tv_Client on the client 
 
app. 
 
I currently am serializing an image from the client to the host and it works 
 
great.
Read Entire Conversation

Passing textbox value to command
Please forgive this newbie, but can someone help with what is sure to 
 
be simple for the veterans of VB.net: 
 
I have a form with TextBox1 and a button, Button1. 
 
I need to pass the value of the textbox (in this case a URL) into the 
 
string which controls the opening of Internet Explorer and going to the 
 
typed site. 
 
I can get as far as opening Internet Explorer and opening a hard-coded 
 
site: 
 
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As 
 
System.EventArg ...
Read Entire Conversation