all groups > vb.net > february 2004 > threads for tuesday february 24
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
how to check if a form is already open
Posted by TM at 2/24/2004 11:59:17 PM
Is there any way to check if a form is already pen and if so set the focus
to it instead of opening another instance of that form ?
Thanks
--
Tony
... more >>
can't get an answer to a crystal rpt question re database connection - Cor, Herfried, Armin, Ken Tucker?
Posted by Bernie Yaeger at 2/24/2004 11:15:43 PM
I can't believe that there aren't lots of developers who:
1. create a crystal report that connects to sql server
2. calls the report using the crystalreportviewer control to view it and
then, if appropriate, print it
3. tries to deploy that report to the client's database, but now it calls
... more >>
VB .NET Enumerating Machines
Posted by Robert Fitzpatrick at 2/24/2004 10:36:41 PM
Hello,
I'm looking for code examples that displays all the
machines in a domain/workgroup using VB.NET. I've seen
a few postings on the net on how to do this in VB6, but
these will not work for us.
Thanks
RF... more >>
Registry Keys and Administrators
Posted by Riaan CilliƩ at 2/24/2004 8:34:18 PM
Hi
Is there a way that I can bind a registry key with a different username and
password than the current user logged in?
I need to be able to change a registry key with VB.net. Thing is, the user
logged on running the utility does not himself have rights to change the
registry. An administr... more >>
Accessing and displaying SSL web pages and cookies from a windows form
Posted by Justin Engelman at 2/24/2004 8:23:48 PM
Hi,
I have a website that uses an ISAPI filter that will redirect anyone going
to any page on the site to an SSL login page (on a different website with
the same root domain) if they do not have the appropriate session cookie
already. After logging in on that page successfully they are given th... more >>
Using fax in vb.net
Posted by nTn at 2/24/2004 8:02:08 PM
I need send a fax using vb.net. How can I do this?
tks
... more >>
reading a file
Posted by LIN at 2/24/2004 7:52:55 PM
I am reading a log file which is being used by the Server every second to
log data. I am writing a windows service to read this file.
So far, i have been doing this:
Copying the file to a tmp.txt file in the same directory and processing the
file. Later, I realised that when i try to process... more >>
Please HELP. VS.NET report wrong compile errors
Posted by Mat at 2/24/2004 7:20:08 PM
"Variable AAA is not declared"
but the variable is there. where i cut and paste the code( variable =
declaration), the error disappear
Please HELP... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Newbie question ob vb.net and connecting to a dB
Posted by RichK at 2/24/2004 6:56:37 PM
Hello All!
Working on my first "production" program and need a hand.....
I have written a program that is supposed to access a SQL database and then
run a crystal report or do other things depending on which button is
pressed. I have this program running well on my design setup but when I ru... more >>
Character Escapes Don't Work in VB Regex Replace?
Posted by Chris Anderson at 2/24/2004 6:26:07 PM
Anyone know of a fix (ideally) or an easy workaround to the problem of escape characters not working in regex replacement text? They just come out as literal text
For example, you'd think that thi
Regex.Replace("<stuff>text</stuff>", "<stuff>", "<stuff>\n"
would give yo
<stuff
text</stuff
... more >>
ComboBoxes in vb.net
Posted by Ryan McConnell at 2/24/2004 5:31:52 PM
Hi,
I have Two string arrays and several questions...
I want to populate a combobox with the contents of both of the arrays.
Is there a way, like in classic asp/html, where i can have a value for
the label and one for the actual value. like in a select:-
<option value="val">Value Displaye... more >>
XML to plain text
Posted by Big D at 2/24/2004 5:16:04 PM
I have a simple xml file that contains, in part, content that is in HTML. I
am encompassing that content in <![cdata[]]> tags. This works fine.
However, my application needs to output the XML file (from a strongly typed
dataset) to plain text. I am doing
theText = myDataset.getXML()
Wh... more >>
web browser control
Posted by portroe at 2/24/2004 5:12:11 PM
I am Using the web browser control, in conjunction with data pulled down
from web services,
Browser.? = foundinfo.Details(i).ImageUrlSmall.?
I cannot seem to get it to work,
can anybody help?
thanks
... more >>
manually loaded assembly fails to find its referenced assemblies
Posted by Bob at 2/24/2004 4:43:06 PM
For an assembly I manually load from a file, this code snippet:
For Each t As Type In asm.GetTypes
'do something
Next
generates this error message:
System.Reflection.ReflectionTypeLoadException: One or more of the types in the
assembly unable to load.
at System.Reflection.Module... more >>
Select and modify data within a RichTextBox by mouse click
Posted by HJ Majoue at 2/24/2004 4:21:19 PM
I am having a problem with RichTextBox Control and hope you can help
I am working on a VB.Net project that has a RTB control, the user opens a form template. What I want to do is for a user to be able to click or right click on text within the form such as Priority: [[|Low|Medium|High]]. If th... more >>
VB SCript in .NET?
Posted by StudentMCDBA at 2/24/2004 4:11:34 PM
I'm trying to display a message box when user click a button. In VBScript I
can to do it with msgbox() function , but in ASP.NET how I do this?
Thanks,
WBG
... more >>
Reflection
Posted by Nico Debeuckelaere at 2/24/2004 3:46:57 PM
Hi all,
I have a class in VB.NET in an assembly like:
----------------------------------
Public MustInherit Class MyBaseClass
Public Function GetBitmap(Name As String) As System.Drawing.Bitmap
Dim img As System.Drawing.Bitmap
Dim p As System.Reflection.Assembly = _
... more >>
regular expression question
Posted by Craig Buchanan at 2/24/2004 3:43:07 PM
I have a string in the format "name" <address> that i would like to split
into an array of two values. name should be the first value, address the
second value. what does my regex pattern need to be? If the regex doesn't
find occurances of two double quotes and an occurance of < and an occuran... more >>
prevent form from disposing
Posted by Snuyt at 2/24/2004 3:07:55 PM
Hallo,
when a form is closed by clicking the closing button (cross in the right
upper corner of the form), it is also disposed. Can I prevent this, and
instead of closing (and disposing) the form, just hide the form? (it is
not the main form)
thanks,
Snuyt
... more >>
WTF??
Posted by CJ Taylor at 2/24/2004 3:07:32 PM
Ok... someone help me understand this...
Now I've been reading a couple articles on the GC in .NET and wondering why
my application is sucking up memory, I release the resources (even call
..Dispose on objects to make sure) and it wouldn't release the memory...
However, if you minimize the w... more >>
help with comparing strings....
Posted by Paul M at 2/24/2004 2:44:51 PM
hi there,
i have some code which in VB6, worked fine, but in VB.NET does not match the
following:
If Mid(sBuffer, nI, 2) = vbCrLf Then
the MID string returns the 2 squares that resemble VbCrlF, and when i put
both variables into the watch window, they return the same string, but the
ma... more >>
MouseUp-Event gets 'lost'
Posted by Michael Maes at 2/24/2004 2:35:20 PM
Hi,
I have a child-form in an MDI-Application which seems to loose the =
MouseUp-Event.
I grid (for navigation-purpose) appears on many of the child-forms and =
in (I think) only one this issue occurs.
What happens:
Private Sub grdNavigation_MouseDown(ByVal sender As System.Object, ByVal... more >>
Linking to Access in VB
Posted by Leon.Kemp at 2/24/2004 2:31:05 PM
I have a project that I am working on that will (ultimately) write to 2 Excel Spreadsheets, 3 Access databases, and communicates with 3 other programs (torque monitoring software, a laser rangefinder, and a specialized industrial inkjet printer). I had much of it working in VB6, but then upgraded (... more >>
textfile into datagrid
Posted by klesjezot NO[at]SPAM hotmail-dot-com.no-spam.invalid at 2/24/2004 2:31:00 PM
How can I load this textfile
(http://mat.gsia.cmu.edu/TOURN/data4.txt) into a datagrid?
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
-------------------------------... more >>
Themes
Posted by Merlin at 2/24/2004 2:23:13 PM
Hi,
I've posted similiar before, but just can't find the answer, so here goes
again:-
Under XP themes, edit boxes and the like change their border colour to match
the theme, e.g. standard XP theme is a Blue colour, so edit boxes have a
blue border. How (an example please, please!) do I find... more >>
Calculated Columns in a Datagrid
Posted by Sean at 2/24/2004 2:16:06 PM
I have a table I am using to load a DataSet.DataTable to display data on a DataGrid. I have a Column called StartTime that is a DateTime and I have a column called Duration that is an Int32, that contains minutes. I want to create a calculated column that adds the minutes to the StartTime and is cal... more >>
disabling threestate of checkbox in datagrid (datacolumn)
Posted by Steven at 2/24/2004 1:43:27 PM
How can I disable the ThreeState of a checkbox in a datagrid datacolumn
(dataset)?
Because of the ThreeState the checkboxes in my datagrid can be in the states
'Checked', 'Unchecked', and 'Indeterminate' (checked + shaded).
I want to prevent the checkbox (datacolumn) from getting this last sta... more >>
Creating COM objects with VB.NET
Posted by Al at 2/24/2004 1:35:36 PM
Anyone know why MS says you can't create a COM class with VB.NET to use in
other VB.NET projects? (reference the statement at the bottom of the MSDN
article ... Walkthrough: Creating COM Objects with Visual Basic .NET (Visual
Basic .NET)
The statement says ...
Note The COM objects you gene... more >>
download files from a server?
Posted by DaveF at 2/24/2004 12:55:43 PM
I am trying to figure out the best way to download images from a server that
is password protected. This needs to be set up as a service? Can anyone
point me in the right direction?
Dave
... more >>
Visual Studio Memory Usage
Posted by CJ Taylor at 2/24/2004 12:54:15 PM
My Visual Studio Memory Usage keeps growing and never seems to go down... I
dispose everything properly.. but everytime I run the program I'm writing it
grows by like 100 meg...
Any ideas?
-CJ
... more >>
How do you set focus to a control
Posted by Kelly Dykster at 2/24/2004 12:21:07 PM
HI
A very simple question. I like to set the focus to a TextBox when the forms opens. How do you do that in Vb.net
Thanks in Advance
Kelly Dykste
... more >>
Executing the code contained in a string?
Posted by Robin Tucker at 2/24/2004 12:15:21 PM
Is it possible to execute the code contained in a string? I would like to
create a wizard for making a custom "filter" in my software, much the same
as Outlook Express has mail "rules", ie:
Show nodes where the
{condition,action string, condition string, type}
{ equals, doesn't equal, is... more >>
loading forms
Posted by Snuyt at 2/24/2004 12:12:37 PM
Hallo,
I have 3 forms : main, form1 and form2
I can open form1 and form2 from main by clicking a button in main.
I can open form2 form form1 by clicking a button in form1.
I can open form1 from form2 by clicking a button in form2.
However, when I open form1 and form2 from main, and then o... more >>
Print RTF text that overflows one page
Posted by Neal Miller at 2/24/2004 12:11:08 PM
Hi
Thanks to all of your help, I've got a working PrintRTF module that prints out RTF code, and it works well.
The next issue to overcome is to determine how to page-break text that is too long for one page
Is there some way to identify exactly how many characters I can print before I run out ... more >>
license question
Posted by Eric Clapton at 2/24/2004 11:54:44 AM
Hi all,
I am going to develop a report fuction plus some query for 10
users and 2 developers. How many crystal report and visual studio 2002
license do I need? Thanks.
... more >>
Hiding a tab in a TabControl?
Posted by Amjad at 2/24/2004 11:51:07 AM
How do I hide a tab in a TabControl that contains 3 tabs
I tried the following and it didn't work
tabTab2.Hide(
tabTab2.Visible = Fals
Amjad... more >>
Crystal reports help possible here?
Posted by Robin Tucker at 2/24/2004 11:49:05 AM
Firstly, I'm using the .NET version (with VB) here, not the full version, I
have no
idea if this is possible -
I would like to change the colour of a rectangular box in the report
depending on the values of one of the fields in a record in the database,
which is contained in the report record... more >>
VB.NET Security Question
Posted by SStory at 2/24/2004 11:32:50 AM
Dear group,
I wrote a very simple app to enable a fox pro user to call it and do
somethings that he couldn't easily do with Fox Pro.
It was written in vb.net.
My client put this exe on a server that has dotnet runtime v 1.1 installed
and then from a client in his intranet tries to access ... more >>
Update progress bar to reflect database update?
Posted by pietrud NO[at]SPAM hotmail.com at 2/24/2004 11:17:22 AM
Hi, I was wondering if anyone ever done a progress bar that reflects a
database update. I have an update query with SQL server that takes
about 5 minutes. I can't figure out a way to show the progress of the
update in a progress bar since I have no idea how much time it will
take. Anyone ever do... more >>
Images within Richtextbox...
Posted by Jim at 2/24/2004 10:58:29 AM
Could someone please point me to some sample source code for including
images within a Richtextbox in VB.NET, without using the clipboard ?
Thanks in advance!
Jim
... more >>
conversion problem string to GUID
Posted by Sandy at 2/24/2004 9:51:06 AM
I am trying to convert a string into a uniqueidentifier by using the following code
Dim contrID = Request.Params("oId"
Dim sqlID As SqlGuid = SqlGuid.Parse(contrID
I am then putting sqlID into my SQL WHERE clause so it only pulls that record. I've double checked that the record I'm trying to p... more >>
Registering font at runtime under Windows XP
Posted by Sylvain Audet at 2/24/2004 9:49:01 AM
Hello!
We have a Windows application that is using Crystal Reports reports
containing Barcode fonts. Those reports are called through reflection into
a Crystal Report Viewer and we need to have the Barcode fonts to be
self-installed at runtime whenever a report is viewed.
I tried the... more >>
Format Datagrid Unicode Chars
Posted by Jorge Cavalheiro at 2/24/2004 9:45:39 AM
Hello
I've done research in the SQL Server BOL and i found out
how to store greek characters in a field, that's simple
use nchar datatype and the unicode('greek chars') to
insert/update the field.
How do i display then in a datagrid it displays numbers
instead of the chars. I didn't f... more >>
Howto detect the calling program of a library
Posted by Richard Weigel at 2/24/2004 9:31:31 AM
Hello,
I have the problem, to protect a library against unauthorized usage.
For realizing this, I want to identify the calling program (path+filename)
to check if it has a digital signature. If it hasn't, the program don't get
access to specific parts of the library (The signature is neccesa... more >>
IIdentity casting problem
Posted by Craig Buchanan at 2/24/2004 9:21:25 AM
I have an object, named SiteIdentity, that implements IIdentity. I have
added additional properties to this class, Email for instance. I am using
forms authentication.
In the code behind class for a webform, I try to cast from the HttpContext
identity object to my SiteIdentity object, but I ... more >>
Inet control equivalent
Posted by craigs at 2/24/2004 9:21:07 AM
Is there an equivalent control in Visual Basic.net to the Inet control in VB6.0? It was a snap to use to create an FTP connection and control?... more >>
VB.NET Deployment - Checking for user-modified files
Posted by Juggler at 2/24/2004 9:21:05 AM
Hi all
I've written a program in VB.NET that allows the user to build quotes for installing shower enclosures. As part of the program, I've included a blank Access database. I've provided them with an interface where they can add their own clients to the database
When the user upgrades to a newe... more >>
Question related to dataset
Posted by RJN at 2/24/2004 9:20:38 AM
Hi
Need a help on data set.
I have a .csv file as an input which I read using the oledb provider and
upload into a dataset using a dataadapter. So the dataset has one
datatable now. Using this datatable as the basis, I need to get the
other related information from SQL server database.
... more >>
IE Toolbar in vb
Posted by Mr Utkal Ranjan at 2/24/2004 9:18:33 AM
Hi
u must've heard this question a million times.
but is there any resource for building IE toolbars in vb
there is an article in MSDN but that uses COM
Thanks in advance
... more >>
howto use params with insertCmd for DataAdapter?
Posted by Rich at 2/24/2004 9:14:32 AM
Greetings,
Just starting out with .net. I have a vb.net app where I
connect to an Access mdb. I use a connection component
from the tool box (conn1), a data adapter component from
the toolbox (da1) and create a typed dataset (ds1) and
populate a grid on a form (grd1). This all works fi... more >>
Setting variables at Compile Time using #Const
Posted by Michael Fitzpatrick at 2/24/2004 9:02:03 AM
Is it possible to set a variable with the value of a compile time constant.
Example:
#Const MODE_STR = "Mode1"
dim strMode as String = MODE_STR
Obviously this doesn't work. Is there a way to achieve the same thing???
--
: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -... more >>
client/server
Posted by klesjezot NO[at]SPAM hotmail-dot-com.no-spam.invalid at 2/24/2004 8:32:17 AM
Hi there,
How can I modify this code
http://www.eggheadcafe.com/articles/20020323.asp to make it possible
that multiple clients can send data to the server (and get data from
the server)?
Or does somebody know another example? :roll: :D :D :D :D
Posted Via Usenet.com Premium Usene... more >>
Inheritance
Posted by Benny at 2/24/2004 8:26:08 AM
I have a solution with 3 projects - 1 exe and two dll's
In the exe I usually inherits forms from one of the dll's (main-classes etc). Now I want to add an inherited form from within the exe. But when I try I get the error "Ensure that the file is a valid .Net Framework Assembly" - and I cannot sel... more >>
How can I improve this code please?
Posted by Trint Smith at 2/24/2004 8:17:04 AM
How can I improve this code please?
It sometimes produces this error:
"Object reference not set to an instance of an object"
When I do this:
strSQL = "UPDATE TBL_Items SET" & _
" item_itemnumber = " & PrepareStr(Label6.Text) & _
" ,item_itemcurrentbidp... more >>
ghostscript leaves windword processes
Posted by spamproof2005 NO[at]SPAM yahoo.com at 2/24/2004 7:37:03 AM
I'm using the ps2pdf.bat file that ghostscript provides through my
vb.net code to convert word documents to pdf.
After each conversion, a winword process is left runnning in the task
manager.
Anybody knows how to prevent this from happening?
Thanks in advance for your help
7078895... more >>
vb.net deployment
Posted by Todd Lu at 2/24/2004 7:32:00 AM
Sorry everyone but I have a newbie question. I have a vb.net console
application that I am trying to run through a a schedule job (I know a
window service would be better but I was having some problems) but the
question is do I have to install .net framework and mdac 2.7 + on the
machine for th... more >>
Looking for suggestions: VB.NET Learning Project
Posted by gwhubert NO[at]SPAM hotmail.com at 2/24/2004 7:23:31 AM
I'm looking for a good coding project for the purpose of getting to
the point of feeling proficient in VB.NET programming. I've read a
few books, written several test apps, and have prior experience with
OO programming. I'm looking for something that might take around
10-20 hours a week over 2... more >>
Distribution Question
Posted by Randy at 2/24/2004 6:39:23 AM
I develop an Access Database for several customers, some small, some
large. Some of my customers use SQL Server in their environment, and
have requested a SQL Server version of my dB. That in itself is not
hard. In fact, that in itself is complete. What I want to do is only
compile one C... more >>
Add a Timer to a form at run time
Posted by vinay at 2/24/2004 4:36:11 AM
Hi
I must be missing some obvious point, but can someone let me know how do I add a windows.forms.timer control to a form at run time
Private TM as new windows.forms.time
Dim sForm as for
sForm.controls.add(TM)
=> throwing an error - Value of type 'System.Windows.Forms.Timer' canno... more >>
About Dataset & DataGrid
Posted by ElanKathir .S.N at 2/24/2004 3:51:52 AM
Hi !
How to populate the Datagrid with out using the Dataset?
I want to add the record dynamicly.
Thanks & Regards
Elankathir,
B'lore,
India.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!... more >>
Ftp client example in VB.net
Posted by Tommy Naumann at 2/24/2004 2:59:11 AM
Does anyone know of an example of how to write an FTP client in Visual
Basic.net? I'm trying to automate FTP file
uploads and downloads in VB.
Thanks in Advance
Tommy
... more >>
|