all groups > vb.net > june 2004 > threads for wednesday june 23
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
IMessageFilter question
Posted by Neil Stevens at 6/23/2004 11:44:26 PM
Hi,
I am in the process of developing a popup utility for a project i am =
working on, the basic idea is that when a user presses the control key a =
popup menu will be displayed listing the shortcut options, for example =
Ctrl+Q which will be used to close a window.
The popup is a simple f... more >>
Problems with Parameters with an Insert Statement...
Posted by Manuel Canas at 6/23/2004 11:20:08 PM
Hi there,
This is the Code ;
cnSQL = New SqlConnection(ConnectionString)
cmSQL = New SqlCommand(strSQL, cnSQL)
strSQL = "INSERT tb_product VALUES(@ServiceCode,@ServiceName,@Price)"
cmSQL = New SqlCommand(strSQL, cnSQL)
Dim m As New SqlParameter("@Price", txtPrice.Text)
m.DbType = Sy... more >>
TabControl & DataBinding
Posted by Agnes at 6/23/2004 10:01:05 PM
Now, I understand my problem (bugs?) about the Tab Control & dataBinding
1)a simple blank form with tabcontrol , there are 2 pages, pages1 got 3
textboxes (txtShipperNAme,txtJobNo,txtVslName) and one "New" button
2)As Formload, I will fill in the dsInvoice and bind the data
dsSeaExHBL.... more >>
tabcontrol
Posted by afsheen at 6/23/2004 9:14:21 PM
Hi
iam using a tabcontrol in vs.net and wanted to know that could i shift from
one tabpage to another by pressing the tab keys when the last control of
that tab page loses focus
thanks
... more >>
parsing xml files
Posted by Wade G at 6/23/2004 9:06:29 PM
How do I use XmlDocument class to parse an xml file such
as the following - note the key issue is the number of
<stuff> elements is not fixed so if I use m_nodelist =
m_xmld.SelectNodes("/start/level/stuff") to process the
nodes they all run together and I can't separate them by
the <leve... more >>
DataGrid, how to determine which column is being sorted on
Posted by paulhux174 NO[at]SPAM hotmail.com at 6/23/2004 8:58:09 PM
Hi,
I've a DataGrid and a DataSet (not a DataView) as the DataSource.
Users can click on column headers and sort the contents of the DataGrid.
I want to know how to determine which column is being used to order the sorted data.
I can't see in the microsoft DataGrid in vb.net the Event 'SortCom... more >>
Installing windows service
Posted by John at 6/23/2004 8:15:14 PM
Hi
I am trying to install a windows service exe file. I have the following
command line;
c> installutil.exe webservice1.exe
This did its thing but the windows service did not appear in the list of
services. What else do I need to do?
Thanks
Regards
... more >>
Real beginners stuff
Posted by Paul Brownjohn at 6/23/2004 6:43:44 PM
Is there a direct equivalent of the VB6 expression 'app.path' in the .NET
framework
Cheers
Paul
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Shortcut for Refresh, F5 or symbolic code?
Posted by Henrik Dahl at 6/23/2004 5:53:45 PM
Hello!
I would like to introduce a keyboard shortcut for refreshing the user
interface in many programs. In english locales it's often F5 which is used,
but how about other locales and/or preferences. Should I simply bind the
refresh feature to F5 or is there a symbolic Shortcut for refreshmen... more >>
where clause with date (asp.net - vb)
Posted by Yannick at 6/23/2004 5:49:27 PM
Hi,
I try to execute request on a ms-access database but I have a problem
with date.
the "myDate" field's format is "date/time"
my request is:
SELECT myCode, myStuff, myDATE FROM myTable WHERE myDate = #05/21/2004#
in ms-access interface, it works fine !
I get real good lines but wh... more >>
How to access method in open form from another form.
Posted by twick10 at 6/23/2004 5:32:52 PM
Hi,
I am trying to execute a control method on an open form (not with focus)
from a modal dialog box. I want to increment the node selected from the
dialog when a certain key is pressed.
Any help appreciated.
Robert T
... more >>
Temporarily Terminate a process and restart it later in VB .Net
Posted by Alison at 6/23/2004 5:18:02 PM
Hi, All,
How to temporarily termniate a process and then restart it in VB .Net? (Should not kill the process since it is still needed in the program later).
Thanks for the help.
Alison
... more >>
Is it possible for some nodes not to show checkbox?
Posted by Shelby at 6/23/2004 5:08:00 PM
Hi,
I understand that the "TreeView" has the property "checkbox".
I wonder is it possible for some nodes not to show the checkbox while others
continue to show?
Shelby
... more >>
memory stream help please.
Posted by William Morgan at 6/23/2004 5:02:25 PM
is there a way to take a string that has binary data in it and put it
in the memory stream?
everything i try will not work. it wants it in bytes. and i don't see
a way to convert it over..
thanks
... more >>
MSChart
Posted by Ben at 6/23/2004 4:59:02 PM
I want to graph the data in a dataset in a datagrid using mschart. The problem is I do not know how or where to start.
Need suggestions
Thanks... more >>
Converting from UDT to structure or object - please help
Posted by Clark Stevens at 6/23/2004 4:54:29 PM
I have a program that I'm converting from VB6 to VB.NET. It reads in a text
file containing barcode numbers and their corresponding descriptions. Then
the user enters the barcode number and the program finds the matching
barcode description.
In VB6 I used an UDT to store the barcode number a... more >>
Using SQLDMO
Posted by Craig G at 6/23/2004 4:40:31 PM
i am currently building a small user maintenace system which works across
different SQL db's and servers.
for a logon screen i am using SQLDMO to get a list of all SQLServers on
network, once logged on this then populates a list of db's on that SQL
server. by clicking OK i more or less build a... more >>
How To: Close application during Start Up (VB.net)
Posted by Mr. B at 6/23/2004 4:31:54 PM
VB.net 2003 (standard)
In my application, within FORM1_LOAD, I check for various things (ie valide
user names, files, etc.). What I want to do is upon an event such as "No
Valide User Name Found" to pop up a warning message about the event and then
close the application.
I can do everythin... more >>
getting the last control in focus
Posted by Sameh Ahmed at 6/23/2004 4:28:33 PM
Hello there
Is there a way to get the last control that was in focus before the current
control?
please note that I don't want the next or previous control in the tab order,
I need the last one used by the user.
Thanks in advance.
Regards
Sameh
... more >>
DateTimePicker and the Checked property
Posted by Mike Eaton at 6/23/2004 4:10:01 PM
I've got a database application that uses the DateTimePicker to display/edit a person's birthdate. I'd like to use the .Checked property to determine if I want to write the date to the DB, but the behavior isn't what I expect. It seems that if I check or uncheck the DTP checkbox, the .Checked prop... more >>
numbers only textbox
Posted by Greg Burns at 6/23/2004 3:43:23 PM
I have a textbox that I only want to allow "numbers".
1,000
1000
1000.0512
I don't want to prevent them from typing anything else, because I want to
check their input in the Validating event and will display an error with an
ErrorProvider.
First attempt (from my TextBox1 Validating even... more >>
Window app timeout implementation
Posted by feng at 6/23/2004 2:31:52 PM
In our VB.Net Windows application we need to implement
a "timeout" type of funtionality - If the the user leave
the application idle for certain peroid of time, depending
on configureable setting, then I want the system to
timeout and send him/her to login again.
To do this all I need is ... more >>
VB.Net Free Drive Space? Number of Avail local Drives?
Posted by Roger at 6/23/2004 2:04:55 PM
Is there a .Net class to get free drive space on remote computer?
Also is there a way to get Number of available drives?
Thanks,
Rog
... more >>
deploy a class
Posted by Frank at 6/23/2004 2:00:38 PM
Hi,
I have a formA and classB which I want to wrap into a component so my
fellowworkers can use the formA in their main applications. ClassB must not
be visible.
How do I do this? I can only find info about deploying complete
applications, but this is just a subform and a class. I want my
fell... more >>
outlook hangs with COM add-in
Posted by deja.10.thrillho NO[at]SPAM spamgourmet.com at 6/23/2004 1:58:13 PM
Help! I created a COM addin using vb.net based on the KB article
302896 (http://support.microsoft.com/default.aspx?scid=kb;en-us;302896).
The problem is Outlook remains in memory when after it. I know the
problem is in the OnStartupComplete function. If I comment this
function out, Outlook c... more >>
Some variables at the Class level not accessible in Subs
Posted by Fred at 6/23/2004 1:33:11 PM
Following what I think are relevant portions of my code:
---------------Begin Code---------------------
Public Class LOLoadingBoard
Inherits System.Web.UI.Page
Dim MaxNum As Integer
Dim LNToEd As Integer
Dim CStatClr As Integer
Dim lBox() As Integer, lStatusColor() As In... more >>
Monthly log application
Posted by George at 6/23/2004 1:31:03 PM
I need to create an application that displays each day of the month and allows the user to input data on a daily basis. This application form would display one month at a time, depending of the month selected. Does anyone have an sample application or code that would allow me to use one form and p... more >>
more efficient - not str1.Equals("xyz") or str1 <> "xyz"?
Posted by Rich at 6/23/2004 1:07:39 PM
Hello,
Just checking which is more efficient/better/or correct
Do While something
str1 = dr(i).ToString
If Not str1.Equals("xyz") Then
....
or
If str1 <> "xyz" Then
....
or does it make any difference? or any other syntax?
TIA,
Rich... more >>
Network Scanning
Posted by Jennifer at 6/23/2004 1:06:09 PM
I want to write a quick little program that will scan all
network PCs and tell me who's using a specific exe and
how long they've been using it. Can anyone help me out?
Thanks,
Jennifer... more >>
Objects, Nothings and Nulls!!!!
Posted by Alex Stevens at 6/23/2004 1:05:25 PM
Hi All,
I'm working on my Data access class which has an .AddParamter Function.
(Code is at the end of the message).
One of the parameters of this Function is the value which should entered
into an SQLClient.SQLParameter object.
This is declared as Object because I could be accepting dates,... more >>
Transparent?
Posted by Xavier Valdés at 6/23/2004 12:57:38 PM
Hi all,
I'm trying to see files from listview control so I'm adapting VBResourcekit
sample "Windows Forms - Create an Explorer Style Application"
with different icons capabilities. For doing that, I'm filling and imagelist
every time I want to showfiles().
In this function, I'm using api's SH... more >>
Data column widths...
Posted by KC at 6/23/2004 12:44:01 PM
Can datagrid column widths be set individually? In the code that is.
Ken
... more >>
datagrid focus
Posted by Randy Fraser at 6/23/2004 12:30:57 PM
Anyone know how to get the cursor to land inside the first column of a
datagrid after an add.
Me.Datagrid1.CurrentCell = New DataGridCell(Me.dataGrid1.CurrentRowIndex, 0)
will set focus but will not place the cursor inside the textbox in the grid.
If I press keys and hit tab, the value
wi... more >>
ComboBox bug???
Posted by Anthony at 6/23/2004 12:27:39 PM
Hello All,
I have a combo-box that contains three items added at design time. When I
try to set the SelectedText property at run-time based on a value from a
SqlDataReader, the SelectedText is not set, but if I step through the code,
the SelectedText gets set. Any help will be greatly apprec... more >>
Add Form/Control "The Operation Could Not Be Completed"
Posted by Mark at 6/23/2004 11:52:57 AM
Hi,
I'm running visual studio 2003, and am now receiving the error "The
Operation Could Not Be Completed" when attempting to add a form / control or
component class to a project. I can add any other type of item without a
problem.
This is the second time this has happened to my machine, last ... more >>
books/resources for datagrid?
Posted by Tarren at 6/23/2004 11:30:47 AM
Hi:
I am looking for a strong website/book for the winform datagrid control? Is
there a book that deals with this primarily, or a great website for it? I
have books on ADO .NET as well as books on Windows Forms Controls, but both
touch only lightly on datagrids other than rudimentary binding... more >>
Fast file access reading text file line per line
Posted by Volker Jobst at 6/23/2004 11:29:10 AM
Hi,
Is there a really fast way to read a text file which contains lines of
variable length? I'm using the StreamReader to read the file, but this is
not as fast as I need it.
thanks a lot
volker jobst
... more >>
How to declare arrays within a structure?
Posted by John Dann at 6/23/2004 11:08:05 AM
Trying to declare a structure that will contain a couple of fixed-size
arrays. I'm trying eg:
Structure IndexRecord
Dim testarray(16) as Byte
etc
End Structure
But vb.net is refusing to let me do this saying that I can't declare a
structure with fixed size arrays. Yet the book I'm looki... more >>
vb.Net Get List available Network Servers (Remote Machines)..
Posted by Roger at 6/23/2004 11:01:32 AM
I would like to get a list of machines on my network (Workstations and/or
Servers).
Is there a way to do this in VB.Net?
Thanks,
Rog
... more >>
reference a vb.net windows form control from a module sub
Posted by Mark D at 6/23/2004 10:49:04 AM
Hi
Relative vb.net newbie here... I have a Windows Form
application with a few subroutines in a separate module.
From one of the subroutines, I want to get the value of a
label or text box on the form. As it is, I get
a "Reference to a non-shared member requires an object
reference." er... more >>
How do I set the Type in a variable?
Posted by Shelby at 6/23/2004 10:46:28 AM
Hi,
how do I set the Type of a variable?
For example:
Dim myhash as hastable
' I want to set the Type in myhash as String or Integer or even my own
custom Structure.
Public Structure ContactUser
Public firstname as string
Public middlename as string
......
End Structure... more >>
combobox behaviour
Posted by Frank at 6/23/2004 10:45:56 AM
Hi,
I create a combobox in the new event of a form. Fill datasource with dataset
and so on.
Works in so far that the items (combo.items.count) only show after the load
event. I found a workaround by setting the visible prop to true and
immediatly to false again (in the new sub).
Why is this ha... more >>
How do I get impersonation to work?
Posted by ECrawford at 6/23/2004 10:29:02 AM
Here is my scenario. I have an ASP.net page that exports a Crystal Report file. When I export the file, the app uses the ASPNET user, which doesn't have the appropriate rights to the network drive that I'm saving the report to.
I thought by adding the <identity impersonate="true" userName="user" ... more >>
TabControl&databind problem
Posted by Agnes at 6/23/2004 10:09:03 AM
myTab control got 2 pages,
in page1, i need to type in customer code, and the customer information will
be displayed in page 1 & page2.
I am using databinding to move the record position.
Before bmCustomer.addnew() . Everything goes fine, I can see the data in
both Page2.
However, after bmCust... more >>
upgrade vs.net2000 to 2003 ?
Posted by Agnes at 6/23/2004 10:05:15 AM
I had create some project in .net 2000. now I will install the new version.
Anything I need to aware or be careful ??
Thanks
... more >>
Smart client template solution ???
Posted by gicio NO[at]SPAM gmx.de at 6/23/2004 9:57:40 AM
HI!
I am currently at the beginning of a new project and I would like to start
with something out of the box. As we started our Web project we used IBuySpy
Portal
and it worked fine because we did not waste our time on authentification,
authorisation and all that but we were able to start... more >>
VB.Net get list of Services on Remote Computer.... How?
Posted by Roger at 6/23/2004 9:18:08 AM
I would like to get a list of services on a remote computer. Is this
possible via code in VB.Net?
Thanks,
Rog
... more >>
copy folder during deployment
Posted by magnus NO[at]SPAM rad-o-resultat-dot-se.no-spam.invalid at 6/23/2004 9:02:08 AM
Hi
I need to have a folder with some files in it copied to the clients
computer. How can I configure this when I deploy the application I've
developed?
Regards
Magnus
Posted Via Usenet.com Premium Usenet Newsgroup Services
-----------------------------------------------------... more >>
Can you convert this from C# to VB?
Posted by Rob T at 6/23/2004 8:34:42 AM
Hi, I'm trying to convert his line from C# to VB:
System.Drawing.Image _img=
System.Drawing.Image.FromStream(new
System.IO.MemoryStream((byte[])SqlReader["Image"]);
I have this so far:
dim Img as SystemDrawing.Image
Img=System.Drawing.Image.FromStream(new
System.IO.MemoryStream(Conver... more >>
Can someone explain observer patterns for me?
Posted by Lars Netzel at 6/23/2004 8:21:48 AM
Hi!
I have looked into it a little and I did'nt get much. How does it basically
work?
/Lars Netzel
... more >>
What up
Posted by CJ Taylor at 6/23/2004 7:55:13 AM
Hey everyone,
Hope all is going well, must admit missed you all... but had to go do that
marriage thing.. =)
Any excitement while I was gone? =)
... more >>
select row only in datagrid?
Posted by Tarren at 6/23/2004 7:52:34 AM
Hi:
I am wanting to make it so that a user cannot select a single cell in a row,
but can only select the entire row. Can someone point me in the right
direction as to how to accomplish this. I worked with the styles and if the
person clicks in the row selector on the left, then it highlight... more >>
no resize
Posted by magnus NO[at]SPAM rad-o-resultat-dot-se.no-spam.invalid at 6/23/2004 6:02:51 AM
Hi
I want to preven the user from resize my application, how can I do
that?
Regards
Magnus
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
-------------... more >>
progressbar
Posted by magnus NO[at]SPAM rad-o-resultat-dot-se.no-spam.invalid at 6/23/2004 6:02:50 AM
Hi
I wonder if there is someone that can show me how I can use a
progressbar that indicate how a file creation procedure is going. I
have the file creation as a class.
Regards
Magnus
Posted Via Usenet.com Premium Usenet Newsgroup Services
-----------------------------------... more >>
System.Diagnostics.Process.Start and launching notepad
Posted by andreas at 6/23/2004 5:38:55 AM
hi,
In windows xp in the start launch menu when i put
notepad "c:\test.txt"
i get notepad with test.txt in it.
in vb.net when i state
system.diagnostics.process.start("notepad.exe"
i get notepad
but
system.diagnostics.process.start("notepad.exe c:\test.txt") don't work
can i get the fi... more >>
How to detect .Net running version
Posted by Atara at 6/23/2004 3:13:15 AM
I have an application created in VS 2003.
When I run it on computer with only .Net 1.0 installed, I get -
Title: "Net Framework Initialization Error"
Text: "C:\Win...\Microsoft.Net\Framework\v1.1.4322\mscorwks.dll
could not be loaded"
I tried using the application config file with su... more >>
Button and detect key pressed
Posted by Silvia at 6/23/2004 2:06:02 AM
Hi,
I have a form with a button and when I click in this button, how I can detect the keys pressed and put this keys pressed in text property of the button.
Thanks
Silvia... more >>
How can I convert ANSI to OEM in VB.net ?
Posted by nicksop at 6/23/2004 1:51:49 AM
How Can I convert ANSI to OEM with StreamWriter ?... more >>
How to set a tip text on a button control
Posted by Li Pang at 6/23/2004 1:09:01 AM
Hi,
I'd like to know how to set a tip text onto a button control. i.e., to provide some information when users move the mouse over a button.
Thanks in advance... more >>
Component Object Model
Posted by blackdevil1979 NO[at]SPAM yahoo-dot-com.no-spam.invalid at 6/23/2004 12:02:32 AM
I need help...
somebody please explain to me what is this COM and how and where to
create a COM class...
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
-------------... more >>
|