all groups > vb.net > may 2005
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
object refrence not set to an instance of an object ??
Posted by jeroen at 5/31/2005 11:32:01 PM
hello,
i'm having a problem with the following piece of code. i use it to read a
string in an array, then search that string for ";;" symbols, then i read
what comes after that to a variable, witch goes to a text box. but every time
i run the subroutine, i get an "Object reference not set t... more >>
VB 2005 Row index in datagridview <> row index in dataset
Posted by Robert Koller at 5/31/2005 11:18:57 PM
Hello
i have this problem:
In a DataGridView the user work with data from a DataSet. on Start the row
index from datagridview is the same as the row index from the dataset.
Also:
DataGridView.Rows(5) <=====> DataSet.Rows(5) .
if the user delete a row (without update), or the user sor... more >>
Stream Writer
Posted by Gujju at 5/31/2005 11:16:03 PM
Hi,
IF i want to write a line at the same time in append mode how m i suppose to
do.
here is my code.... and this function may be called more then once at the
same time....
and it works fine... but the only thing is that.. sometime i get the error :
The process cannot access the file... more >>
Hashtable to XML File
Posted by David at 5/31/2005 10:27:01 PM
All
I have a hashtable which I am trying to output to an XML file. Can anyone
advise on the best way to acheive this using VB.Net.
Thanks in Advance for any assistance.... more >>
Setting focus on control in webform
Posted by reidarT at 5/31/2005 9:19:53 PM
I have a webform and found some code where I understand some of it, but not
all
The code is as follows
public static void SetFocus(Control control)
{
StringBuilder sb = new StringBuilder();
sb.Append("\r\n<script language='JavaScript'>\r\n");
sb.Append("<!--\r\n");
sb.Appe... more >>
Newbie: Kill App
Posted by SMB at 5/31/2005 8:13:26 PM
Hi,
I am a newbie.
I am doing a VB.net app to kill notepad.exe
But it is not working.
Can anyone help ?
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim myProcesses() As Process
'myProcesses = System.Diagnostics.Process("n... more >>
Stumped (static? Variable)
Posted by Grumpy Aero Guy at 5/31/2005 8:09:03 PM
I have an app that has a linklabel on a form....opens IE and goes to a
specified webpage via
**************************************
LinkLabelOLB.LinkVisited = True
System.Diagnostics.Process.Start(http://www.the website.com/)
**************************************
works great.....
... more >>
.NET app tp set my screen resolution to 1024 by 768
Posted by Scott at 5/31/2005 7:30:20 PM
Hi
I need to develop a simple application to simply convert my screen
resolution to
1024 by 768
Anybody have any ideas???
Scott
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
threading
Posted by newbie at 5/31/2005 5:31:01 PM
how do i open up 8 thread to run 8 function at the same time?... more >>
Listbox SelectedItem & Dragging
Posted by Mark Lauser at 5/31/2005 5:01:06 PM
I have a Windows app (.net v1.1) and I am dragging from a list box.
The first drag works fine, but all subsequent drags continue to pull the
first item that was dragged. It appears that MouseDown does not cause the
SelectedItem to change (even though the highlighted item changes).
So, if ... more >>
DataGrid Cross Thread Access
Posted by TFS at 5/31/2005 4:11:31 PM
Hi,
I know the topic of cross-thread operations from the UI has been addressed
several times, but if anyone could provide some insight for my particular
scenario, I would be thankful...
Using Visual Basic (VS 2005 Beta 1)
In a Public class X, I have a TCP connection setup to parse and d... more >>
Datagrid and RowChange Event
Posted by Michael at 5/31/2005 4:06:32 PM
Hi Everyone,
Using the datagrid, is there a reliable way to catch when the user selects a
different row (Like a RowChanged event). I've also looked at the events of
the table control and that does not work the way I want it to. Thanks for any
advice.
Michael Lee
... more >>
Datagrid and Rowchange events
Posted by Michael at 5/31/2005 4:00:05 PM
Hi Everyone,
Using the datagrid, is there a reliable way to catch when the user selects a
different row (Like a RowChanged event). I have seen CurrentCellChanged, but
it looks as if I would need to track the last row against the current row
found during this event. If this correct. I've also ... more >>
sleep methods in vb.net
Posted by Jason at 5/31/2005 3:10:12 PM
In a vbscript making something sleep is as easy as this....
Set WshShell = WScript.CreateObject("WScript.Shell")
WScript.Sleep 5000
In .net I've got the object created. I know it works because I use it else
where.
Set WshShell = CreateObject("WScript.Shell")
How do I implement the sleep m... more >>
Newbie: View ALL Controls on a form
Posted by steve at 5/31/2005 2:39:16 PM
Hi,
I realised that i cannot rename a control using a certain name, because
there already exists another control with that name.
I have been trying to find and delete that other control with no success !!!
I['ve been "Bring to front" all panels and controls in my form and nothing.
Is there... more >>
How to set a label's backcolor to transparent?
Posted by Dean Slindee at 5/31/2005 1:49:08 PM
The code below runs in the form_paint event but changes nothing, anyone got
a better idea or why this code is not effective?
Imports System.Drawing.Drawing2D
Dim ctl As Control
Dim str As String
For Each ctl In Me.Controls
str = ctl.GetType.ToString
... more >>
Same code in VBS file and VB.NET Assembly - VBS works but VB.NET fails
Posted by Raghu at 5/31/2005 1:38:39 PM
(Sorry for cross post but kinda in a hurry)
I have com+ server applicaiton on machine A. The exported application proxy
is installed on machine B. Both machines have windows 2003 os. Both machines
are configured to be application servers. I created on machine B:
1) A vbs file
2) VB.NET asse... more >>
Single DataType and decimal separator
Posted by Mika M at 5/31/2005 11:44:36 AM
Lets say I need to do something like this when running sql-sentences...
Private Sub InsertIntoTable(ByVal ProductID As Integer, ByVal Amount As
Single)
Dim sql as String = String.Format("INSERT INTO MyTable (ProductID,
Amount) VALUES ({0}, {1})", ProductID, Amount)
'...code continues.... more >>
Code to update the table
Posted by robboll at 5/31/2005 11:24:05 AM
Please excuse my ignorance, but I am trying to teach myself .Net
without a lot of help. At this point I have created a page with a few
text boxes and combo boxes that I am using as an example.
The page displays nicely with the Requestor, DivMgr, ChgType,
Description fields.
What I would li... more >>
100 Labels
Posted by David de Passos at 5/31/2005 10:57:08 AM
Hi!
I have 100 xrLabels and I need to put in text property a value but I don't
want to write 100 lines of code, like something like that:
for i=1 to 100
xrLabel(i).Text= i
next
How can do that?
--
Cumprimentos,
David de Passos
-------------------------------------------... more >>
Adding New References at Runtime...
Posted by Juande at 5/31/2005 10:43:03 AM
Hello,
My application needs load some dll's at runtime, Is there any way to do it?,
can you show me a working example code?
Many thanks
... more >>
porn
Posted by mack at 5/31/2005 10:34:06 AM
see i knew if i put the word PORN on every guy will look at it why?
... more >>
Connect to SQL server 2005 using SQLDMO
Posted by João Santa Bárbara at 5/31/2005 10:16:01 AM
Hi all
i need to know if sql dmo can connect to SQL server 2005
if can! how can i do this ??
i have this code
Dim xServer a SQLDMO.Server
......bla..bla...
xServer.LoginSecure = True
xServer.Connect("SQLServer2005")
but it can´t connect.
is there anyother way ??
thks
JSB
... more >>
Folder permissions in .NET
Posted by hiram at 5/31/2005 9:46:52 AM
I have a folder on a local machine that has the access security
settings set in Windows so that only the administrator can perform
write or create operations on the folder. Everyone else is given read
only access to the folder.
I am trying to write a vb.net program that can create and modify... more >>
help me!!!
Posted by mack at 5/31/2005 9:36:23 AM
i had to fart but it came out with something else an my boss just called me
to his office whatdo i do!?
... more >>
Remoting Problem
Posted by Ron L at 5/31/2005 9:11:15 AM
We are working on a distributed VB.Net application which will access a SQL
database located on a known server. Each client will run on the user's
local machine. To implement this, we are trying to use remoting for our
access to the SQL server, with the remoting being via IIS. Since all of o... more >>
Shared Methods in VB 2005 Beta 2
Posted by Michael D. Ober at 5/31/2005 8:51:47 AM
Is there anyway to access a Shared method from within an instance of a
class.
public class MyClass
Shared Readonly Property myProp() as string
Get
return "MyProp Example"
End Get
End Property
end class
I want to use this as:
dim mc as new MyClass
debug.print mc... more >>
overwrite user permissions on local folders or assume admin role on client machien programmatically
Posted by Bill Nguyen at 5/31/2005 8:39:23 AM
I tried to rename a local folder (C:\Program Files\Microsoft Mappoint\Data)
in my VB.NEt app but running into permission problem. I even granted full
rights to ASPNET user to the folder in question but it's still not working.
If I do it manually (my login has administrator rights to the local/... more >>
Speeding up database access
Posted by Simon at 5/31/2005 7:57:58 AM
Hi All,
I'm trying to figure out how I can speed up a fragment of code (which
has been converted from vb6 to .NET) that reads data from a database.
My knowledge on database programming is limited. The code uses DAO
(which, I understand, is no longer supported) - would there be any
performa... more >>
speeding up database access
Posted by simon_w3 NO[at]SPAM ntlworld.com at 5/31/2005 7:49:23 AM
Hi All,
I'm trying to figure out how I can speed up a fragment of code (which
has been converted from vb6 to .NET) that reads data from a database.
My knowledge on database programming is limited. The code uses DAO
(which, I understand, is no longer supported) - would there be any
performanc... more >>
TextStream.close problem
Posted by AspProgrammer at 5/31/2005 7:31:20 AM
Hello
I'm writing a web application where i upload a file. then i open the
file use textstream. At the end of my application i close it by using
TextStream.close. But when i try to delete the file on my hard disk i
keep getting the error "file is being used by other program or person".
The on... more >>
get time function
Posted by Selectum at 5/31/2005 6:23:01 AM
I have been using a program which depends on getting the system time from the
computer. It works perfectly on XP but is slower on 98. Specifically, it
takes 50 or 60 mSec for the system time to be updated in 98 but only 16 or 16
mSec in XP. Anyone have any thoughts?... more >>
Switching between datasources using bound controls
Posted by bparr NO[at]SPAM jaxmeier.com at 5/31/2005 5:24:08 AM
All,
I am using Windows Forms and have multiple XML datasets feeding various
controls. Here is the situation.
I have a master dataset that saves a document to the drive. Out of 50
fields in the XML document, there are 5 that have defaults loaded from
a different XML dataset when the new for... more >>
access odbc output parameter
Posted by juststarter at 5/31/2005 4:35:09 AM
Hello all,
I am executing a stored procedure (on an SQL Server) using ODBC but i can't
get the output parameter's value on the client. The stored proc has 3
parameters ,2 of them are input and 1 is output. (for shake of simplicity
let's suppose that the proc seems something like
------------... more >>
Confused about format
Posted by postings NO[at]SPAM alexshirley.com at 5/31/2005 4:06:09 AM
Hi
I have a decimal numbers showing up on my datagrid that is displaying
lots of trailing zeros in the listbox.
i.e. 1.000100
or 1.000000
I want to get rid of all the trailing zeros (I don't want to do any
rounding).
I've tried to use:
number.tostring.format("##0.00")
or
number.tos... more >>
How map a network drive
Posted by Li Pang at 5/31/2005 3:48:10 AM
Hi,
I'd like to know how to easily map a network drive using vb.net.
thanks... more >>
threading
Posted by newbie at 5/31/2005 12:39:32 AM
hi i have a commandline that send data to 8 USB printer, but when one of the
printer is not working, the other 7 will also hanged. How can i use threading
to separate the 8 printing process?
For x = 0 To 7
If USBHandle(x) > 0 And USBAddressOn(x) = True Then
RetVa... more >>
Server app
Posted by John at 5/31/2005 12:29:17 AM
Hi
I need to be write a vb.net app which is callable from ms access to pass
info from access to the vb.net app. How do I accomplish this?
Thanks
Regards
... more >>
byval vs byref
Posted by Boni at 5/31/2005 12:00:00 AM
Dear all,
I found out that I don' understand byVal/byRef in VB.
There is a simple example:
Why in the first test the result is 10,10 where in the second 0,20.
Thanks for your help.
Boni
Module Module1
Class A
Public B As Integer
End Class
Sub test(ByVal val_ As A, ByRef ref_ As A)
... more >>
pass fixed string by ref
Posted by Cc at 5/31/2005 12:00:00 AM
hi,
how do I pass fixed string byref to a dll . I had try
<VBFixedString(10)>
but when I run I keep getting system.accessviolation
Any help would be great
... more >>
Add GUID Column in datagrid
Posted by Melson at 5/31/2005 12:00:00 AM
Hi
I've created a GUID column of a table in ms sql server and bind the table to
a datagrid. How can I automatically create new GUID when i add new row in
the datagrid.
Pls help. Thanks.
Regards
Melson
... more >>
cannot find Microsoft.office.Interop
Posted by Irfan at 5/31/2005 12:00:00 AM
hi,
Two questions, i dont know if the cause if these two problems is the same.
1.
As soon as i Add->Reference -> Microsoft Excel 11.0 Object library. It
gives an error
'The referenced component 'Excel' could not found.
I downloaded PIA from MS website this morning.After a bit of digging ... more >>
CrystalDecisions? Where can I find this?
Posted by Scott Gunn at 5/31/2005 12:00:00 AM
Hello
I have vb.net 2003 but I cannot find CrystalDecisions. How can I get/install
it?
TBS
... more >>
Query data from 2 MDB
Posted by Lurc at 5/31/2005 12:00:00 AM
Hi all,
I need to query data from at least 2 MDB files that have a common CardNo
field. The tables that hold those info are in different MDBs, how can I
run select SQL statement under VB.NET environment?
For example:
In A.MDB, table CardInfo has fields CardNo and Name
In B.MDB, table Reco... more >>
setting properties via properties window during runtime
Posted by Patrick at 5/31/2005 12:00:00 AM
I remeber seeing a sample on th e.net (and in fact i tried this too - but
lost the source code), to achieve the following.
Dropping a control onto a form, which is exactly like the properties window,
and can be used to set the properties of a control, esp command buttom.
Anyone out there k... more >>
file close
Posted by LeatherGator at 5/31/2005 12:00:00 AM
I have created a long string and want to save it to a file. I create the
file fine, but there are two additional characters at the end when I view it
in a hex editor "OD" and "OA".
Here is the code I have tried:
FileOpen(1, SaveFileDialog1.FileName, OpenMode.Output,
OpenAcce... more >>
Focus on field in webform using stringbuilder
Posted by ReidarT at 5/31/2005 12:00:00 AM
I am trying to get control on where the user moves around in a webform
especially after fields with autopostback.
I have found a C# page with some of this stuff, but when I have converted it
to VB, I get an error of stringbuilder.
I have tried to use Imports System.Oject, but it still doesn't ... more >>
Stored Procedure
Posted by sam at 5/31/2005 12:00:00 AM
I want to convert standard SQL update syntax into calling stored procedure.
Normal Coding
-------------
Dim constr As String = "server='SQLSVR'; user id='USER';
password='password'; Database='ERP'"
Dim sqlcon As System.Data.SqlClient.sqlconnection = New
System.Data.SqlClient.sqlconnectio... more >>
Select Statement Error!!!
Posted by A.J at 5/30/2005 10:34:01 PM
Application: When a user selects a name in the listbox complete
information(phone-no,E-mail,etc..) regarding the person should be
displayed.
Problem: I have populated the list-box with names using datareader.The
database comprise of id with respect to each name.Now since the id's
are unique t... more >>
VB.NET and Crystal Reports
Posted by Betty M at 5/30/2005 10:31:40 PM
I have a VB.NET application using SQL server with 300 users connecting via
remote desktop to the application in Win2003. From what I read in the
licensing agreement, we max out at 50 users in the Crystal Reports that
comes with .NET.
Is there a workaround by going to CR 8.5 or is there ano... more >>
|