all groups > vb.net > july 2004 > threads for thursday july 8
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
Listbox DrawItem question
Posted by SStory at 7/8/2004 10:25:49 PM
I have a listbox and I am drawing my items.
For some reason the selected item doesn't show a selection....
this seems to happen even if I tell it to draw focus rectangle.
What should I do to so a selected item?
Thanks,
Shane
... more >>
VB Learning Help
Posted by Ricky W. Hunt at 7/8/2004 10:25:34 PM
I have two mixed questions, sorry for the unclear subject line.
I downloaded the Visual Basic Resource Kit from MS but I can't get it to
work. I have WinXP Home so I don't know if that's part of the problem. If it
is, how in the world do I use the kit to learn? (How do I do the tutorials,
etc.... more >>
Question on ASP.net and an Oracle database
Posted by SHAWN DEB ECKLEY at 7/8/2004 9:00:13 PM
Hi i'm wondering if anyone can tell me where i'm going wrong.
i have created a class library that allows me to access an oracle database.
i have it working in conjunction with a desktop application. however when i
use it with a web application i continue to get error message saying that
"Could n... more >>
Default and Cancel Buttons
Posted by Nice Chap at 7/8/2004 8:33:35 PM
Is it possible to have default and cancel buttons on a UserControl ?
... more >>
php mysql comparison
Posted by Jerome Tan at 7/8/2004 7:43:36 PM
hi there,
how is vb.net database programming easier compare to php-mysql combination?
i'm having trouble understanding how vb.net work compare to php-mysql
database accessing.
can anyone shed me light for easier understanding?
thanks.
regards/
jerome
... more >>
How to Prevent the Click Event when a Button is Clicked
Posted by Charles Law at 7/8/2004 7:04:27 PM
When I click a button I don't want the click event to fire. Is this
possible?
In fact, what I would really like is to be able to intercept the click
event, perform some action, and then prevent the click from passing through
to the button.
Any help or suggestions much appreciated.
Charle... more >>
XSLT Brain Death has occured
Posted by One Handed Man ( OHM - Terry Burns ) at 7/8/2004 6:03:44 PM
I've been battling with this stupid problem for hours now.
WebApp:
Trying to do a simple transformation using XSLT to a Web Page, but it just
failes without an error message ( In other words, it bums out with a general
exeption with no message ).
It creates the Ouput.html, but errors and... more >>
datareader questions
Posted by William at 7/8/2004 5:55:54 PM
Can someone please explain this to me. I am not understanding why this
works the way it does. The commented lines are the problems
Dim oleEmp as OleDbCommand
Dim myFinds as OleDataReader
Dim strSearch as String
Dim strFound as String
strSearch = "select * from employee where [first name]... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Running console process
Posted by Dave Taylor at 7/8/2004 5:12:24 PM
I'm writing an app in VB.NET that provides a user-interface to computer
simulation model that runs as a console process. I would like to have the
console output redirected to my VB.NET program and I've done so with the
attached code. The problem is, redirecting its output slows down the code
s... more >>
Discarding rows in dataset.
Posted by Graham Blandford at 7/8/2004 5:06:32 PM
Hi all,
Would someone be able to tell me the most 'graceful' way of removing
unwanted rows from a dataset based on a condition prior to update? OR,
resetting the rows all to unchanged after they are initally added to the
recordset.
I create a dataset, which begins empty after the initial .F... more >>
Setup Problems in vs .net 2003
Posted by Atley at 7/8/2004 4:57:05 PM
I have installed an application that I created and everything works except
the Crystal Reports components... I check, they are in the Setup Files, but
it seems like the dependancies are not all there...
What can I do to force these dependancies to install?
... more >>
vb.NET Missing a 'continue' statement in while loop?
Posted by PagCal at 7/8/2004 4:36:04 PM
Is this language missing the functionality of a C/C++ 'continue' statement?
For example:
While NOT isEof()
If condition
' a C or C++ continue would work here
' but we are forced to use a GoTo
GoTo nxt
End If
... more statements here ...
nxt:
End While
You CAN rewri... more >>
SNMP GEt using WMI
Posted by Dan at 7/8/2004 4:17:01 PM
Does anyone have any samples or references to get me started with WMI for collecting SNMP information? Any help is appreciated.
Thanks,
Dan... more >>
Creating an instance from a System.Type object
Posted by Simon Jefferies at 7/8/2004 4:00:29 PM
Hello,
How can I create an instance using a System.Type object?
Thanks
Simon
... more >>
Using Javascript confirm box in vb.net web app
Posted by Dave at 7/8/2004 3:59:30 PM
Hello all,
I have been able to use a Javascript alert box in my vb.net web application,
for example:
Dim msg As String = "Hello, world."
Dim alertScript As String = "<script language=JavaScript runat=server>"
alertScript &= "alert('" & msg & "');"
alertScript &= "</script>"
RegisterClie... more >>
circular references
Posted by eastforkfarms NO[at]SPAM yahoo.com at 7/8/2004 3:55:39 PM
We are currently in a dead end with a circular reference issue using
vb.net, and are hoping someone might help us resolve it.
Idea...
We have frmmain calling frmperson (dim f as new frmperson) in search
(no record) mode. When the search is executed, frmperson calls
frmsearchresult (dim f a... more >>
Update access file from datagrid
Posted by facicad at 7/8/2004 3:40:00 PM
Look my prog. I have combobox where is have all tables names of access
file. The user select one table and the content is show in datagrid. The
user can add, erase or modify some record or row. Until now is ok but went
I want to update access file, VB send me error. Some body can help me
... more >>
Q: changing the datatype of a column in a datatable
Posted by Geoff Jones at 7/8/2004 2:51:10 PM
Hi
Is it possible to change the type of data a column holds in DataTable at
runtime? For example, suppose that the table column originally holds
Strings, can we, at runtime, change it to Integers?
I'm also interested in changing the date/time that may be held in a column.
That is, if the da... more >>
Best way to stop and restart a System.Timers.Timer
Posted by User at 7/8/2004 2:42:37 PM
Hi,
What is the best way to release all resources holded by the Timer
(myTimer from class System.Timers.Timer)?
Is it:
1- myTimer.dispose
2- myTimer.enabled = false
3- myTimer.close
I want to have the timer set to nothing so I can recreate a new one, I
want to do this in a second ste... more >>
If a() AND b() both ALWAYS execute?
Posted by PagCal at 7/8/2004 2:22:07 PM
Is this the default and expected behavior for vb.net?
'C' and 'C++' used to skip b() if a() was not true, because there was no
way the IF expression would ever be true.
For example, if you did something like:
If (NOT atEOF()) AND dataValueOK() Then
' process valid data here
ELSE
E... more >>
Breakpoint problem
Posted by Rob T at 7/8/2004 2:20:35 PM
I have an application that I've never had problems debugging in the past.
Today, I noticed that my code didn't stop at a particular breakpoint (and
yes, I know that the function executed). So I set the breakpoint earlier in
the program, and it stopped there!
So then I started to step through ... more >>
attn. VS 2005 beta testers - vote for my suggestions please...
Posted by Urs Eichmann at 7/8/2004 2:18:45 PM
http://lab.msdn.microsoft.com/ProductFeedback/viewfeedback.aspx?feedbackid=1fe1f257-df20-4700-ac92-c2a2e862c4d7
http://lab.msdn.microsoft.com/ProductFeedback/viewfeedback.aspx?feedbackid=d9482d01-ec71-44ba-9d10-34167ec9d78e
http://lab.msdn.microsoft.com/ProductFeedback/viewfeedback.aspx?feedbackid... more >>
Winsock Control for VB.NET
Posted by John at 7/8/2004 2:15:50 PM
Hello,
I currently have Visual Basic .NET 2003 Standard Edition. I would like to
develop a standard exe which should use the Winsock Control for VB.NET. I
found some tutorials about it, started to work, and then found out I
couldn't find the winsock control at all. Is it there by default and a... more >>
Oracle 9i & Windows Service Program Error
Posted by irreverence2381 NO[at]SPAM hotmail.com at 7/8/2004 1:59:26 PM
Hello,
I have 2 classes that work great as a windows app to retrieve and
process data from an Oracle9i db. When I implement them in a Service
program running as Local System, it fails on the .open. I am using
OLEDB for Oracle 9.2.0.4. I have verified the Oracle Client install,
Local Sys' path... more >>
Saving values in a text box?
Posted by Anon at 7/8/2004 1:31:14 PM
Hello All!
I was wondering how I can go about saving the last string entered into a
textbox. I would like to save username or pwd info in textboxes in my forms
so that users don't have to continually type them!
Thanks!
Luis
... more >>
Master and Detail rows on one Datagrid
Posted by Harry Quazy at 7/8/2004 1:18:39 PM
I have a datagrid that I bind to a dataset with two
tables. Those two tables have a relationship created, so
the datagrid now gives me an option to expand the row,
click on the relationship name and view the details. I
want to know if it is possible to have the datagrid
display those det... more >>
MDI Forms Question
Posted by Richard at 7/8/2004 1:15:12 PM
Hi,
I have an MDI parent form with an MDI child form. On the MDI child form I
have a button which will eventually open a new form. How can I open this
new form from within the child form and make the new form an MDI child form
of my MDI parent form. I hope this makes sense?
Many Thanks
... more >>
Crystal reports question - expounded
Posted by Brad Allison at 7/8/2004 12:08:02 PM
Okay, after spending the past 4 1/2 hours trying to figure this out I am
getting some answers but I am also getting very frustrated. And again, if
this is the wrong forum to post to I apologize.
Why can I not use Crystal Reports to show data from a simple dataset?
The problem I have is that... more >>
Simple but helpful VB.Net examples.
Posted by BrianDH at 7/8/2004 11:49:02 AM
http://www.wizkil-webs.net/NET/DotNET_Code_Samples.htm... more >>
Compiler errors because project is in 2 solutions
Posted by Just Me at 7/8/2004 11:48:03 AM
I beleive it is because I have some projects in more than one solution that
I develope the following type of errors.
Can anyone tell me how to avoid this or what to do when it happens?
Thanks
A failure occurred while attempting to start the compilation.
Warning: The dependency 'CsLibr... more >>
Combobox in a Datagrid
Posted by simchajoy2000 NO[at]SPAM yahoo.com at 7/8/2004 11:23:50 AM
Hi,
I know there are a lot of postings out there concerning this subject
already, but so far I have not discovered anything that meets my
specific needs. Everything I have found populates the combobox column
with values from a database. I need to be able to manually set these
values in my c... more >>
Application instance
Posted by T Cordon at 7/8/2004 11:22:32 AM
How to determine if another instance of the application is running so that
ir doesn't run multiple instances?
Thanks
... more >>
Stupid posting web data question #2
Posted by KC at 7/8/2004 11:19:21 AM
How would I post data from a listbox that allows multiple selections? How do
you join the name/value pairs for the posted data?
And for extra credit: Where is a page posting to when there is no "action"
in the form tag? It just says '<form method=post>'. I didn't think you could
do that, but t... more >>
Simple Dataset Question
Posted by Rich Wallace at 7/8/2004 11:10:10 AM
I know datasets have been beaten to death in here, I have what is hopefully
a simple question about the integrity of a dataset when used in an
application.
Scenario:
User A and User B are updating data in a SQL database via an application
that utilizes a dataset, dataadapter and datagrid.
... more >>
Q: For Each loops
Posted by Geoff Jones at 7/8/2004 10:46:31 AM
Hi
Suppose I have a For Each loop, for example,
For Each x As DataRow In drMyData
' Do stuff - calculation 1
' Do more stuff - calculation 2
' and even more stuff - calculation 3
Next
If after completing calculation 1, I discover that there is no point doing
calculations 2 and 3, how d... more >>
Formatting String
Posted by Robert Manookian at 7/8/2004 10:36:54 AM
How do you format strings? i.e.
In VB6: Format("AB34567", "@@@@@-@@") = "AB345-67"
In .Net: ????????
... more >>
Parse positions in a long string inside text file?
Posted by Anon at 7/8/2004 10:04:42 AM
Hello All!
I have a long string that I need to make sense out of. I have the
documentation about what info is between which characters, I just need to
somehow parse each 94 character string into it's own section and from there
be able to identify what info is in positions 8-11 or 12-24 etc...
... more >>
Finding a list of SQL Servers
Posted by Craig G at 7/8/2004 10:04:03 AM
without using SQLDMO
is there another way, i've used the SQLDMO way but have had a few issues
with it.
is there another way?
Cheers,
Craig
... more >>
DTS pkg VB6 to VB.Net problems - Sql Srv2000
Posted by Rich at 7/8/2004 9:36:49 AM
Hello,
I created a DTS package VB6 script with DTS from Sql
Server 2000. In a vb.net project I add a reference to
Microsoft DTSpackage object library and copy the code from
the DTS script to a module in the vb.net project. The
following lines of code are a few of the lines with syntax
... more >>
newbie Crystal Reports question
Posted by Brad Allison at 7/8/2004 9:14:36 AM
Okay, I am totally green to Crystal Reports, however I do have the general
concept of how the reports work.
I have a dataset being filled by a parametized data adapter, however when I
run the call to open the Crystal Report viewer, I have a dialog box appear
that wants me to logon to the datab... more >>
Printing directly to specialized LPT1: device in VB.NET
Posted by Tom at 7/8/2004 8:50:44 AM
I am converting an old application that was printing directly to a
specialized printer device (i.e. a special label printer). It was doing this
by opening a file with the file path of 'LPT1:' and then using PRINT # to
print directly to the printer device.
Obviously, this is not going to work u... more >>
sort array of filenames by create-date
Posted by Jurgen Oerlemans at 7/8/2004 8:46:51 AM
Hello,
I created an array of files in a directory by doing a:
Dim FileArray As String() = IO.Directory.GetFiles(QueueSource, "*.Q")
My question is: How can I sort this array on the create-date of the files?
Best regards, Jurgen Oerlemans
... more >>
g.drawstring() string going out of page
Posted by Bauer at 7/8/2004 8:29:00 AM
I am new to GDI+.I am drawing a string on the Win form
using GDI+. My string content is long and it does not
have any "vbcrlf". The whole string is displayed in a
single line and is getting truncated. Can anyone tell me
how to take the win form bounds and display the long
content on multip... more >>
architecture options
Posted by Mike Downey at 7/8/2004 7:47:30 AM
I have a vb6 application that uses DAO and access database.
I would like to create a upgrade to this product that does the following if
possible:
I want to have an application that will run both locally on a LAN/WAN/VPN
and an application that runs across the internet like a webpage.
If I p... more >>
Print Status Dialog box - how to get rid of it???
Posted by rbrown NO[at]SPAM edium.com at 7/8/2004 5:32:10 AM
Hi.
When I send a myprintdocument.print a plain looking Printing status
dialog is displayed on the screen.
I have created a Label Printing program for our warehouse where there
might be 200 or more 6x4 inch labels printed in one go. Each label is
a page, so I have my own "status" I want to ... more >>
Email through SMTP
Posted by mamatha at 7/8/2004 3:53:55 AM
?????????????????????????????????????????????????????????????????????????=
?????????????????????????????????????????????????????????????????????????=
?????????????????????????????????????????????????????????????????????????=
????????????????????????????????????????????????????????????????????????... more >>
Setting the datatype of a new column in a dataset
Posted by Geraldine Hobley at 7/8/2004 3:41:01 AM
Hello,
I have added a new row to a dataset as follows:
MyMasterTable.Columns.Add("Total")
Even though I convert it's value to decimal using ctype, it is not displayed using the £ symbol in my bound grid.
I have the format of the specified column set to "c2" in the grid also.
Eve... more >>
How to find whether an Image is Color or b/w
Posted by Chellapa at 7/8/2004 1:57:41 AM
For my ImageProcessing Application i need to find whether
an Image is Color or B/W through code for GrayScale
automation purpose, Iam using vb.net and photoshop for
developing the application.
Image Format is PNG
Can any one help in this regard.
Thanks,
Chellapandian.S... more >>
Help with hiding LinkButton in DataList
Posted by News at 7/8/2004 1:19:26 AM
Hi,
I need help with datalist and linkbutton.
I need a LinkButton to be visible in datalist only on the condition when
datafield "is_measure_customchecklist" in a db table set to true.
Here is the code (in parts):
<asp:DataList id="dtl1"
runat="server"
DataKeyField="program_id"
OnItemC... more >>
|