all groups > vb.net > march 2006 > threads for tuesday march 21
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
Sorting a System.Collections.ObjectModel.Collection
Posted by Arthur Dent at 3/21/2006 9:51:34 PM
How do you sort a generic collection derived from
System.Collections.ObjectModel.Collection?
Thanks in advance,
- Arthur Dent
... more >>
Put the form on top of all othres
Posted by Samuel Shulman at 3/21/2006 9:27:05 PM
Is there a method to ensure that a form will be on top of all other forms in
the and applications
ShowDialog doesn't have this effect in this case
Thank you,
Samuel
... more >>
Converting vb.net book examples
Posted by Dennis D. at 3/21/2006 8:59:02 PM
Having problems converting Murach's Beginning Visual Basic.net (Prince) and
Microsoft Press' Programming Visual Basic.net (Balena) examples for use in
VB.net 2005 Express. The VS conversion wizard has not been able to convert
any of them. These are just two example sources of many. What should... more >>
UserControl Image
Posted by Meelis at 3/21/2006 8:09:41 PM
Hi
How can i set image(image what i can see on toolbox panel) from
UserControl?
Meelis
... more >>
new Interop.ADODB errors!!! Please help
Posted by Bill nguyen at 3/21/2006 7:57:20 PM
Now got more errors. I have both VS 2003 and VS 2005 installed in my
machine.
What should I do solve thsi problem?
Thanks
Bill
---------------
Error: The dependency 'Interop.ADODB, Version=2.8.0.0, Culture=neutral' in
project 'Dispatch_Advisor' cannot be copied to the run directory... more >>
vb.net
Posted by Dennis D. at 3/21/2006 7:57:15 PM
Microsoft is no longer selling Visual Basic.net Standard Edition as a stand
alone?
Is that correct, or what is happening with new versions of the stand alone
product?
Dennis D.,
http://www.dennisys.com/
... more >>
Page_Load vs Submit_Click - which one first?
Posted by Neo Geshel at 3/21/2006 7:46:22 PM
Question:
During the execution of code, which one is looked at first; the=20
Page_Load, or the Submit_Click?
My problem arises when I specify a literal in the Page_Load, and attach=20
it to the page dynamically. When I assign it content in the Submit_Click =
(say, a =E2=80=9Cupdate succes... more >>
PrintPreview problem
Posted by Chuck Gantz at 3/21/2006 6:48:17 PM
I'm using vb2005.
I wrote a simple app to view and print all the fonts on my pc.To see how the
printout will look without wasting lots of paper, I use PrintPreviewDialog.
The first time I run PrintPreviewDialog, it correctly shows five pages of
printout. If I run it a second time, it only... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Standard Registry locations affected by Virus's ,Spyware and Adware
Posted by vighnesh at 3/21/2006 6:07:45 PM
Hai All
Can anybody please tell me what are the standard registry locations that are
affected by Virus's , Spyware and Adware Programs.
Thanks in advance
Regards
Vighneswar
... more >>
System.Enterpriseservices.thunk problem
Posted by tassieboy at 3/21/2006 4:45:26 PM
Hi All
I have a VB.NET application which runs on all client machines except one,
where on startup, it gives the message
system.enterpriseservices.thunk.dll, or one of its dependencies, were not
found
I do not have a reference to this file, and I do not use enterprise services
anywhere i... more >>
How are items added to VB2003 Tools menu item
Posted by Allen at 3/21/2006 4:42:37 PM
In my VS2003 under the Tools Menu Item is an item :
"C# to VB Converter"
I don't know where it came from and want to move it to VB2005.
I've searched Program Files for file with # in its name an none of them
seems to be the source of that item.
Is it possible to retrieve the file that ad... more >>
Flashing when switching mdi forms
Posted by Simon Verona at 3/21/2006 4:38:37 PM
I have a parent form which contains a toolbar. The toolbar controls the
loading and switching to of MDI child forms.
The code for the toolbar click event and one of the subroutines that loads
and shows a child form is:
Private Sub tbMenu_ButtonClick(ByVal sender As System.Object, ByVal e ... more >>
AD DirectorySearcher problem with SearchResultCollection class
Posted by nscarnati at 3/21/2006 4:11:42 PM
I have 2 containers with objects. The veterans container contains
unique objects. Each of those objects can have 1 or more corresponding
card objects in the cards container.
VeteranCN is formatted (SSN-LastName)
CardsCN is formatted (SSN-LastName-# OR SSN-LastName-#CNFblahblahblah)
(the # is ... more >>
rounding time
Posted by cj at 3/21/2006 2:56:18 PM
I'm using
label1.text = finishtime.Subtract(starttime).TotalSeconds.ToString()
courtesy of Marina to display how long a piece of code has taken. It's
been less than a second so far but might go over. The only down side is
I'd like this rounded to a max of say 4 decimal places. It gives ... more >>
Destroying objects
Posted by Microsoft at 3/21/2006 2:44:54 PM
I am working on a VB.NET (2003) application and I am confused about object
lifetimes. I have a class of objects that are created in a manager class and
added to a collection in that class. I am not sure how to destroy an object
once it is no longer required as a part of the collection. In VB 6... more >>
ADO RowState problem
Posted by BK at 3/21/2006 2:28:10 PM
I'm going nuts here trying to figure this out. In a winform, I have a
datagrid bound to a dataset. I want to perform some database updates
when the user edits certain fields of data. Consider the following
code:
If
Me.DsEventLineItemsView.Tables(0).Rows(Me.LastCell.RowNumber).RowState
= D... more >>
DataSet DataType
Posted by Meelis Lilbok at 3/21/2006 2:13:53 PM
Hi
Still cant resolve problem, how to get datatype and properties for field.
If if fill DataSet from SQL Database how can i
a) Get DataType for specified field
b) Get Allow null (if i read AllowDBNull this returns always True)
Regards;
Meelis
... more >>
Object variable or With block variable not set
Posted by Neo Geshel at 3/21/2006 2:11:02 PM
I am trying to deal with an image in code-behind. I consistently get the =
following error:
Server Error in '/' Application.
Object variable or With block variable not set.
Description: An unhandled exception occurred during the execution of the =
current web request. Please review the st... more >>
list box to combo box
Posted by Shaggycat at 3/21/2006 2:09:15 PM
Hello there,
How do I set up a listbox with three values in date format 2/24/06, 2/27/06,
and 2/28/06 where the user selects one and populates a combo box using a
directory list?
For example, user clicks on 2/27/06 in the listbox, code goes to a folder in
a directory (not access or sql) ... more >>
MSCOMM.OCX and Exception from HRESULT: 0x800A1F52
Posted by Recep_TARAK=C7I at 3/21/2006 1:39:46 PM
hi everbody
i am using visual basic 2005. i am write a modem control program and
get callerID value. i am send a AT command to modem.
Dim mscomm1 As New MSCommLib.MSComm
mscomm1.CommPort = 3
mscomm1.PortOpen = True
mscomm1.Output = "AT#CID=1"
mscomm1.Output = "AT%CCID=1"
mscomm1.Out... more >>
sql question
Posted by Nikolay Petrov at 3/21/2006 12:15:59 PM
I have three really small tables, which gave me a lot of headache.
They reside in a MS Access database and a I am accessing them through
ADO.NET(VB).
Can't figure out how to make a "Select" query on them.
These are the tables:
1St - "Transactions"
TransactionID - primary key, autogen
Transact... more >>
Menu images.
Posted by Tull Clancey at 3/21/2006 12:06:12 PM
Hi.
I have an application with several menus, see last post, still not resolved.
I have another problem....
The menus have been created using the menu editor, I can't find a way to add
icons to the menu items. I can find examples of creating the menus is code
and assigning icons, but n... more >>
Name 'ImageUpLoad' is not declared
Posted by Neo Geshel at 3/21/2006 11:27:15 AM
Greetings.
I have a file upload form. I have a file upload input, with its ID set=20
as ImageUpLoad. When I try to submit the form, I get
Name 'ImageUpLoad' is not declared
This is the line causing the problem:
Dim imgStream As Stream =3D ImageUpLoad.PostedFile.InputStream
In every e... more >>
Ternary Operator?
Posted by Arthur Dent at 3/21/2006 11:10:42 AM
Hi all, im just curious if anyone knows.....
With .NET 2, VB didnt happen to get a true ternary operator, did it? Stuck
away in a corner somewhere?
By ternary, i mean something like C's a?b:c syntax.
IIf works in most cases, but in some instances you want to use expressions
which may fail if... more >>
Excel lib reference included in proj - why Excel obj not recognize
Posted by Rich at 3/21/2006 10:42:02 AM
Hello,
I need to open an Excel workbook from my vb.net app. I made a reference to
the Excel com object model (Office 2003) - Excel library 11.0
But when I try to write code - I don't see Excel in the intellisense
dropdown. Do I need to include an import statement?
Dim xl As ???Excel... more >>
CDO Email Syntax Question
Posted by JNariss NO[at]SPAM gmail.com at 3/21/2006 10:18:28 AM
Hello,
I finally figured out how to get my form to its database and have an
email come my way. However I am now trying to set up the body of the
email to include the form details. However the body of the email that
is sent only includes the last line of the "body" tag and has no
details next ... more >>
Single instance application
Posted by Marco at 3/21/2006 8:56:23 AM
I should mention that this is for VB2003.
I need to make sure that only one instance of my application is running at a
time. I already have some code that does this and it does work but I ran
into a problem. Here is the code. It returns true if the application is
already running.
If
... more >>
Save text stream as binary in database
Posted by Jon at 3/21/2006 8:31:50 AM
I have a sql table that hold binary files as blobs. Our customers store
attachments for their work orders in them, anything from xml files to zip
files. Normally, these files first exist on the hard drive and are converted
to a byte array and saved to the database in an image type field.
Fo... more >>
Whats new in .NET 2.0 for VB?
Posted by Brian Henry at 3/21/2006 8:04:20 AM
Is there a listing out there anywhere that lists what is new in .NET 2.0
mainly in VB? I've seen simple lists like oh we have all these new controls,
but I want a class list and such also. thanks!
... more >>
static methods
Posted by Mark at 3/21/2006 7:19:38 AM
Is that true you can't have a static method in VB.NET?
Public Static Sub Initialize() -- ???
thanks
Mark... more >>
ADO.NET (Clear some things up for me)
Posted by aziz001DETESTSPAM NO[at]SPAM googlemail.com at 3/21/2006 3:59:55 AM
I've been following some tutorials and reading books and have a basic
grasp of the fundamental ADO.NET commands. But all the books I've read
use a database with only 1 table. My database has many, so:
1. I know there is 1 OleDbConnectino object variable per database
file, but is there one dat... more >>
Number and bit
Posted by diego at 3/21/2006 12:40:39 AM
hi all,
255 and 1 = 1
255 and 2 = 2
256 and 1 = 0
how can i get the coorect result for values greater than 256
i hope you understand what i'm getting at.
thanks in advance
diego
... more >>
Q: closing a form
Posted by G .Net at 3/21/2006 12:00:00 AM
Hi
I'm soooo sorry but I've had to re-post this message again. I have no idea
what has been happening but for some reason I couldn't seem to be able to
see messages that I'd posted earlier.
My question is this - how can I determine if a user clicked the cross in the
top right of the form... more >>
|