all groups > vb.net > april 2004 > threads for monday april 19
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
Delegates
Posted by Brian Henry at 4/19/2004 11:39:36 PM
What exactly are they? I haven't hit that chapter in my VB.NET book yet, was
just wondering if i could get a quick over view? thanks!
... more >>
Grouping items in Listview
Posted by Lasse Eskildsen at 4/19/2004 11:11:15 PM
Hi,
Is it possible to group items in a listview, as seen in ex. windows xp
explorer?
Thanks for your time,
--
Lasse
... more >>
Aysnc Update of Datagrid = Empty?
Posted by Lucas Tam at 4/19/2004 10:54:33 PM
Hello,
I am trying to update a datagrid via an async call, but the datagrid
shows up empty. I've checked the datatable - there are indeed rows in
it...
Here is my code:
Private Sub LoadGroup()
_del = New TCP.ChangeGroupDelegate(AddressOf _oTCP.ChangeGroup)
'invoke the ... more >>
Creating VB Application to interact with Website
Posted by Programmer at 4/19/2004 10:52:07 PM
Hi,
I would like to know as how should I proceed if I need to create a system
tray in VB so that it can connect to my website.
You can see an example here of a similar software here:
http://www.helpcenterlive.com/winapp.php
The author of the program has created it to communicate with the... more >>
IsInitializing Property (boolean) hangs on property set
Posted by Grumpy Aero Guy at 4/19/2004 10:48:59 PM
I am upgrading an app from 6.0 to VB.
Have a couple of radio buttons that gave me the "may fire when form is
initialized" upgrade message. (no problem)
Added an Isinitializing property (boolean):
----------------------------------------------------------------------------
---------
Priva... more >>
Can Array String Values Be Assigned to a Struct
Posted by Sam Clark at 4/19/2004 10:01:08 PM
The following code puts a structure location in an array field:
XrefArray(i) = "ArrayIn(i).Field" & RefText.Substring(NumStart + 1)
--------------------------------------------------------
Array(i).Field1 is the value now assigned to XrefArray(i)
---------------------------------------------... more >>
Array string value assigned to a structure
Posted by Sam Clark at 4/19/2004 9:53:40 PM
The following code puts a structure location in an array field:
XrefArray(i) = "ArrayIn(i).Field" & RefText.Substring(NumStart + 1)
--------------------------------------------------------
Array(i).Field1 is the value now assigned to XrefArray(i)
---------------------------------------------... more >>
How to force a download?
Posted by Miguel Dias Moura at 4/19/2004 9:16:02 PM
Hello,
in my web site i display some links to PDF files. This links are loaded from
a database.
Anyway, when i click these links the PDF files are open in the visitors
browser and in Acrobat.
How can i force the files to be downloaded when the person clicks the link?
I don't want to use zi... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Average
Posted by Carlo B at 4/19/2004 7:56:05 PM
I need to store numbers in an array and by using a class I need to
calculate the average of the numbers entered. I cannot get the text box
to return the total of the numbers in the average function - it always
returns a 0.
What is wrong with this coding?
Thanks
Carlob1
Dim statistic(50)... more >>
Records Counter
Posted by Dino Buljubasic at 4/19/2004 7:43:52 PM
Hi,
I have to generate a number representing ID of my record in format
like: 2004.00001 where 2004 is current year and 0000x is the number of
record added to my database (i.e. 1st record is 00001, 2nd record
00002, 3rd record 00003 etc)
However, when I move to year 2005, the counter should st... more >>
query syntax problem
Posted by WStoreyII at 4/19/2004 7:35:44 PM
I have a DataView with the row filters set to
Payee = 'Item'
where item is the value of the current cell clicked in a sort
tree that i have
the problem is the ' character
for instance if the value of the cell is Macy's
when the computer reads the command it reads
Payee = 'Macy's'... more >>
Add user to SQL Server 2000 using vb.net
Posted by Mark at 4/19/2004 7:27:39 PM
Hi all,
Can anyone tell me how I can add a new user to an existing SQL Server 2000
database programmatically using vb.net.
Any help will be very much appreciated. I have had a good Google around but
have been unable to find anything.
Many thanks in advance.
... more >>
column alignment
Posted by WStoreyII at 4/19/2004 6:59:18 PM
I have a column with a columnstyle (datagridtextbox)
i wish to make the headers aligment center
but the text to be left
any ideas of how to do this ?
if possible i would like to do it with out creating a custom columnstyle
WStoreyII
... more >>
tostring
Posted by steve at 4/19/2004 6:51:42 PM
i'm trying to create an item to be added to a listbox. reason being is that
the "item" has properties i need to access when it is selected. i'm having
trouble displaying it in the list though. i've tried putting a public
overrides function ToString() and a public shadows function ToString() as
o... more >>
Buttons not responding to click event
Posted by scs at 4/19/2004 6:16:05 PM
Has anyone experienced the situation where control buttons stop responding to click event handlers? I have a form with 8 buttons that were responding to their click events but are not anymore. Does anyone have an idea on how to correct this problem?... more >>
Please Help With Error: c:\inetpub\wwwroot\admin\filemanager.aspx.vb(76): Expression is of type 'System.Web.UI.HtmlControls.HtmlInputFile', which is n
Posted by scarey NO[at]SPAM sophelle.com at 4/19/2004 5:18:11 PM
I converted a C# Upload app to VB.NET and am down to one error and was
hoping someone could help me with te error. I would greatly appreciate
help from anyone.
Here is the error:
c:\inetpub\wwwroot\admin\filemanager.aspx.vb(76): Expression is of
type 'System.Web.UI.HtmlControls.HtmlInputFil... more >>
.NET Security Policy question - SecurityException
Posted by Ioannis Demetriades at 4/19/2004 5:12:23 PM
Hi,
I created a shortcut to a .NET application that is located on a different
workstation but when I try to execute the app (through the shortcut) I get
an message saying
"The application attempted to perform an operation not allowed by the
security policy. The operation required the Secur... more >>
How to deploy vb .Net executable
Posted by duha at 4/19/2004 4:46:49 PM
Is there a way to have a program (.exe) compiled in VB .Net to run on a
machine that do not have the .Net Framwork installed? The OS on that machine
can be Windows Me, Windows 2000 or Windows XP. Thanks.
duha
... more >>
Mail not sent due to antivirus protection
Posted by Vittorio Pavesi at 4/19/2004 4:39:42 PM
Hello,
I'm working on a windows service that send email using CDO every time a
threshold is reached; Norton Antivirus Mail Filter block SMTP connection.
I know that it's not a VB issue but I think that somebody experienced the
same problem sending mail automatically with the Norton Filter instal... more >>
Create MDB from VB .Net
Posted by Vittorio Pavesi at 4/19/2004 4:25:48 PM
Hello,
anyone know how to create an access database from vb .net ?
Thanks
Vittorio
... more >>
Inefficiency with arrays?
Posted by Robin Tucker at 4/19/2004 4:15:21 PM
In the MSN article
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconarrayusageguidelines.asp,
they state that "each call to the myObj property creates a copy of the
array. As a result, 2n+1 copies of the array will be created in the
following loop." I cannot u... more >>
Mail merge
Posted by Richard Grene at 4/19/2004 4:14:06 PM
I do a mailmerge and it works fine for word 2002 but not for Office XP. On
Word 2003, only the template pops up without the merge taking place.The
following is my code.
Thanks,
Richard
wrdApp = GetObject(, "Word.Application")
wrdApp.Visible = True
wrdApp.Documents.Open(sLetterFileNam... more >>
pure virtual function call C++ error
Posted by Alex Rootes at 4/19/2004 3:55:05 PM
Hi,
I have a multi-threaded, vb.net service which access a database at a high
rate and makes use of com interop components (It is running on Windows XP
Pro and has been built in VS 2003). I get no error's when in debug build,
but in release build I sporadically receive the following error:
... more >>
The better mousetrap with a built-in trap
Posted by Chris Botha at 4/19/2004 3:47:59 PM
If one wants to assure that there is only one instance of an app running,
then the popular solution is to use a Mutex and a message box, telling the
user there is already one running. I decided to go one further, bring the
1st instance to the foreground, no message boxes. Impressive, I thought. S... more >>
Solution Explorer
Posted by Nice Chap at 4/19/2004 3:31:57 PM
Is there is a shortcut key/menu item to collapse all the project folders in
the solution explorer.
... more >>
Object not set to...
Posted by Brad Allison at 4/19/2004 3:12:00 PM
I have an ODBC data adapter going to tables on an AS400. This works -
albeit slowly as our database is about 10 GB of information - in one program
that I am creating but now I am starting a new project and when I try to
create the data adapter I am getting "Object reference not set to an
instan... more >>
Problem with Dialog Boxes and Notify Icons
Posted by Derek Martin at 4/19/2004 2:28:08 PM
Hi there, this is probably really dumb, but I am using a dialog as my main
form and my startup form is my splash screen - which implements some
progress bars to load up some relevant data. When that is done, loading
form does this:
Me.Visible = False
mainform.ShowDialog()
Application.Exit()... more >>
Getting error in AddressOf Operator, Plz help
Posted by ItsMe at 4/19/2004 2:20:42 PM
Hi Guyz,
I'm unable to understand this (AddressOf) error???
In VB6 I have two functions:
----------------------------
Public Function ImageFirstImageCallback(ByVal hWnd As Integer, ByVal iMsg As
Integer, ByVal wParam As Integer, ByVal LParam As Integer) As Integer
'Code here
End Fun... more >>
Deployment Question
Posted by Brad Markisohn at 4/19/2004 2:10:14 PM
I've written a stand alone client VB.Net application. I want to
periodically update the software on a client machine. While I can envision
either a push or pull method, is there a standard or common method for doing
this? If there is more than one method, are there positives and negatives
ass... more >>
VS2003's Projects Need to Be read on VS2002.NET
Posted by MSNews at 4/19/2004 1:59:29 PM
I have a requirement to use simple project files which were created on 2003
on 2002 version of .NET. This is because the customer site does not yet have
2003 but the course projects were written in 2003.
I have loaded the 1.1 framework on vs2002 but need to know if there is a
simple or otherwi... more >>
Vb.Net and Windows 98 machines
Posted by Ed Willis at 4/19/2004 1:50:11 PM
I have a VB.Net application. It runs fine on XP machines but when the user
exits the application on Windows 98 machine the task is still active in
program manager saying that it is not responding. If you manually kill the
application is freezes the machine.
How can I fix the problem?
Thanks... more >>
Mouse events & MDI child forms
Posted by Lance at 4/19/2004 1:26:04 PM
I've noticed that controls that are contained in MDI child forms fail to raise MouseLeave events if the MDI child form's MdiParent property is set to Nothing (after it was set to an existing MDI container form) or if the MDI child form's Visible property is set to False (after the MDI child form was... more >>
Kernel32 API, Module32First() and VB.NET
Posted by Jan Jeitziner at 4/19/2004 1:02:07 PM
I want to find out all dll's a process have. I've found example code on
the page http://www.freevbcode.com/ShowCode.asp?ID=295
The problem is, the sample is written in vb6, but Application is written
in vb.NET.
I've rewritten the code for vb.net, but if I run the application, there
is follow... more >>
Useless Textbook! Need help
Posted by Robin at 4/19/2004 12:36:02 PM
H
My worthless textbook gives an example where you create a structure to mimic a Random Access file layout and you are expected to use an instantiation of that to pull data out of the Random Access file. Problem is of course that this is a value type variable and we need to have option explicit o... more >>
check if I am reinventing the wheel?
Posted by Jerry at 4/19/2004 12:06:20 PM
Hi,
I have 2 dataviews for 2 tables, Master and Detail. I
filter dataview1 on a name field which gives me say 2 rows
with 2 ID's (ID field). Detail table contains 2 rows with
first ID and 2 rows with 2nd ID. Here is what I do to
filter the Detail dataview on these 2 ID values:
For i... more >>
Global shared values
Posted by Darin at 4/19/2004 11:53:07 AM
I have an application that is one EXE with mutliple DLL's. In one of the
DLL's (libs.dll) that the EXE has refeneced, I have:
Public Class Globals
Public Shared gLogin as String
End Class
This variable is ued throughout my program in libs.dll, and other DLLs.
The user then starts up... more >>
Traverse Node in TreeView Control
Posted by Shaurya Vardhan at 4/19/2004 11:32:57 AM
Hi,
How to Traverse all the nodes of a Tree View Control using VB.Net?
Thanx in Advance.
... more >>
Replacement for SendMessageAny??
Posted by Adam Maltby at 4/19/2004 11:15:08 AM
Hi,
Being fairly new to .net this may a dumb q but here goes...
I know As Any is not supported on declares any more...
What can I use in place of "As Any" or is there another way of doing this?
Cheers
Adam... more >>
get value of item from dataview
Posted by Jerry at 4/19/2004 11:00:43 AM
Hi,
If a dataview is based on a table and I filter this view
dataview1.RowFilter = "Name Like '" & strCriteria & "'"
where Name is a field in the datasource table, I get a
subset of this table. If I have an ID column, how can I
retrieve the ID values of the filtered rows? Say the
ta... more >>
Free Aim Client C# Component conversions to VB.Net
Posted by peter NO[at]SPAM mclinn.com at 4/19/2004 10:13:28 AM
Have anyone fooled around with the Fluent.toc dll?
http://www.fluentconsulting.com/components/Fluent.Toc/
This is the code they used to post in C#
Send Message Example
TocClient tc = new TocClient();
tc.SignIn("myscreenname","password");
tc.Send("mybuddy","Hello!");
tc.SignOut();
And thi... more >>
Overriding operators
Posted by Simon Jefferies at 4/19/2004 9:32:11 AM
Hello,
Is there anyway to override operators (+,- etc) in VB .NET or is this only
possible through C#?
I want to create a class that can override these operators.
Regards
Simon Jefferies
Tools Programmer, Headfirst Productions
mailto:simonj@headfirst.co.uk
www.headfirst.co.uk www.call... more >>
ADO field... retrieve table
Posted by Eric Fleet at 4/19/2004 9:11:03 AM
If I have an ADO recordset that was retrieved from a SQL Select statement, how do I determine the table name associated with a particular field?
For example if it was "Select [xxx] from [yyy]", then I want something like adoRecordset.Field("xxx").tablename to return yyy... more >>
Managing optional dates in a business object
Posted by Eric Caron at 4/19/2004 9:08:44 AM
Hi all,
I have a property in one of my classes that represents an optional date.
I'm trying to figure out if I can represent Null or Nothing as the value for
a Date data type. Branching in the data access layer to send a Null to the
stored procedure is no problem, but managing a Null date in ... more >>
Pass array from VB.Net DLL to VB6
Posted by JK at 4/19/2004 9:01:06 AM
Hi
I need to pass a 2D array from a function exported from a VB.Net DLL to a program written in VB6
Can anyone offer any advice on how to do this and what datatypes to use. Any pointers to examples would be much appreciated
Thanks
... more >>
Replacing parenthesis?
Posted by bidalah NO[at]SPAM yahoo.com at 4/19/2004 8:38:49 AM
Hi all,
I'm sure this is a really simple question for most.
Below is a line of my code that doesn't work:
SampleMacro = Replace(SampleMacro, ")", "")
The error is "Too Many parenthesis" even though the target of my
replace command is in quotes. When I change the right parenthesis in
q... more >>
There is no editor available for 'Form1.vb'
Posted by me2 at 4/19/2004 8:31:03 AM
When I launch VS.NET and start a new VB.NET project, I get the following error message. I have never seen it and would like to resolve it. Any help would be appreciated
"There is no editor available for 'C:\Documents and Settings\user1\VSProjects\Project\Form1.vb'
Make sure the application for... more >>
custom listview control
Posted by ToddH at 4/19/2004 7:21:02 AM
I know the following code is C#. I'm a vb programmer trying to learn a new language. I posted this in the c# group but never got a response. You guys seem to know alot about all languages and have all the answers, so here it is..
I'm trying to create a custom listview that uses custom listviewitem... more >>
Display error in Message Box
Posted by Sandy at 4/19/2004 7:16:04 AM
Hello
Is there a way in a web form to display a MessageBox? I am not getting Intellisense when I type the word in
Any suggestions
Sandy... more >>
iformatprovider for boolean
Posted by Eric Gofoth at 4/19/2004 7:06:01 AM
Hello
There doesn't appear to be an iformatprovider for to specify the format to convert a boolean to.
i.e. MyBool.ToString("YES/NO") does not work
Any workarounds?... more >>
ADO.NET or OLEDB
Posted by Tony at 4/19/2004 6:40:45 AM
I am writing a database application connecting to a MS Access DB. Should I
make the connection through ADO.NET or OLEDB? I think I would actually want
to use some sort of ODBC connection, but I can't find the appropriate
information. This database will reside on my customer's server instead of... more >>
MS Access and VB.NET
Posted by scorpion53061 at 4/19/2004 6:40:35 AM
I am attempting to automate the process within a vb.net windows application
of importing a text file into an access database (setting the column
seperators, first row being column names and such) but I am not finding
examples of this on the net? Has anyone ran across such a thing?
... more >>
group by
Posted by pproost NO[at]SPAM hotmail.com at 4/19/2004 4:44:49 AM
Hi everyone,
I've got a query:
select distinct(substring(beginx,1,5))as beginx
from tc201
where
lijn is null and isnumeric(substring(vak,1,1)) = 1
or
lijn = 'nieuw' and isnumeric(substring(vak,1,1)) = 1
and from this query I get:
beginx
[X00]
[X01]
[X02]
[X10]
[X11]
[X12]
[X... more >>
Blocking Images in custom browser.
Posted by Ben Thomas at 4/19/2004 3:46:01 AM
Hello Friends
I am playing around with the Web Browser control in VB.net trying to build a custom browser
The basic navigation is working OK but I am stuck trying to block images and flash files from downloading or displaying in this browser..Can some one please advise as to how to achieve this pr... more >>
Cystal: "Failed to open a rowset"
Posted by InvisibleDuncan at 4/19/2004 3:41:03 AM
I have a Crystal report that, if certain parameters are entered, returns no data. This is fine if I call it from VB6 - it just returns a blank report. However, from VB.Net, it gives me an error message of "Failed to open a rowset". Is there a way to suppress this message? It's going to worry the use... more >>
Reading pdf pagesize
Posted by Niels at 4/19/2004 3:05:35 AM
Hello
Can anyone help me with the following:
I want to show the page of an pdf (the pdf has only 1
page) on a form, and the size of the pdf in a label.
Thanks
... more >>
Data From Excel to Sql
Posted by pushpendra vats at 4/19/2004 2:33:39 AM
Hi!!
I have a small problem...
I have data in excel and want to excess it convert into
sql table with certain validations .How to do it...
Any help..
Thanks
Pushpendra
... more >>
Little offtopic VBScript
Posted by VBS at 4/19/2004 2:11:04 AM
Hell
I have problem with lond path names in vbscript. For example I would like to run a program that is in "D:\program files\putty\putty.exe" when I put this path to the obj.Run("...") it returns error that it couldn't find that file. When I copy this file on d:\... it works fine, but it's not what... more >>
What is Java Webstart counterpart in .NET
Posted by Niklas at 4/19/2004 12:31:05 AM
H
What is Java Webstart counterpart in .NET
Regard
/Niklas... more >>
|