all groups > vb.net > august 2004 > threads for friday august 20
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
Code Performance
Posted by koorb at 8/20/2004 11:37:24 PM
Every so often I read something like:
"use a defensive code technique like File.Exists instead of a Try and
Catch because it's less of a performance hog"
And when I program, I obviously have different ideas on how to code
different sections. So how to I findout what's best from a performance
... more >>
I'd guess I can't do this
Posted by Just Me at 8/20/2004 10:26:12 PM
Given a button name Btn_5 and Index=5
I want to do something like
dim zz as string = Btn_??Index??.Text
or given an array of buttons, do:
BtnArray(4)= Btn_??Index??
Not necessarily that simply, but is there a way I can create the name of a
variable at runtime?
Thanks
... more >>
I don't think I can do this
Posted by Just Me at 8/20/2004 10:21:14 PM
Given a button name Btn_5 and Index=5
I want to do something like
dim zz as string = Btn_??Index??.Text
or given an array of buttons, do:
BtnArray(4)= Btn_??Index??
Not necessarily that simply, but is there a way I can create the name of a
variable at runtime?
Thanks
... more >>
Installation of program that uses Microsoft.Office.Interop
Posted by William LaMartin at 8/20/2004 10:20:13 PM
I have created a program that allows for the automation of things in Word
documents, like changing the values of DocVariables and the links to Excel
Sheets. I did it using interoperoperatability, where, after adding a
reference to Microsoft.Office.Core and a reference to Microsoft Word I
declar... more >>
Runtime Error but no error in debugger?
Posted by jcrouse at 8/20/2004 9:05:53 PM
I have been beating this around for 6 or 8 hours now. I swear it used to
work but I've changed quite a few things. I tried to revert to an earlier
version but it does the same thing now. When I run my code in the GDI it
runs fine. However, when I compile, install and run it I get an error. I am
... more >>
TreeView Data To Xml
Posted by Tiraman :-) at 8/20/2004 7:45:06 PM
Hi,
i would like to save the treeview data (nodes) into an xml file.
how should i do that ?
Thanks.
... more >>
Check is form is disposed
Posted by rob willaar at 8/20/2004 7:39:23 PM
Hi,
How can i check is a form is disposed in framework 1.1
In framework 2.0 i can check Form.IsDisposed to check if a user closed the
form
... more >>
Scroll To Bottom Of RichTextBox
Posted by Daniel Friend at 8/20/2004 7:14:58 PM
How do I scroll to the bottom of RichTextBox
Currently tried
RichTextBox1.SelectionStart=len(RichTextBox1.text)
RichTextBox1.ScrollToCaret
This does not work.
What is the best what to accomplish this
Thanks,
Dan
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
One of Creative people
Posted by Nice Chap at 8/20/2004 5:06:46 PM
We are designing a new UI for our app, and every screen will have print
functionality. We don't want to use the bog std method of providing a print
button. Has anybody got any good ideas please ?
One idea is to provide an extra tab on every screen called Print Preview !!
Any better ideas ?
... more >>
RowFilter and stackoverflow
Posted by Gene Ariani at 8/20/2004 5:02:45 PM
Is there a limit to how big a rowfilter on dataview could be? my =
rowfilter is dynamically generated and if its get too big I get a =
stackoverflow error other wise it works fine.
Any direction is appreciated it.... more >>
How to color each entire datagrid columns in VB .Net ??
Posted by tangokilo at 8/20/2004 4:05:40 PM
Hi,
Developping in VB. Net 2003
I am displaying data for 3 months on a datagrid and wish to color columns
for 1st month lets say in gray, columns for 2nd month in blue, and columns
for 3rd month in green. How do I do that ? Can't see anything in tablestyle
or under datgrid properties.
A... more >>
Problem for deploying Windows Forms Application with Crystal Report.
Posted by Ray at 8/20/2004 3:19:26 PM
Dear all,
I have used Setup Winzard to deploy a windows application with crystal
viewer to show a crystal report. I am using vb.net 2003. However, after I
have installed the Setup in a computer with no vs.net and crystal report.
The crystal report cannot be shown.
The error message is : Ca... more >>
Event Log - For more information...
Posted by Dave Wurtz at 8/20/2004 3:19:07 PM
All,
I'm trying to write messages to the event log and have everything working
ok... almost.
The message that I am sending via myEventLog.WriteEntry displays followed by
"For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp". How can I change this ... more >>
System.IO and Windows 98
Posted by jcrouse at 8/20/2004 3:16:01 PM
From what I can tell on Microsoft's website the .Net framework's System.IO
will not work with Windows 98. Is this true? I designed my app for use with
Windows 2000 and Windows XP. However, a user is trying in on a Windows 98
box and having some issues. I have labels which are filled by reading fi... more >>
All My VB.Net Books
Posted by koorb at 8/20/2004 2:46:12 PM
I don't know if this will be any use to anyone, but I just posted a
small review of all my VB.Net books on my Blog.
http://selfdeprecatingjournalism.blogspot.com/2004/08/my-visual-basicnet-librery.html... more >>
Command1.Default = True
Posted by Randy York at 8/20/2004 2:19:01 PM
What happened to this very simple VB6 command?
I am trying to make a button in a .net App the Default and I cannot get it
to work,
Why is this so Difficult,
RY... more >>
value of type "Integer" cannot be convert to system.color....
Posted by Supra at 8/20/2004 1:59:39 PM
value of type "Integer" cannot be convert to system.color
Public Sub APIHighlight2(ByVal BgColour As Integer, ByVal FgColour As
Integer)
SelectionHighlightBackColour(BgColour)
Dim rtb As New RichTextBox
rtb.ForeColor = FgColour ===> error occured in fgco... more >>
Datagrid BackGround Image
Posted by Michael Turner at 8/20/2004 1:18:09 PM
Anyone know if you can add a background image to a datagrid, there is a
property for colour but not for an image.
... more >>
Crashing caused by PrintHandler class?
Posted by KC at 8/20/2004 12:23:52 PM
Anybody had problems with this 'PrintHandler' class posted at
http://www.thescarms.com/dotNet/PrintDataSet.asp
I don't know if it was my computer or what, but I kept getting the
blue-screen-of-death until I pulled the class from my project.
--
Ken
... more >>
Windows Tray App
Posted by Penn at 8/20/2004 11:57:12 AM
Does anyone know a good tutorial on how to create a windows tray application
with a pop-up? Very much like MSN Messenger notification.
Thanks a lot!
... more >>
Datagrid Question
Posted by simchajoy2000 NO[at]SPAM yahoo.com at 8/20/2004 10:53:56 AM
Hi,
I have a datagrid in a VB.NET form with a set number of rows that the
user is required to fill out. But I don't want to allow the user to
add or delete rows from the datagrid. The only way I have found to do
disable this functionality is to set datagrid.ReadOnly or
datagrid.Locked equal... more >>
Execution Order
Posted by Ricky W. Hunt at 8/20/2004 10:33:13 AM
VB.NET seems to be processing things in a different "order" than I'm used
to. For example, I had a problem (I don't have the exact code handy anymore
so it's just a "guess") where if I put the complete code in a single
subroutine it wouldn't work but if I put the part that wasn't working in a
su... more >>
Adding a Control to a ListBox
Posted by Just Me at 8/20/2004 10:12:23 AM
What does it mean to add a control to a ListBox??
It inherits it from Control.ControlCollection Class .
I can understand adding a control to a Panel but not to a ListBox.
Thanks in advance
... more >>
Application Exception
Posted by scorpion53061 at 8/20/2004 9:31:17 AM
This app I am working on generated an exception but I have only found it
on his laptop. Other machines do not seem to have this issue.
The exception is normally according to what I have seen on the net an
ASP.NET exception. So why it is happening in Windows is a mystery to me.
The ... more >>
Getting a MemoryStream out of a ByteArray
Posted by SQLScott at 8/20/2004 9:23:01 AM
For some reason I am drawing a blank on this, so I would be extremely
greatful if someone could help me out.
I am trying to get a MemoryStream out of a Byte array. How do I get it back
out?
I have a sub that calls a function:
Dim bByte() As Byte
bByte = ws.SQLGetUserDemographics()
... more >>
App lockup
Posted by Nikolay Petrov at 8/20/2004 9:11:44 AM
Hi guys
A have an application for proccessing some sensitive data, which is most of
the time displayed on app windows.
I want after some time of inactivity the application to become locked - its
windows to be hiden or something and a form to be displayed, so the user can
enter his username and ... more >>
Microsoft Visual Basic .NET 2003: How-to Demo-Non-Rectangular Forms
Posted by Morx at 8/20/2004 8:23:57 AM
I downloaded it from Visual Basic at the Movies but there is a problem.
I set up the following properties of the form...
BackroundImage
TransparencyKey = Color that needs to be transparent
FormBorderStyle = None
And it looks like that TransparencyKey color doesn't work.
I set up a bitm... more >>
Basic Inheritence Question
Posted by Eric Lemmon at 8/20/2004 6:51:03 AM
Hi,
I created a base form and several forms inheriting from the base. I just
found that all the forms need to be wider, so I increased the width of the
base form. After recompiling, none of the inherited forms adopted this new
width.
Is there any way to force the inherited forms to reflec... more >>
strange error/can ne one repoduce it?
Posted by pproost NO[at]SPAM hotmail.com at 8/20/2004 6:40:10 AM
Can someone reproduce the following error?
I'm using the module at the bottom of my post to owner draw a menu
items, I call the module from a form like this:
Private Sub mnuOpen_DrawItem(ByVal sender As Object, ByVal e As
System.Windows.Forms.DrawItemEventArgs) Handles mnuOpen.DrawItem
... more >>
Class with only shared members/procedures VS Module
Posted by daniel.fernandes NO[at]SPAM sesame.co.uk at 8/20/2004 6:17:33 AM
Hi there
Is there any difference I need to be aware when I create a class with
only shared members & procedures when compared to a module (which is a
shared class) ?
I am asking this because I have seen at work a class that declares a
Database connection as a shared member and I wonder if t... more >>
Error Creating Table in ADOX
Posted by Wayne Wengert at 8/20/2004 5:58:26 AM
I am getting an error that "object no longer valid" at the point indicated
in the code below - I am trying to build a table in an Access 2000 database
using ADOX. Any thoughts on what might cause this?
==================== code =================
Sub CreateADOUnitsTable(ByVal sTablename As ... more >>
|