all groups > vb.net > may 2004 > threads for tuesday may 18
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
VB6: Access object properties by name
Posted by Dave Thorens at 5/18/2004 11:31:03 PM
Hi. Is there a way to access the property of an object using a string representation of a property name? For example, if I have a class with a property called MyProperty, rather than doing this
myObject.MyPropert
i need to do something like this
dim prop as strin
prop="MyProperty
MsgBox myOb... more >>
MySQL: Insert null values?
Posted by hellrazor at 5/18/2004 11:30:00 PM
Hi there,
I have the following INSERT statement:
fieldOne is of type int
fieldTwo is of type date
In MySQL, both are allowed to hold null values.
Now, I try to insert regular data into it:
INSERT INTO myTable (fieldOne,fieldTwo) VALUES(3,'2004-05-18')
NO problem there.
But what... more >>
XML and unicode
Posted by FE-FR at 5/18/2004 10:56:25 PM
Hi,
I am currently experiencing a problem reading an XML file wich containts
unicode data, in fact words from foreign language (hebrew, arabic, asian,
....)
The code I am using is very basic :
xmlfile="c:\test.xml"
Set xmlDoc = CreateObject("Msxml2.DOMDocument.4.0")
If xmlDoc.Load(xml... more >>
SSL Performance HIT in REVERSE? the clients are PEGGED as opposed to the server?
Posted by anon at 5/18/2004 10:33:59 PM
I am trying to stress test the effects of SSL on a web server using Web
Application Stress Tool (WAST).
However, when using SSL and according to the WAST Help files, the peformance
HIT is in the opposite direction. It's on the clients at 5 times the load!!!
as opposed the server I want to test... more >>
How Long??
Posted by Radith Silva at 5/18/2004 10:31:17 PM
First of all thanx for the massive help with all questions i've posted
on this group.
I am slowly but surely moving on with vb.net and constantly reading this
newsgroup but I'm sorry as I'm still not even close to having the
ability to answer questions on this newsgroup.
Now i was just wond... more >>
Why Framework is not be included in XP SP2?
Posted by yxq at 5/18/2004 10:02:24 PM
XP SP2 does not include .Net Framework, anyone must install .net
framework(20MB) for running .net program!
... more >>
Download HTML As Plain Text
Posted by Doominato at 5/18/2004 8:22:31 PM
good day,
I was just wondering how can I download a web page as plain text from a
certain web site. I have tried to use the OpenURL() method from INET control
in my VB.NET app, but it returns elements such as this <BR> within the plain
text. Is there a way to filter them or to simply download ... more >>
how do I write the output of a serialized class as a string?
Posted by Tarren at 5/18/2004 8:05:31 PM
Hi:
My serialized class is ending up in a XML.XMLTEXTRIDER
How do I write from that to a string? It seems as if it is storing it as a
stream? How do I read the contents of a stream into a string?
Thanks!
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Is this possible with .NET?
Posted by Aaron at 5/18/2004 7:29:54 PM
Normally if you want to retreive some data say a html page you would have to
send a request to the server.
For example a stock ticker sends a request and the server sends back some
data every minute.
My question is, is it possible for the server to send back data without
having the client send ... more >>
How can I setup SSL on my LOCAL COMPUTER?
Posted by anon at 5/18/2004 7:14:07 PM
Hello,
I already have setup SSL on my production server via purchasing a
certificate and that seems to work fine as I can type in https:// and it
works fine.
However, I want AND need to be able to test my .ASPX webpages via SSL on my
local server.
What is the best way to this?
Thanks.... more >>
CheckedListBox Basics
Posted by kifaro at 5/18/2004 5:46:46 PM
Please excuse me if these are really basic questions but I cannot find
the documentation I need to be able to accomplish this.
I have a checked listbox I am filling from a ds:
mysql = "select id,name from company where supportedvendor=1 and
accessmfg=1 order by name"
ds = ... more >>
Case-Insensitive Replace
Posted by Raterus at 5/18/2004 5:01:47 PM
Howdy,
I'm making a search engine for an application I'm working on. I want to =
"bold" keywords they have searched for. I have a long string of words =
that represents a particular document, and I need to find out how to do =
a replace on this string, but have it be case-insensitive.
For i... more >>
OpenFileDialog
Posted by SQL at 5/18/2004 4:15:37 PM
Hi,
Can the OpenFileDialog be used just for folders...I want the user to only
select a folder in which the files exist. Or is there something else I
should be using?
Thanks.
... more >>
How to Line Break
Posted by Radith Silva at 5/18/2004 4:02:23 PM
In the following code all I want to do is to break a line (an enter in
ms word) between each of the variables countOrders, stageTax, stageOne.
I think in vb 6.0 all you have to do is "....." &_ "this will be on a
new line"
It don't work...Plz Help
Private Sub cmdSummary_Click(ByVal sender A... more >>
Webform issue
Posted by hakan.grip NO[at]SPAM proelec-dot-se.no-spam.invalid at 5/18/2004 4:01:30 PM
Hi!
I´ve just joined here and thinks this seems like a good place to be
:)
I´m working on a project using webforms and one thing that I would
like to know is, if I copy a few controls and pastes it onto the
webform they are placed on top of the copied controls, how do I avoid
this...???
I w... more >>
deploy question
Posted by \ at 5/18/2004 3:57:48 PM
I have created a VB.net 2002 program on win xp and put it on SQL 2000
server. Then I try to run the exe in SQL 2000 server or shared folder. Both
gave me error. Is this not feasible?
... more >>
Files Needed
Posted by Mike Johnson at 5/18/2004 3:24:07 PM
What files if any do I need to run my Program on a system that doesn't have
VB.Net. I've built the release version of the .exe file is this the only
file needed if my program does not call any .dll's. thanks
... more >>
Combo Box in Grid using two related tables. Displaymember from T1 but ValueMember from T2
Posted by gudia97 NO[at]SPAM yahoo.com at 5/18/2004 3:13:13 PM
Two tables: Accounts and Companies
Accounts (AcctID, AcctNmbr, AcctName, CompID) -- AcctID is PK and
CompID is Foreign Key from Companies.
Companies (CompID, CompName) -- CompID is PK.
Created a DataSet AcctDS with two Data Tables, Acct and Comp
Created a grid and I want to show the follo... more >>
framework 2.0 coexistance
Posted by - Dan - at 5/18/2004 3:09:35 PM
i will be installing on my new computer sql server 2005 beta 2 which
installs sql workbench. this also installs the .net framwork 2.0. i will
also already have installed on my machine vs.net 2003 enterprise architect.
by default today i use the DNF 1.1. when 2.0 is installed, will i have to
d... more >>
How do I use "Inherits" and references
Posted by Jethro at 5/18/2004 3:02:05 PM
Hi all
I have got my .NET vb project compiling nicely into an EXE.
I wish to use one of the components (declared as Public) stored in the EXE
as a base class for subsequent DLLs to INHERIT from.
However when I try and use the "references" dialog, all I get is a warning
that the .EXE isn't a... more >>
Asynchronous threading question
Posted by slavisa NO[at]SPAM msn.com at 5/18/2004 2:56:25 PM
I have a function that takes in a parameter, and in the function it
calls the .BeginInvoke on the worker delegate. I know that the
System.AsyncCallback callback function takes in IAsyncResult as the
only parameter. But I have a case where I need to pass a parameter
from the function that calls... more >>
Visual Inheritance
Posted by Phill. W at 5/18/2004 2:54:57 PM
I've created my own form (say, "AppletBase" with some basic
controls (mainly GroupBoxes) on it. Now, I'm trying to inherit
from this to create [lots of] other applications.
[ancestor]
Class AppletBase
Inherits Forms.Form
[descendent]
Class Applet1
Inherits AppletBase
So why,... more >>
Serialize/Deserialize Font to/from string
Posted by Frank Rizzo at 5/18/2004 2:34:44 PM
How do I serialize Font object into a string that I can store in either
INI file or the registry (I know it’s a bad thing, but need to do it
nevertheless). Then, also, how do I deserialize it from that string
back into a font object?
Thanks.... more >>
Text.Encoding... ISO-8859-1
Posted by Ville Pirhonen at 5/18/2004 2:21:44 PM
is there easy way encode ISO-8859-1 (7-bit) to unicode?
example..
=?iso-8859-1?Q?=F6=E4?=
to
öä
I tried Dim iso8859 As System.Text.Encoding =
System.Text.Encoding.GetEncoding("ISO-8859-1")
and getDecoder, but I didn't manage to get it work...
Cheers, Ville
... more >>
High Level Feedback request
Posted by Support at 5/18/2004 2:11:00 PM
Hello:
I am trying to learn about Aactive Directory in VB.NET and NT security, so
if you have any good resources/references, please let me know.
At a high level ... in VB.NET
If I am a member of a domain user group - what do I need to do in order to
assign read only rights to a file I crea... more >>
Find out what program is locking a file
Posted by Juan Romero at 5/18/2004 2:06:06 PM
Guys,
Sometimes when you want to open a file, the file is locked for editing for
some reason. You are able to see the contents of the file (depending on the
program you are using) but you are not able to save your changes to it. I am
looking to make a program that can tell me what program is l... more >>
Threading problem
Posted by Soheil at 5/18/2004 2:01:34 PM
Hi,
Can anybody tell me why this piece of code makes my app halt?
It's just a simple form with two buttons on it!
But when I remove "Button2.Show()", everything is ok!
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Thread... more >>
Changing Path property on FileSystemWatcher
Posted by Mike Johnson at 5/18/2004 1:42:29 PM
I have a Form named Form1 which I added a FileSystemWatcher component, I
need to change the Path property on this component. I've read the Article
Working with forms which I got from this News group, but I don't understand
it well enough to get this to work. I know I'm missing something but it
e... more >>
VB.NET Menu Item question
Posted by simchajoy2000 NO[at]SPAM yahoo.com at 5/18/2004 12:33:23 PM
I have a menu bar that I initialize in Private Sub
InitializeComponent() and then later on in my code, depending on
different conditions, I need to be able to disable some of the menu
items programmatically. I am able to set the visibility for the menu
item to false and it works correctly but f... more >>
Same DataSource on Two Controls!
Posted by Lars Netzel at 5/18/2004 11:54:23 AM
I have used a Dataset called dsSuppliers as a dataset on both a ListBox and
a Datagrid.
They show fine and when I click on a row it changes the row in the other
control.
BUT... if I change the field in the datagrid that is also the DisplayMember
of the Listbox, the listbox is not updated...... more >>
progressbat control example
Posted by Reny J Joseph Thuthikattu at 5/18/2004 11:52:11 AM
Hi,
i want to implement a progress bar control when reading a file.Can any one
tell me how do i do that?
Reny
... more >>
printing external document possible??
Posted by Leo at 5/18/2004 11:17:14 AM
Hi,
Does anyone know if it's possible to print an external document with vb.NET?
I want to create a function that needs a file name (*.doc, *.xls *.pdf or
whatever) and then print that document.
If you rightclick on a document in explorer there is also a print option.
And my function has to... more >>
Multiple forms, binding and databases
Posted by hra242 NO[at]SPAM hra.co.santa-cruz.ca-dot-us.no-spam.invalid at 5/18/2004 11:01:45 AM
Hi,
I'm really stuck on a concept:
How do you get info from some tables(in this case using a dataAdapter
and dataset) from one form onto another form? Or does the db side
even matter?
Here is what I'm trying to do:
One form has a datagrid. I search for an employee, find the employee,
... more >>
Dataset reults to excel sheet
Posted by vpidatala NO[at]SPAM yahoo.com at 5/18/2004 10:47:04 AM
Hello,
I am trying to show data in dataset in to an excel
sheet(ASP.NET/VB.NET). I AM DOING THIS ON SERVER(IIS SERVER) WHICH HAS
EXCEL VERSION 9. I COULD ADD REFERENCE TO EXCEL VERSION 9 AND OFFICE
VERSION 10 IN MY PROJECT. I DO NOT HAVE EXC EL VERSION 10 TO WHICH I
CAN ADD REFERENCE (WHICH I... more >>
Threading Issues (If you can answer this, I'll kiss you.)
Posted by Jerry Camel at 5/18/2004 10:07:30 AM
Any insight here is greatly appreciated... (Eveything is in VB .NET)
Here's the baisc app flow:
-------------------------------------
Launch wrapper.exe:
wrapper.exe registers for the SessionEnding system event
wrapper.exe stores a pointer to its thread in MainThread
wrapper.exe de... more >>
VB6 cast generic collection item to custom class
Posted by Dave Thorens at 5/18/2004 9:56:04 AM
Hi. My VB6 application has several collections of custom classes, and each class has differing properties (ie. the classes are not necessarily related). I want to write a generic function which can be passed any collection in order to populate a control based on the objects in the collection. I figu... more >>
General question on catching exceptions
Posted by Eric Sabine at 5/18/2004 9:43:19 AM
I built a generic exception handler form which allows the user to get
information from it, print it, email it, etc. for exceptions for which I
explicitly didn't handle in code, such as missing permissions on a stored
procedure, etc. I use this exception handler in all of my applications and
it ... more >>
Question: PrintDocument_PrintPage - only does what's visible
Posted by VB Programmer at 5/18/2004 9:42:58 AM
I have a multiline text box with a scroll bar. I want to print out the
ENTIRE contents of the text box, but it's only printing what's visible.
Here's my PrintPage code:
Private Sub PrintDocument_PrintPage(ByVal sender As System.Object, ByVal
e As System.Drawing.Printing.PrintPageEventAr... more >>
Windows Service installed but not working???
Posted by acool at 5/18/2004 9:34:33 AM
I managed to get my VB.NET service installed. Now I can't get it to do
anything. Tell me how do you debug smething like this if you have to
manually install the assembly to run it? the same code works just fine in a
VB form but when I initiallize with the WS OnStart event I get nothing. Any
help... more >>
Loading a dtatgrid with values from another datagrid...
Posted by Coleen at 5/18/2004 9:00:02 AM
Hi all :-)
We are using a DB2 database connection through a class module to get the
data into a datagrid in an aspx web page using VB.Net. I can get the data
into the first datagrid with no problem, however, since I need to do a bunch
of calculations with these values AND pull values for two ... more >>
Event Handler for Control Key F2
Posted by Carmen de Lara at 5/18/2004 7:51:03 AM
hello to all, I found in Internet the following code that is very usefull to me. The code detects any character that is entered to datagrid, I am interested in the control key F2 but I don't know how to adding an event handler to a column of datagrid that raise when this key is pressed. Please help... more >>
User Control Disappears from WinForm
Posted by Chris Veal at 5/18/2004 7:41:07 AM
I created a user control and drag it onto a Winform
I run the app OK but when I return to the dev environment the user control disappears
Has anyone seen this b4? Whats the deal with that?
Thx in advance.... more >>
Advice Please
Posted by John at 5/18/2004 7:21:05 AM
I have vb 6 apps that use sql server for the backend. These apps compile as a standalone exe file. Therefore, I am able to put these in one place on the network and all the users can run the application. I am trying to move these vb 6 apps to vb.net. I can create a folder on the network with the... more >>
Code Locking Questions
Posted by peter NO[at]SPAM mclinn.com at 5/18/2004 6:02:18 AM
I'm looking to grab Client ID information like:
1. Processor ID:
2. Computer name:
3. Hard Drive Serial:
What is the easist way to get these values.... more >>
Different Forms
Posted by Stefan Richter at 5/18/2004 4:25:06 AM
I got a program that consists of different windows forms.
I can add, edit, delete and view data.
After I deleted or edited data, the window gets closed and the updated data
should be shown,
but so far it only shows the window as it was before a edit or a delete,
which is quite confusing.
What ... more >>
Ensure the propper calling class.
Posted by Ray Cassick (Home) at 5/18/2004 12:15:41 AM
I have several classes that has a public interface (nothing really different
there :) ).
1) I would like to ensure that some classes can only be instantiated by a
specific class type.
2) I would like to restrict some public methods from being called only
from another certain class typ... more >>
|