all groups > vb.net > july 2004 > threads for friday july 30
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
vlookup in visual basic
Posted by Rebecca at 7/30/2004 8:00:46 PM
could someone tell me the correct syntax for using vlookup
in visual basic... more >>
Array length = 100 should be from 0 to 99 ?
Posted by User at 7/30/2004 7:17:39 PM
Hi,
This is very basic, It may be a repost, if so I'm sorry.
The problem is that this declaration :
Private strMyArray(100) As String
will create an array of string with a length of 101, but the length
should be only of 100 (0 to 99).
Is there a setting in VB.NET to enable arra... more >>
cannot create a child list
Posted by Agnes at 7/30/2004 5:07:09 PM
Please be kind to take a look
dsSeaInvInfo.Clear()
daSeaInvInfo.SelectCommand = New SqlCommand
daSeaInvInfo.SelectCommand.Connection = conSea
daSeaInvInfo.TableMappings.Add("Table", "invoiceheader")
daSeaInvInfo.SelectCommand.CommandText = "select * from
... more >>
WMI for Printer Status??
Posted by Harry Simpson at 7/30/2004 5:00:31 PM
I'm trying to grab printer status for a printer with WMI
I got a mo("PrinterState").tostring of "128" for a paused HP printer. What
is "128" equate to? It did give a mo("PrinterStatus").tostring of 1 =
"paused" which was correct but it took a while to display the correct state.
When I un-pa... more >>
WM_CLOSE
Posted by Steven at 7/30/2004 4:56:40 PM
Hello,
Does anyone have any code that will catch a WM_CLOSE message (or any
window message) sent to another application?
TIA,
Steve
... more >>
RichTextBox cursor
Posted by Nathan at 7/30/2004 4:43:47 PM
In a RichTextBox, how do you get/set the current location of the blinking
cursor (not the mouse cursor)?
Thanks
... more >>
Public vs Friend
Posted by Dennis at 7/30/2004 4:17:02 PM
I have read and re-read VB.Net's help on scope of variables but darned if I can understand the difference between Friend and Public variables?
--
Dennis in Houston... more >>
datagrid binding problem
Posted by mark at 7/30/2004 3:35:02 PM
What I have is three forms. Form one with buttons 1, 2 and 3; and forms 2 and 3 with datagrids.
Button 1 populates arrays a(i,j) and b(i,j) with values.
Button 2 creates a datatable containing the a(i,j) array then adds that table to a dataset
which is in turn bound to a datagrid in an instan... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Setting MDI Child Form location programatically
Posted by Tom at 7/30/2004 3:32:21 PM
I want to be able to 'make' a MDI Child Window appear at the same place in
my MDI container. For example, maybe I want this Child window to always
appear at Top=0 and Left=0; or, when the user exits my Child window, I save
the last location for that window, and then when the reopen the window I
... more >>
Component in Toolbox
Posted by BluDog at 7/30/2004 3:16:08 PM
Hi
I have a component that inherits from TreeView, my project is a
standard exe. How do i get the component into the toolbox for use
within the project?
I find that only controls based on UserControl apear there
automatically, therefore if i set the component to inherit from
UserControl it... more >>
web hosting
Posted by Edward Bird at 7/30/2004 2:49:00 PM
Hi,
I've written an application in VB.NET and SQL Server and want to port it
onto the internet. What is the best way of going about this?
I would like to run my own server from home? Is this possible? Can anyone
recommend a book/article on how to do this?
Alternatively can anyone recommen... more >>
.NET clarification of terms
Posted by Daniel Klein at 7/30/2004 2:42:39 PM
A recent answer to a post I just made (and a good answer it was) brought up
a question that I found I was not clear on, and I'm sure other .NET'ers
would like to know as well.
What, exactly, is an assembly and how is it different from a 'solution'?
Is it that a 'solution' can contain many 'a... more >>
Open File Dialog
Posted by Simon at 7/30/2004 2:28:54 PM
Does anyone know what is the control that appears at the top of most Open
File dialog boxes (the one next to the "Look in:" label)?
Thanks
... more >>
How to office ?
Posted by Jarod at 7/30/2004 1:27:01 PM
Hello
Where I can get some manuals ( with examples :) how to program with office ( vb.net of course ). So let's say I need to do something about the attachments... I found somewhere in books that I need to add reference to office outlook... But why it's not in MSDN... ( maybe it is somewhere ). But... more >>
DataTable Processing
Posted by Fred Nelson at 7/30/2004 1:24:51 PM
Hi:
I have built and loaded a datatable with three columns and defined the
first as a primary key as below:
' define datatable
dim fvtable as new DataTable
dim fvrow as DataRow
fvtable.Columns.Add("fvident", GetType(String))
+ two more columns
' define primary key
DIM PrimaryKeyCo... more >>
calling a control at runtime
Posted by SL at 7/30/2004 1:17:44 PM
I have a packaged control that I want to work off a button. How do I call
it from btn_click()
For example:
Private Sub controlA_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles controlA.Click
End Sub
Private Sub btnControlA_Click(ByVal sender As System.Object, B... more >>
Usage of the "New" KeyWord
Posted by Sam at 7/30/2004 1:17:28 PM
Hi everyone
Could anyone help me understand the usage of the "New" keyword I'm new to
VB.Net.
1. Why do we use the "New" keyword on some object type variables such as the
myPen of the example below and not with the bgColor. Both the Pen and Color
are objects
Dim myPen As Pen = New Pen(... more >>
Menu Items Leaking
Posted by Rich B. at 7/30/2004 12:39:39 PM
I have an MDI form with a single child form. I have found a couple of
circumstances that appear to cause the framework to leak Int32s, MenuItems,
MenuItemCollections and sometimes TRACKMOUSEEVENTs. This happens if I
disable/enable a menuitem, add a new menuitem programatically or click on an
e... more >>
Class file is destroyed
Posted by Bob Day at 7/30/2004 12:33:08 PM
Using VS 2003, VB.net, MSDE...
I opened up a large class to see the following on my screen:
]¢£:$W¸
º¾~'ï¢Û½©,Ö·¥f¿í$bön#
i¥k<~I1Í'Ñ
¢Vôú?¨iâ*Z:QdÝsØô²iOOÑ.f±ÁaQ@ç,>]¦Në
®¬Q{>\#·5²W?¤G?T^ÂiÝ{ú6¾ès¶ëPT6Ô«qí-å%
nE>aÌ .;îº"îÎÈ¿Kõ J'u%T.¸'+MmNð!û#É]¦µÉlüS^
ÿb Ëè%Ú¥... more >>
Installation problem with .Net 2.0 beta
Posted by vbMark at 7/30/2004 12:10:00 PM
No one is answering my post in the beta newsgroup so I'd thought I'd try
here.
This is in regards to Visual Basic .Net 2005 Express Beta running on XP
Pro.
After the download and after the installation bar goes all the way to the
end, a message box pops up saying: Error occured during se... more >>
Loading external program
Posted by Aaron Bellante at 7/30/2004 11:51:28 AM
I can't find the syntax I need (I'm new to VB) to load an external program
from mine. Basically, I just want to load a PDF when I click on an image in
my program.
Any help would be great.
... more >>
Crystal Reports Viewer + progress of report generation
Posted by Brian Henry at 7/30/2004 11:34:24 AM
Is there any way to get the status of a report being generated by the
crystal reports viewer control? I have a report that takes up to 10 minutes
to run and it looks like it's just jamed while this happens... I'd like to
build a status window to show the progress as a percentage or something, but... more >>
SPEED QUESTION
Posted by Agnes at 7/30/2004 10:58:55 AM
In my form load()
Dim daSeaInvoice As New SqlDataAdapter("select * from InvoiceHeader ;select
* from invoicedetail, conSea)
dim myDataSet as new dataset()
daSeaInvoice.fill(mydataset).
As I got over 50000 records in invoiceheader and over 200000 record in
invoicedetail
It seems quit slow t... more >>
Block spam from your inbox
Posted by Richard Tappenden at 7/30/2004 10:51:12 AM
Tired of getting unwanted emails in your inbox? Emailkey.com offer
protection for up to 3 existing email addresses for less than £1 per month.
The solution includes spam checks to identify spam mail, accepted and
blocked lists to enable you to control who you receive messages from,
Challenge/Re... more >>
Datagrid Column Forecolor
Posted by Carl Tribble at 7/30/2004 9:59:56 AM
What is the best way to make all the text in a specific column in the
datagrid appear Red?
Thanks,
-Carl
... more >>
AndAlso & OrElse
Posted by Raterus at 7/30/2004 9:59:06 AM
I kinda just stumbled across these operators, they seem great, as you =
can forget the second expression depending on the result of the first, =
but are there any cons to using these?
From my viewpoint it seems I can pretty much to a find / replace on my =
existing code and pick up a performan... more >>
DLL files location
Posted by Ivan at 7/30/2004 9:45:59 AM
Hi All,
i found that all the referenced DLL files should be in the same folder of
the execute file
what can i do if i want all referenced DLL files located in a different path
to the execute file??
Thanks,
Ivan
... more >>
VB.Net 2003 and VS 2005 not working together
Posted by David L Wright II at 7/30/2004 9:35:54 AM
Does anyone know when building a msi file under VB.Net 2003, it would try to
install something from the VS 2005 Beta 1? I have both products installed.
Thanks,
... more >>
VB.NET Chat Application
Posted by Jay Esguerra at 7/30/2004 9:30:46 AM
Does anyone know where I can start to learn how to develop and chat
application. Suggestions or url?
... more >>
When to set object references = nothing
Posted by Mike Eaton at 7/30/2004 8:57:03 AM
Hi all,
What do people regard as the best practice with respect to freeing object references when you're done with them? Some people I've worked with in the past suggested that if you create an object with "New" then you should free/set it to nothing when you're finished with it, regardless of w... more >>
StreamReader refuses to let go of file
Posted by dc NO[at]SPAM yachana.se at 7/30/2004 8:52:40 AM
I have an winform application that uses System.IO.StreamReader and
Serializer.Deserialize to load some data from a file, if any error is
detected in the file a new file should be written to the same
directory, I use a StreamWriter and Serializer.Serialize to do this.
The problem is that when the... more >>
Help With Setting Permissions on Folders
Posted by Jeremy Winchell at 7/30/2004 6:55:02 AM
I have an applications that imports new AD users. It creates a folder to store the user profile information, and a folder for their home directory.
I would like to set the Permissions on these two folder objects, but I am unsure how. I am fairly new to this side of things so I'm looking for som... more >>
Restricting access to Public Sub New()
Posted by Daniel Klein at 7/30/2004 5:57:42 AM
I have a situation where I need to prevent just anyone from instantiating a
particular class. The class is instantiated via certain methods from other
classes in the solution, but those are the only classes/methods allowed to
do this.
How can I prevent all other classes from creating a new ins... more >>
Clear the command window
Posted by Art at 7/30/2004 5:57:01 AM
Hi,
I use the command window a lot while debugging. It just keeps accumulating everything I type in there. Is there a way to clear it without closing visual studio?
thanks,
Art... more >>
How do I create/access an INI file in C#.NET? I
Posted by venkatesha R at 7/30/2004 4:18:18 AM
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!... more >>
Concept Help
Posted by scorpion53061 at 7/30/2004 4:11:31 AM
Hello,
I have been asked to write a program and allow the end user to create
custom fields in a SQL Server database in addition to the premade
fields.
I understand how to add the column, the data type and such.
My question is I need to accommodate the added forms in some sor... more >>
match a blank line with RegEx
Posted by JackRazz at 7/30/2004 3:44:56 AM
Anyone know the regular expression to match a blank line where the byte sequence is
"0D 0A 0D 0A"
ive tried "\r\n\r\n+", "^$+" "\n\r" with no success. Any Ideas?
Thanks - JackRazz
This is the code fragment I'm trying
Dim r As Regex, m As Match, i As Integer
Const matc... more >>
Control array in vb.net
Posted by samean at 7/30/2004 2:30:22 AM
Please show me
Control array in vb.net
Thanks... more >>
Loop Control array
Posted by samean at 7/30/2004 2:13:54 AM
Hello,
Could you explain me,In VB6 using control array,and how
about VB.net.
Thanks... more >>
How to set null date to DateTimePicker?
Posted by AA at 7/30/2004 1:44:38 AM
Do anyone know how to set null value to DateTimePicker control?
I want to not displaying any date on the DateTimePicker, is it possible?
Thx in advance!
Richard
... more >>
REGEX problem
Posted by kijak2004 NO[at]SPAM yahoo.dk at 7/30/2004 1:16:22 AM
Hi,
Im just starting working with REGEX and got a few problems. Could you
tell me how to test if two strings can be found in another. ei:
String to test: "This is a great car you got"
Look for: "great" AND "car"
and what about upper case
String to test: "This is a great VOLVO you got"
... more >>
Browsable attribute
Posted by Beeeeeeeeeeeeves at 7/30/2004 12:55:01 AM
If I put the browsable attribute on a property of a component, it makes it appear in the properties browser for instances of that component. But does this only apply to properties, or can I do it with a field aswell (i.e. just a public variable - that doesn't have get/set accessors)
It doesn't se... more >>
Creating Control tutorials?
Posted by Lars Netzel at 7/30/2004 12:48:12 AM
Hello!
I don't really know what the right word is, but if I would to create a
control sort of like a Textbox, what is that called and does anyone have a
good link or know a good way of starting to learn how to do this?
I started looking at a User Control but that did'nt seem like the right
... more >>
Newline in body text of e-mail message using mailto
Posted by Paul Bromley at 7/30/2004 12:13:04 AM
I am using mailto to open the default e-mail program on the users machine
using the following function code snippet that I found on th web.:-
Public Function OpenEmail(ByVal EmailAddress As String, _
Optional ByVal Subject As String = "", Optional ByVal Body As String = "")
As Boolean
Dim bAn... more >>
|