all groups > vb.net > march 2004 > threads for monday march 22
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
.NET equivalent to VBA?
Posted by Chris Podmore at 3/22/2004 11:46:05 PM
Is there a .NET equivalent to VBA or should I use VBA
Our application allows user to define a "script" on how a telephone call should be taken. There are some built in functions that the user can call from the "script" but I would like to build in the facility to define their own code that can acce... more >>
Problem With Code
Posted by WStoreyII at 3/22/2004 10:27:03 PM
when ever i run this code i get an error messager saying=20
Object reference not set to an instance of an object.
Deck.Collection.Add(Index, Me)
but it is set to an instance in the collection property of the deck =
class=20
what am i doing wrong?
by the way this is my project for PHase 1... more >>
Path access denied - Error no 5
Posted by Mick at 3/22/2004 10:07:08 PM
I'm new to VB.NET (and Windows progamming in general) and am writing a small
program which allows the user to select a directory with or without
subdirectories and perform a series of automatic actions through scripting
in Photoshop on the files in the directories. I am using
Directory.GetFiles(... more >>
Constructor Parentheses
Posted by Matthias at 3/22/2004 10:06:09 PM
Hi Tea
When creating an object instance like thi
Dim foo As New clsBar(
the current VB.NET documentaion says that the parentheses are optional if there are no constructor parameters
In version 2002 Visual Studio it will always insert the parentheses if you forget them, however, more annoy... more >>
Reading/writing a binary file with lots of files inside
Posted by Andre Nogueira at 3/22/2004 9:45:30 PM
Hi there.
I need to create, in Visual Basic.net 2003, a program that is able to read
and write a file that contains other files inside - XML files, images and
mp3 files.
Imagine a Powerpoint presentation, where images and text and music are all
written inside the .ptt file.
How can this be ... more >>
POP & SMTP using VB.NET
Posted by Sunil Jagadish at 3/22/2004 9:04:45 PM
How do I connect to a POP & SMTP server using VB.NET? Can anybody help me
out with some snippet? The objective is to build a mail client (with all
basic features) for a specific purpose.
Thanks in advance.
... more >>
am trying to run some jar files within a .bat file in a .Net environment.
Posted by Harold at 3/22/2004 9:01:09 PM
Hi all
Hope this is the right Forum..This is my first post.
Here's my predicament.
I am trying to run some jar files within a .bat file in a .Net environment
I have the JRE installed and everything is fine there
The bat file works as intended when run double-clicked but when invoked from withi... more >>
study_hall
Posted by Reynold DeMarco Jr at 3/22/2004 8:35:42 PM
Hello all,
I am starting a new yahoo group for college students earning a degree
in Computer Science. Some times when you post to groups like this one
the reply is I won't tell you because you are a college student and
you should learn. Unfortunately this does not help us learn but just
frust... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How to drag the selected text from a textbox?
Posted by John Smith at 3/22/2004 7:31:05 PM
How to drag the selected text from a textbox?
I know how to drag the full text from a textbox.
I don't want to use the richtextbox.
... more >>
Printing items in a listbox
Posted by carlob NO[at]SPAM global.co.za at 3/22/2004 6:55:16 PM
Hi
I'm trying to print the items in a listbox with the code below but
when I click on print I get
"An unhandled exception of type 'System.ArgumentOutOfRangeException'
occurred in system.windows.forms.dll
Additional information: Specified argument was out of the range of
valid values"
Firs... more >>
To Anyone Who Has Written an NNTP Client
Posted by spamfurnace NO[at]SPAM intermension.com at 3/22/2004 6:30:19 PM
Hi there,
Ive written a basic NNTP client that is working fine in every area except
performance. Its taking about 6 or 7 times as long as Outlook to get the
same number of headers.
Ive been hunting around for a decent NNTP newsgroup for info on the client
side of things but cant find one.
... more >>
How can I delete the events using the system reflection?
Posted by Giò at 3/22/2004 6:04:53 PM
Hi at all.
I have my personal button that inherits from system.windows.forms.button, in
this way
Public Class MyButton
Inherits System.Windows.Forms.Button
..
..
Private Sub MyButton_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MyBase.Click
MsgBox("This is ... more >>
Data Access Application Blocks
Posted by Eric Sabine at 3/22/2004 5:02:34 PM
I was reading about the data access application blocks at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/uip.asp
and wonder if any ng readers here utilize this set of code? It seems like a
handy class for managing uniformity for db access (specifically SQL Server).
... more >>
building strings then executing them
Posted by Brian Henry at 3/22/2004 4:22:54 PM
If i have an object called comm and want to dynamicly set the properties
based on 2 columns (name and value) in a database and their value then
execute it how would i do that?
so basicly
dim comm as new commandObject
dim commandA as string = "comm." + dbPropertyName + "=" + dbPropertyValu... more >>
Occasional SQL Error
Posted by scorpion53061 at 3/22/2004 4:12:24 PM
sql2 = "SELECT custno, DATEOR, ORDERNO, LN, custpo, ITEMNO, QTY, PRICE, UM,
totprice, QTYALL, QTYBACK, SLSMNO, INIT FROM jjk044 where custno = '" &
custno & "' and " + OpenType + " order by " + sortterm + ""
For a local application I occasionally but not always get the below error
with this SQ... more >>
how do I play a sound from a prefetched buffer?
Posted by Richard at 3/22/2004 4:11:27 PM
Hi,
I want to be able to play a sound wave in VB / .NET. I don't mind how it is
accomplished except that I want to supply the buffer prefilled with the wave
file. Due to the way my code operates, no .wav files will be present.
Instead, I read the appropriate sound buffer from the data file b... more >>
RunAs
Posted by Vittorio Pavesi at 3/22/2004 3:54:19 PM
Hello,
I'm trying to execute RunAs but I'm experiencing problem with standardinput;
it seems that the process doesn't receive it.
Here is the code, any help ?
Public Sub ActivateRunAs(ByVal AppPath As String, ByVal Username As
String, ByVal Password As String)
Dim RunAsPath A... more >>
shuffling deck of cards
Posted by WStoreyII at 3/22/2004 3:48:30 PM
i am trying to make a sub that will shuffle a set of numbers
i have tried using the random object but i keep getting repeats
how do i get rid of the repeats
WStoreyII
... more >>
Textbox Dates
Posted by Dennis D. at 3/22/2004 2:42:33 PM
Thanks for reading this.
Textbox named txtStartTime
I want the user to use a textbox to put in a number like 6:30 or 6.30, and
converting it with code to 6:30AM after moving to the next textbox using
either a tab or enter key. I'll be manipulating the results by adding and
subtracting numbe... more >>
Word, Excel documents in VB.NET
Posted by Simon Jefferies at 3/22/2004 2:26:53 PM
Hello,
Is there anyway by using the function CreateObject() (e.g.
CreateObject("Word.Document"), to then display the document inside a VB
form?
TIA
Simon Jefferies
Tools Programmer
Headfirst Productions
... more >>
Winform app, .Net debugger crashes on start on WinNT box
Posted by Elliot M. Rodriguez at 3/22/2004 2:26:22 PM
I have a Winforms app that I've assembled an installer for using the VS
Installer. Everything builds fine, and I've tested it on XP and 2000
machines.
However, the installation target machines all have windows NT Workstation.
On my test NT machine (has the redistributable 1.1 installed and has... more >>
Help with breakpoints not working
Posted by jake at 3/22/2004 12:52:16 PM
Hello,
I have installed vs.net 2003 on a w2k box for testing purposes. I have
setup breakpoints but when I run the app in debug mode the app never stops
at the breakpoints. Any ideas? Thanks in advance.
Jake
... more >>
Why SESSION variables fail if browser cookies OFF ?
Posted by Doug Bell at 3/22/2004 12:50:40 PM
session("<label>") fails
if the browser's Privacy setting has cookies off.
What's going on?... more >>
Contact Exists for Relation
Posted by Gary at 3/22/2004 12:49:13 PM
I have two tables. Contacts and Notes. If there is a
relationship between the ID fields in both tables, how
can i reference them in code so I can bind two data grids?
My ultimate goal is to populate the first datagrid with
Contacts. When the user clicks on a row, then the second
grid... more >>
Loading & saving data from a class - design question
Posted by Jeff Bunting at 3/22/2004 12:46:02 PM
I have a class that pulls data from a stored procedure into a datatable and
is using the DataRowModified property to determine whether to update the
data when the class is saved or disposed. So I have this:
Public Property LastName() As String
Get
LastName = ThisRecor... more >>
Can't Build Nested User Controls
Posted by Charles Law at 3/22/2004 12:26:27 PM
I have a project which contains several user controls, which are nested, for
example MyMainControl, MyControlA. MyControlB. So, MyMainControl has a
MyControlA and MyControlB on it.
When I created the project, I created MyControlA and MyControlB first, and
then built the project. Thereafter, I ... more >>
save/read multi dimensional array to/from binary file?
Posted by usenet_daughter NO[at]SPAM yahoo.com at 3/22/2004 12:21:59 PM
this was easily done in vb6 (see below), can someone post the
equivalent vb.net code? thanks a lot !
' SAVE ARRAY TO FILE
Dim sFile As String
sFile = App.Path & "\test.arr"
Open sFile For Binary As #1 ' Open file for binary access
Put #1, , arrData ' Write array to file
... more >>
Finding last number in database
Posted by Big E at 3/22/2004 12:20:42 PM
I'm using VB Windows Forms and SQL Server.
I have a row in a database that is not a identity column but it contains
numbers.
I want to lookup the last number for a particular group of records and find
the last number in a column.
EX: In the Print Number column I have:
xyz 1
acb ... more >>
Inheritance question
Posted by Johan Karlsson at 3/22/2004 11:55:31 AM
Hi!
I know this might defeat the purpose of inheritance, but due to a design
restriction I need to know if this is possible.
When inheriting a class, is is possible to "remove" methods or properties
from the baseclass? Example: If class A has the property Name and class B
inherits from clas... more >>
select all text in a textbox or rich text box when user hits CTRL-A ?
Posted by usenet_daughter NO[at]SPAM yahoo.com at 3/22/2004 11:28:49 AM
how do you select all text in a textbox or rich text box when the user
presses CTRL-A ?
i am looking to recreate the vb 6 code below for vb.net
thanks.
Private Sub MyTextbox_KeyDown(KeyCode As Integer, Shift As Integer)
Dim bShiftDown As Boolean
Dim bCtrlDown As Boolean
Di... more >>
splash form, how
Posted by Bob Dufour at 3/22/2004 11:23:23 AM
Ho do you do a simple splash form in .NEt that does not stay on screen
behind the next form that is shown
If I do
Sub main()
Dim mysplash as new frmsplash
mysplash.show
Dim MyOtherfrm as new frmOther
MyOtherfrm.showdialog
end sub
the splash form stays on screen although... more >>
Thread and TabControl
Posted by Stan Sainte-Rose at 3/22/2004 11:20:28 AM
Hi,
I have a tabcontrol with 2 tabpages.
On the second tabpage, I have a textbox that it's filled up with a specific
thread.
When I click over the second tabpage, my winform application freezes.
If I remove the tabcontrol and I put the textbox over the main winform, I
don't have this proble... more >>
Basic inheritance question
Posted by PJ at 3/22/2004 11:06:09 AM
I want to sub class the datagrid class in order to create a datagrid that would not allow column resizing. I had a problem with some columns not appearing in my new class so in order to diagnose I removed all of the code from the new class just leaving the following
Public Class chotsGri
Inh... more >>
Collection to listbox
Posted by Brian Henry at 3/22/2004 10:59:01 AM
I have a simple problem... I am makeing a journal which has a collection of
entries (journal class and entries class).. when you select a journal i need
it to show in a listbox all the entries (the title of the entry) which is
easy.. but I also need an ID for the item so i can tie to to a databas... more >>
Built an document scanning application
Posted by Ajit at 3/22/2004 10:40:47 AM
I am to start working on a new application
to scan multiple document using ASP.NET/VB.NET
If anyone can give me any lead/tips/suggession as to how to do this
it will be of great help and i will take it from there.
... more >>
How to use NetUserChangePassword and NetUserSetInfo in VB.net
Posted by Rody Reulen at 3/22/2004 10:13:21 AM
I would like to set the user password with one of the following API calls.
NetUserChangePassword
NetUserSetInfo
This is real brainteaser for me. I try to use VB script and also ADSI, but I
prefer to use these two API calls.
I am using a Windows 2000 Server and a Windows 2000 Client. Can
... more >>
Force a file to be copied when a component is created
Posted by CJ Taylor at 3/22/2004 10:09:31 AM
Is there anyway to force a file to be copied to the Bin directory of the
referencing applicaiton when a component is created?
i.e. how the comment files work for intellisense. when added, they copy
over the xml file.
I know how I "could" write it, just seeing if something already exists.
... more >>
Array: "Cannot Convert to interface IList" - Why?
Posted by Urs Eichmann at 3/22/2004 10:07:06 AM
VS.NET 2003:
The line
? CType(New String() {"abc"},IList)
typed in the Immediate window
gives an exception "Cannot convert to 'Interface IList'"
why is that? A string array does implement IList, so I should certainly
be able to cast, isn't it?
Urs
... more >>
Help with Data Relations
Posted by Gary at 3/22/2004 9:41:03 AM
The ultimate goal is to have two data grids on a form.
The first Datagrid holds Contact information. The second
grid holds notes for each contact.
When I click on a row for contacts, I would like all
related notes to show on the Notes grid.
I created a data relation using the followi... more >>
Sharing dataset
Posted by Richard Grene at 3/22/2004 9:25:28 AM
How can I share a dataset that is filled in one form with other forms in my
app. I create the dataset through code using a oledata adapter.
Thanks,
Richard
... more >>
Formatting problem
Posted by Nathan at 3/22/2004 8:56:41 AM
I'm attempting to convert a string into a format that can be converted into
a date but VB.Net isn't giving me the same result as VB6.
The string I need to convert, and I have no influence over the it, is a date
but stored with out any seperators or spaces e.g. 20040306
In VB6 I can alter thi... more >>
reading unlimited simultaneous keypresses ?
Posted by usenet_daughter NO[at]SPAM yahoo.com at 3/22/2004 8:04:52 AM
Can someone show how to read keypresses in VB.NET, for the entire
application (that is, independent on which control has the focus, just
read if a key on the keyboard is down or not) ?
I'm looking to do something like
for iLoop = 0 to 255 ' (loop through all keyboard/ASCII characters)
... more >>
Context Menu Help...
Posted by jaymtz78 NO[at]SPAM yahoo.com at 3/22/2004 7:35:30 AM
Is there any way that I can test to see when a context menu
disappears? I can test when an item in the context menu is
clicked...it then disappears, but what if they click outside the
context menu...that's why I need to find a way to determine if the
context menu is showing or not!
Thanks in... more >>
Help Need Imediately, Refresh Report
Posted by teenameenadotnet NO[at]SPAM yahoo.com at 3/22/2004 1:18:23 AM
Hi every Body,
I am using crystalReports 8.5 and vb.Net Could anyone help me to sort
out this problem.I couln't Refresh my report Using code.I am using
ODBC Connection.There is no option for me to change from ODBC.
I have tried to include the below code in my application.But it's not
work... more >>
|