all groups > vb.net > february 2004 > threads for thursday february 5
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
What is the best way to sort a Web Forms Listbox as new items are added?
Posted by Joe Fallon at 2/5/2004 11:21:01 PM
I have 2 listboxes on a Web Form.
As I move an item from 1 to the other it shows up at the end of the list.
How can I sort the list that just got the new item added to it so it is in
alphabetical order?
--
Joe Fallon
... more >>
writing array to binary file
Posted by tim at 2/5/2004 8:36:07 PM
i have an array of bytes which i write to a binary file
seems to me the only way is to write one element at a time, which takes *forever
is there a way to write the entire array to the binary file without looping
something like
binarywriter.writeEntireArray(arrayOfBytes
would be perfect!
... more >>
AS400 Rollback does not work !
Posted by Mohan at 2/5/2004 8:36:05 PM
I had tried OLEDB (IBMDA400) with .net for Transactions. Transactions are not supported at all with OLEDB and AS400. Now I am trying ODBC.NET for transaction. Rollback does not work with ODBC.NE
Can anybody help? If Transactions are not supported also in ODBC.NET , how to lock records and execute ... more >>
SOME VB.NET QUESTIONS
Posted by tilak.negi NO[at]SPAM mind-infotech.com at 2/5/2004 8:27:57 PM
Q1. In ADO we have RecordCount Property of the RecordSet object. In
ADO.net what is the Replacement of RecordCount property?
Q2. How to create Hotkey in Tabcontrol of Visual basic.net.
Q3. If code is written in the control's validate event and next
control's causes validation is False.Now if... more >>
any good guides on sockets programming w/ VB.NET?
Posted by Sougato Das at 2/5/2004 8:17:15 PM
Does anyone know any good places for information on sockets programming
using VB.NET. I know VB.NET fairly well, but I know very little about
sockets. Thanks.
... more >>
Terminating a VB.Net App
Posted by Al Reid at 2/5/2004 7:14:00 PM
What is considered the best or most appropriate to terminate a VB.Net
application?
Application.Exit?
End?
... more >>
Nested exceptions example
Posted by Chris Leffer at 2/5/2004 6:55:04 PM
Could anyone shows me a simple example of nested exceptions handling on
vb.net? Or any articles that explains this concept, since I am getting
difficulties to see when/how to use nested exceptions.
Regards,
Chris Leffer
*** Sent via Developersdex http://www.developersdex.com ***
Don't... more >>
Datagrid/Format Bug
Posted by Ed Bick at 2/5/2004 5:49:52 PM
I am formatting a bound grid. No problem there, does what I expect it to.
However, if I click on it a certain number of times, or in a certain
sequence, the program crashes. I can't capture the event. If I put a
breakpoint on the Grid Click event, the crash occurs BEFORE it even hits
that. O... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Busy Cursor
Posted by Ed Bick at 2/5/2004 5:47:20 PM
Here's an easy one, I'm sure. In VB6 I would do MousePointer = vbHourGlass.
How do I do this in .Net?
... more >>
Why doesn't this INSERT work please?
Posted by Trint Smith at 2/5/2004 5:37:49 PM
Dim conn As New SqlConnection
conn.ConnectionString = "Password=angiep;Persist Security
Info=True;User ID=trint;Initial Catalog=tribidz;Data Source=TRINITY"
Dim cmd As New SqlCommand
With cmd
.Connection = conn
End With
... more >>
Replacement for IsNumeric??
Posted by Howard Kaikow at 2/5/2004 5:37:07 PM
Does VB .NET or the framework include a function/method that correctly
identifies the following as not being numeric?
3,6
3,,6
Assuming the decimal mark is Full Stop.
And, if the decimal mark is COMMA:
3.6 and 3..6 would be invalid
--
http://www.standards.com/; See Howard Kaikow's... more >>
Can the timer be used to submit a web page?
Posted by Matthew Speed at 2/5/2004 5:31:05 PM
I want to make a page that automatically refreshes every minute. I
can drag the timer control onto my page but I can't figure out what
code to write to tell the page to postback to the server. How do I do
this?
TIA... more >>
Delete/cancel all print jobs
Posted by kerpal at 2/5/2004 5:05:31 PM
Hi all,
How can I delete or cancel all the jobs on a printer??
Printer.KillDoc only deletes the current document being printed.
And this may be a dumb question to ask... I suspect that I can somehow use
the EnumJobs to cancel each job one by one but I don't really understand how
to work with ... more >>
arraylist contain
Posted by Bob at 2/5/2004 4:40:00 PM
Hi, guys
Dim myAL As New ArrayList()
myAL.Add("Monday")
myAL.Add("Tuesday")
myAL.Add("Thursday")
I want to check whether the first 3rd letters of myAL contains "Thu". Is
there an existing function I missed, as myAL.Contains("Thu") returns me
false?
Thank... more >>
.toString() Ctype(), cstr(), DirectCast() ?? Which to use?
Posted by Michael Ramey at 2/5/2004 4:39:37 PM
Hello,
There are quite a few ways to convert one object, say an integer to a
string.
Dim myStr as string
dim myInt as integer = 123
myStr = cstr(myInt)
myStr = myInt.toString()
myStr = CType(myInt, String)
or use DirectCast()
What is the preferred, fastest way? Any way I shouldn't ... more >>
Detecting Tab Key
Posted by Charlie at 2/5/2004 4:21:07 PM
How do I determine if the user has pressed the tab key? The Keypress and Keydown events fire for other keys, but not the tab.... more >>
Push/Pull updates to user
Posted by thorung NO[at]SPAM mailcity.com at 2/5/2004 4:20:36 PM
Hello
Can anyone offer some information or resouces on how to push
application updates and patches to users? Currently all users are
within an internal office network. I'd like to make the process of
rolling out changes easier.
Thanks for any pointers.... more >>
wininet.dll, lastdllerror=6, what does it mean?
Posted by Sjaakie Helderhorst at 2/5/2004 4:18:28 PM
Hi all,
I'm trying to create a class which handles FTP. Knowing little of classes
I'm having some trouble making things work. Also having trouble finding the
meaning of some error-codes. The code below results in a lastdllerror 6 (and
no transfer)... can't find what this error means and how to s... more >>
Passing a structure to a C dll in VB .NET
Posted by Steve Turner at 2/5/2004 3:41:08 PM
I have read several interesting posts on passing structures to C dlls, but none seem to cover the following case. The structure (as seen in C) is as follows:
typedef struct tag_scanparm
{
short cmd;
short fdc;
WORD dsf;
short boxcar; ... more >>
old ADO in VB.NET
Posted by Kovan A. at 2/5/2004 3:35:20 PM
I am having a small problem using old ADO in VB.NET (i am maintaing old code
so i cant change it back to ADO.NET)
i am trying to create ADODB.Parameters and then pass them to ADODB.Command
and it seems to fail every time
I have referenced the adodb.dll in PIA to use the old ado., and i am using
... more >>
Compiling project as dll
Posted by Brad Allison at 2/5/2004 3:28:40 PM
Somebody a while ago had told me how to compile a project as a dll file
(instead of an exe) using Visual Studio Standard edition. I remember that I
had to modify a text file but I cannot recall what the name of the text file
is.
Thank you for any help.
Brad
... more >>
Closing one form when another opens
Posted by Brad Allison at 2/5/2004 3:01:46 PM
Is there an easy way to close one form when another opens?
Thanks for the information.
Brad
... more >>
Email
Posted by Will at 2/5/2004 2:51:05 PM
Hey guys
I need a code that will allow the user to email to multiple recipients (using MS Oulook and Outlook Express) as well as allow the user to attach files (attachments) ..
NEED CODE PLEASE
THANX IN ADVANCE... more >>
Custom DataGrid nightmare.
Posted by Steve at 2/5/2004 2:41:35 PM
I am fairly new to VB.NET, and I am rewriting an application I wrote a while
back, also in VB.NET. I aplied some new things I learned. Anyway, here is my
problem.......
I have a custom DataGrid with a buttonRow that does a delete function for
me. Microsoft support helped me back then to get th... more >>
Com Interop Check List
Posted by Frank Rizzo at 2/5/2004 2:33:02 PM
I am writing a library in .net that will be used by VB6 clients.
I initially wrote the library,
generated a strong key (via sn –k mykey.snk),
added it to AssemblyInfo.vb class (via <Assembly:
AssemblyKeyFile("c:\tgol\phpclass\mykey.snk")> statement),
registered assembly in the registry (... more >>
Webclient
Posted by masoodadnan NO[at]SPAM hotmail.com at 2/5/2004 1:47:21 PM
Hello,
can anybody explain to me the difference between webclient and
httpwebrequest objects? aren't they doing samething?
I have a website, and I need to programmatically find out all the
pages that the first page referes to, and then goto those pages and
retrive some information.
Does... more >>
DataAdapter update
Posted by Ruslan Shlain at 2/5/2004 1:42:17 PM
Not sure who to ask about this so,
I have an app that grabs data from flat file and populates a dataset with
it. Then using update method of a DataAdapter I insert all that data in to
the SQL Server table.
I have a separate app, console app for now, that monitors queue table and
starts my other... more >>
Creating a new Table in Word
Posted by elziko at 2/5/2004 1:21:20 PM
I'm trying to create a new table in word from a DataTable (sourceTable):
objDoc.tables.Add(Range:=objDoc.Range, NumRows:=sourceTable.Rows.Count,
NumColumns:=sourceTable.Columns.Count, DefaultTableBehavior:=1,
AutoFitBehavior:=0)
Where objDoc is a Word.Document. However I'm always given the e... more >>
Dataconnection error messages
Posted by R at 2/5/2004 1:15:16 PM
I am new to .net but have user vb6 and in vb6 I got error messages on
everythin (that war an error..)
In .net I don't get errors when performin databare operations... the code
just exits (like exit sub)
Is there any way I could get the errormessages on this?
Ex. the line
RS23DataAdapter.Fill... more >>
Number of threads in a .NET exe
Posted by gdekhayser NO[at]SPAM clearnetwork.com at 2/5/2004 1:07:31 PM
Does anyone know how I can increase the number of threads that my
executable file will create? Right now, it max's out at 13 or 14 and
won't go higher than that, even when it's called for. I'm using a
fileSystemWatcher component (it would be great if I could find
something that works better th... more >>
Getting Available Namespaces with Reflection
Posted by Dave Wurtz at 2/5/2004 1:01:10 PM
All,
Is it possible to get all of the current namespaces that are available
through reflection? What I am trying to do is get back all of the
namespaces, then classes within the namespaces, then methods/properties
within the classes. I need each one separated - like VS.NET's intellisense.
... more >>
Unload Assembly
Posted by Danilo at 2/5/2004 12:58:45 PM
How i unload Assembly without work in separate AppDomain?
Or, if i work in separate domain How i get and set object between two domain
without declare serializable?
thank
... more >>
WithEvents question
Posted by Bob Day at 2/5/2004 12:48:21 PM
Using VS 2003, VB.NET, MSDE
If an event is raised in a class that was NOT instantiated with the
WithEvents key word, is that event effectively ignored?
Or, another way to phrase the question, for a class that raises events, can
you sometimes instantiate using WithEvents when you want to catc... more >>
SECURE way to copy parts of a file
Posted by DraguVaso at 2/5/2004 12:28:21 PM
Hi,
I need a SECURE way to copy parts of a file. I'm having files which contains
a whole bunch of records. In one 'fysical' file I'm having one or more
logical files.
What I need to do is to copy a logical file (a part of the fysical file)
into a new file. But the 'big' problem is: these re... more >>
Application.ThreadException where?
Posted by rbscheer NO[at]SPAM my-deja.com at 2/5/2004 12:23:07 PM
Hi.
I am using Application.ThreadException together with a sub to catch
unhandled exceptions on one form. My application has 4 forms. Do I
need to add an event handler for the Application.ThreadException for
each one of my forms?
Thanks,
Robert Scheer... more >>
Variant in DLL
Posted by Eric Fleet at 2/5/2004 12:21:13 PM
I have a vb 6 dll that uses a variant as one of its parameters. When I call it from vb.net executable, I get the following error: 'Variable uses an Automation type not supported by visual Basic'. I've tried casting the variable I pass to a generic object, but I still get the message
How do I get a... more >>
databinding & active row
Posted by T.Jackson at 2/5/2004 11:52:32 AM
Hi guys,
I'm new to .net & i've got a problem with regards to datasets & data
binding.
Here goes,
I've got a data grid & the active row (position) is the 3 row.
Now, i take this data set, & pass it to a seperate form, where i want to be
able to edit the details of this row.
So, in the load ... more >>
Very useful C# to VB translator -
Posted by Robin Tucker at 2/5/2004 11:41:49 AM
Hi ppl,
Quite often you get samples/examples in C# and not VB - I just found this
translator so I'm posting the link here. It seems to do a pretty good job,
you just paste in the C# to the top window and hit the translate button,
getting the VB in the bottom window. I've used to to trans... more >>
Embedded images?
Posted by elziko at 2/5/2004 10:57:37 AM
I'm trying to use an embedded image(bitmap) using the following code:
imgDrag = New
System.Drawing.Bitmap(GetType(QueryResultGrid).Assembly.GetManifestResourceS
tream("Comp.Tech.QueryResultGrid.ResultsGridDrag.bmp"))
Where QueryResultGrid is the class thats going to use the image,
Comp.Tech... more >>
CType() versus Convert.ToXXXX()
Posted by John A Grandy at 2/5/2004 10:43:49 AM
could someone please discuss the pros and cons of
CType(MyDouble,Decimal)
versus
Convert.ToDecimal(MyDouble)
.... and other such conversions ...
... more >>
Space in usernames is that OK?
Posted by Microsoft at 2/5/2004 10:19:37 AM
Hello all I am new to 2003 server and Active Directory, I want to put
spaces in the usernames for the domain users. Now my question is will that
create any problems in the future with anything like security or dot net
programming or networking?
Thanks for your help
Rob.
... more >>
get icon from application exe
Posted by Dominique Vandensteen at 2/5/2004 10:04:55 AM
I want to get the icon from my application exe file
dim myIcon as Icon = ... -> "myApplication.exe,0"
how can I do that?
... more >>
Retrieve excel column data using Microsoft office pias?
Posted by murl NO[at]SPAM cbsmemphis.com at 2/5/2004 9:49:34 AM
Is it just me or is there no easy way to open an excel file, and get
the column names that are usually in the 1st row? I would like to be
able to do this for a import tool im writing in vb.net and c#. I need
to be able to list what columns are available in the excel file, so
the user can map the... more >>
Data adapters and datasets
Posted by R at 2/5/2004 9:37:22 AM
Hi, I'm stuck, again...
I have, finally, managed to fill a dataadapter and linked a dataset to a
combo box, but, and maybe this is the problem, each time I run my code I
fill the dataset with new records. Is there a way to empty the data adapter
or shoult I rewrite my code?
Ronny
... more >>
Connecting to network problems (on startup)
Posted by Marco Castro at 2/5/2004 9:17:16 AM
I have an application that reads from an access database on our network.
I'm having a problem where the program can't find the database until the
user tries to use the network.
For example he will have to go to my computer and double click on the
network drive before the program can find it. I'... more >>
FTP
Posted by simon at 2/5/2004 9:03:38 AM
I would like to upload file to some other computer over FTP every night.
If it's not available, send email with error description.
Does anybody has some example?
Thank you,
Simon
... more >>
Displaying Date only in a combobox
Posted by John Suru at 2/5/2004 8:41:08 AM
I am loading up a combobox with data from an access database. The field I am loading is a date/time datatype. The data in the field is a short date(ex. 01/22/2004). When I load the combobox with the data it appears correct. When I click on the dropdown arrow of the combobox, all of the entries have... more >>
Changing a Structure that's in an ArrayList
Posted by Adam at 2/5/2004 8:36:29 AM
Hi all,
In my VB.NET code below, I try to change the user name in my arraylist from
Ted to Bob, but instead it adds a new user to the arraylist named Bob. Can
anyone explain why this happens and how I might modify a structure in an
arraylist without having to completely remove it and re-add th... more >>
Drag Drop question
Posted by Kevin L at 2/5/2004 7:52:36 AM
I have a Panel control that I currently allow the user to drag and
reposition on a form at runtime.
This Panel control contains a Label control.
I would like to allow the user to drag the PANEL by clicking on the LABEL
and dragging.
Is there a way to do this?
... more >>
Duplicates in a Sorted List
Posted by Tom Scales at 2/5/2004 6:17:50 AM
I've got a new problem (making progress on my GetFiles problem).
I have a need to keep a large number of entries in a SortedList. My
challenge is that there are duplicate entries in the key. That's OK for my
application, but not for a Sorted list.
Any thoughts?
Thanks,
Tom
... more >>
How can I emulate a mouse click?
Posted by Kostis at 2/5/2004 6:06:06 AM
I have the following problem.
I want to make a program that causes a MOUSE CLICK every 2 sec at a flash project that is open with Microsoft Internet Explorer.
I have heard something about using the SendMessage method but I can't get it to work. I use VB .NET.
Any help would pe appriciate
THANKS!... more >>
Creating a flat combobox within vb.net ?
Posted by tpodonnell NO[at]SPAM plls.co.uk at 2/5/2004 4:01:25 AM
Dear All,
I have spend a number of hours attempting to find some answers about
how to remove the 3D BorderStyle within a combobox and have come to
the conclusion that the simplest method is to create a user control
and hide the borders using some panels.
This however is not the most efficie... more >>
VISUAL BASIC NET STANDARD 2003 create dll files
Posted by farouqdin NO[at]SPAM hotmail.com at 2/5/2004 3:23:26 AM
I am about to purchase vb.net 2003 and would like to know whether this
allows u the facility to create activex dll files like the one in vb6.
What am trying to do is to hav vb forms in dll and call them from
access(vba).
ur views will be most welcomed.
thanks
Farouq... more >>
Browse Components
Posted by Jorge at 2/5/2004 2:17:48 AM
Hello
I finally found out why context menus don't show in
form.controls its a component!
I did a google search and someone sugested to use the
site property.
The followoing code :
Public Sub teste(ByVal f As Form)
Dim a As New System.ComponentModel.Component
Mess... more >>
CultureInfo object
Posted by John A Grandy at 2/5/2004 1:38:14 AM
what's the full class hierarchy for the CultureInfo object in effect by
default ?
... more >>
Need Urgent Replacement for the IDE
Posted by dl4gbe NO[at]SPAM hotmail.com at 2/5/2004 1:03:41 AM
Hallo,
I am in need of a replacement for the Microsoft Visual Studio .NET.
The reason is quiet simple. I develop forms which are used on
different
microsoft windows platform, and one microsoft windows platform spoils
the other microsoft windows platform. For example: I have two
projects, o... more >>
format string for currency
Posted by John A Grandy at 2/5/2004 12:42:27 AM
i thought the following would work for currency
{0:$000,000,000.00}
but it is displaying ( for example ) :
$000,025,368.87
i don't want the extra zeros ...
... more >>
GetScrollInfo and Set ScrollInfo Issues
Posted by Matthew Hazlett at 2/5/2004 12:05:37 AM
GetScrollInfo works but I can not get setScrollInfo to wrok, it reports
Error 6 (Bad Handle). I use the same handle in GetScrollInfo as
SetScrollInfo, any ideas?
Const SBS_HORZ = 0
Const SBS_VERT = 1
Const SIF_RANGE = 1
Const SIF_PAGE = 2
Const SIF_POS = 4
Const SIF_DISABLENOSCROLL = 8
C... more >>
|