all groups > vb.net > may 2005 > threads for thursday may 12
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
threads eol
Posted by pmclinn at 5/12/2005 8:07:07 PM
Lets say you have a component that has all local scope variable in it.
it preforms a single io proceedure.
You start the thread and it runs to completion. Will the thread then
be disposed of....
... more >>
Caching errors
Posted by BrentonMCA at 5/12/2005 6:58:02 PM
I want to be able to cache a queue in a VB.Net application. I assume I need
to use system.web.caching.
I can create a cache: myCache = new Cache
But I can't access it: isnothing(myCache) returns false but
myCache.Count, isnothing(myCache.Count), myCache(<key>) = <queue object>,
etc, all ca... more >>
Memory managment.
Posted by pmclinn at 5/12/2005 6:43:05 PM
Newbie question:
If I build a dll, how do I create a dispose method for it? Is it as
simple as adding the following code?
Public Overloads Overrides Sub Dispose()
MyBase.Dispose()
components.Dispose()
End Sub
I have several classes that pass back delegates and... more >>
DLL: Exporting Functions
Posted by victorsk at 5/12/2005 6:41:07 PM
Hello,
I have a dll which I compiled in VB. Now I would like to use this dll in
MapBasic program. However, I keep getting an error saying that the function
which I am calling cannong be found. After doing some research, I learned
that VB's functions are not exportable and suggestion is t... more >>
form that releases focus?
Posted by Erik Ekedahl at 5/12/2005 5:50:08 PM
A friend and I have worked together on a simple program for keeping track of
what we are doing, simply by popping up (at timed intervals) a small window
where we can enter some text that will be saved with a timestamp in an
xmlfile. This works great except for one thing.
First the sequence:... more >>
Application.Run problem
Posted by Tom Edelbrok at 5/12/2005 4:42:30 PM
I posted this accidentally to dotnet.general, but it is a VB.NET problem, so
here it is again ...
With VB.NET in VS 2003 I am using "Sub Main()" as my startup object, and
from within Sub Main() I use "Application.Run(MyMainForm)". Essentially I am
starting my application and then displaying t... more >>
Converting from string to a binary array
Posted by Arlyn at 5/12/2005 4:11:56 PM
I was wondering how I would convert String data into a binary. I want to
store and the binary data in a mssql table. When I retrieve the binary data
I want to convert it from a binary array to a string. Any help would
greatly be appreciated.
... more >>
Add a button to a Windows Form Datagird
Posted by Kiran at 5/12/2005 3:35:50 PM
Hi,
Does any one know how to add a button to every row of a windows form =
datagird.
Can anyone provide me some code on this.
I have searched a lot but couldn't find any. I am posting this for the =
second time.
Any help would be appreciated
Thanks
Kiran... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Regular expressions Problem
Posted by Michael Persaud at 5/12/2005 2:45:27 PM
Hello,
I am trying to use the following in a project to identify a table that =
is ided=3D"news of the day"
Function readHtmlPage(url As String) As String=20
result =3D ....'as string
dim regexp as regex =3D New Regex("<table>((.|\n)News of(*?))</table>", =
RegexOptions.IgnoreCase... more >>
Isolated Stoarage
Posted by Husam at 5/12/2005 12:16:12 PM
Hi EeveyBody:
I creat Directory by using Isolated storage method and this what I did:
Dim isoFile As System.IO.IsolatedStorage.IsolatedStorageFile =
System.IO.IsolatedStorage.IsolatedStorageFile.GetStore(IsolatedStorage.IsolatedStorageScope.User
Or IsolatedStorage.IsolatedStorageScope.Ass... more >>
Enumerating an Enum structure
Posted by Anthony Sox at 5/12/2005 11:26:14 AM
Does anyone know if its possible to use an enum structure as a data source
for a combo box or list box. if not, is it possible to enumerate an enum and
list it values
Thanks in advance
... more >>
Restoring a minimized MDI child window
Posted by Mitchell Vincent at 5/12/2005 11:16:36 AM
If the user minimizes an MDI child it goes to the bottom of the MDI
parent - great, but can I restore it?
So far none of
..Activate()
..BringToFront()
..Focus()
... have worked..
--
- Mitchell Vincent
- kBilling - Invoices Made Easy!
- http://www.k-billing.com... more >>
Structured Storage
Posted by Gerald Hernandez at 5/12/2005 10:48:34 AM
The .NET Framework is huge, and either this isn't in there, or I'm just
missing it...
Are there any built-in methods to work with OLE2 Structured Storage files?
Or am I stuck with using COM Interop?
TIA
Gerald
... more >>
Detecting if a window is already open (MDI app)
Posted by Mitchell Vincent at 5/12/2005 10:11:12 AM
I have an MDI application here and I would like to have one of the
windows only show once (maximize and get the focus if it has already
been created).
How can I check if a window already exists in an MDI app?
Thanks!
--
- Mitchell Vincent... more >>
Launching New Browser
Posted by UofM Programmer at 5/12/2005 9:46:02 AM
I have tried almost every suggestion in these posts and my asp/vb .net
application still cannot launch a new browser window. Using WinXP task
manager, the best I can see is the start of a iexplore process but again, no
new window is poping up. It has got to be something simple, right?!!?
... more >>
External application in foreground
Posted by VB User at 5/12/2005 9:12:15 AM
I have to start an external imaging application in the splash screen of my
application. But this external application appears in the foreground when
the main screen is displayed until I manually minimize the application.
Is there any way to avoid this?
Thanks... more >>
Timing for ExecuteNonQuery
Posted by jdb at 5/12/2005 8:22:07 AM
Hi,
I am adding a record to the database using an ExecuteNonQuery, which adds
without problem. Now after the record is added I run a method passing in
some info as well as the curretnly opened connection (byRef cn as
OleDbConnection). Am using an Access 2000 database. Now in this new m... more >>
COM+
Posted by Arnaldo Fuziy at 5/12/2005 8:15:52 AM
Hi all,
I'm a VB6 developer for quite some time now and have also developed a mobile
app in VB.Net and C# a couple of years ago. I've been playing around with
..Net since then...
Now, we're starting to design the new corporate system and have developed a
couple of forms and components. We've ... more >>
VB .NET and Crystal Report
Posted by Ahmed at 5/12/2005 8:04:08 AM
Hello all,
I have textboxes and RTBs controls in my form. I will most likely be
using crystal reports to print the contents of these controls. My
question is about the formating of text. if the text in on of the
textboxes or RTBs wraps around ( a new line without pressing the enter
key), woul... more >>
Assigning null value to an integer
Posted by Roy at 5/12/2005 7:54:03 AM
Hi all,
How can I assign null to an integer. This doesn't work
Dim intMyValue As Integer
intMyVal = System.DBNull.Value
Thanks in advance,
Roy... more >>
return a value from sql table
Posted by KevinMGore at 5/12/2005 6:28:04 AM
I'm trying to create a getFunction that returns a single value from an sql
table (the next sequence number actually in a group of records). I tried two
different methods, a command and data adaptor. Here is the code:
Private Function getNextSeq()
Dim strsql
Dim lds As DataSet ... more >>
Best practice to save user and session preferences for a .NET application?
Posted by RS at 5/12/2005 6:10:28 AM
Hi,
What's the best practice to save user preferences for a .NET
application . For example if the user does not want anymore to see
Tip-Of-The-Day (TOTD), the user can tick a checkbox on the window
showing the tip (TOTD). That tick will be recorded so that next time
the user logs in, the appli... more >>
Skip creation of My classes?
Posted by Dirk Theune at 5/12/2005 5:14:02 AM
Hi,
In visualbasic2005, classes from the My namespace (e.g. My.MyProject) are
automatically added to the assemblies created by vbc. Is there a compiler
option to skip the creation of these classes?
Thanks in advance,
Dirk... more >>
Concurrency violation on Row Delete in Data Grid
Posted by BobAchgill at 5/12/2005 1:45:48 AM
Do you know why this error might be happening? Maybe it
is because I have two data adapters open on the same MDB
file?? If this is the problem... how can I keep them
from disturbing each other?
An unhandled exception of
type 'System.Data.DBConcurrencyException' occurred in
system.data... more >>
drop down buttons
Posted by nikhilDotNet at 5/12/2005 1:44:02 AM
hi,
I am working in VB.NET. I want to create a tool which help in
selecting a button from a drop down buttons. This dropdown button must
look just like the buttons provided in MS WORD for the selection of
outside borders.
The reason for the need of this control is that. i have a seve... more >>
Multiple OleDbDataAdapters for single mdb
Posted by BobAchgill at 5/12/2005 12:48:18 AM
Is it OK to have more than one OleDbDataAdapter for a
single MDB file?
The first adaper to the MDB is only doing Selects. That
is working fine.
Though my second adapter is unsuccessful in performing
row Deletes.
Thanks!
Bob
... more >>
Timer/debugger interface problem
Posted by Tom Edelbrok at 5/12/2005 12:00:00 AM
I have narrowed down a previous problem to the following more specific
items:
1) I have my startup object in VB.NET (VS 2003) set to Sub Main().
2) Inside of Sub Main() I do a "Application.Run(MyMainForm)"
3) Inside of MyMainForm_Load I create an object, ie: "poMyObj=new clsMyObj"
4) W... more >>
Fastest way to see if item exists in list
Posted by Lucvdv at 5/12/2005 12:00:00 AM
What's the fastest/easiest/best way to determine if a certain item exists
in a list?
(And what's the slowest/dumbest - I suppose that's enumerating the elements
and comparing each in turn in VB code?)
My collection can have up to a few thousand elements (each either a GUID or
an ID card num... more >>
TreeView need help
Posted by shoa at 5/12/2005 12:00:00 AM
Hello
I have a TreeView in my Window application. In that I have some nodes
(parent nodes), each parent node has some children. What I want is that when
I double click a node (either parent or children), I can print the Text of
that node. I have:
Private Sub TreeView1_DoubleClick(ByVal send... more >>
Fill data toCombo box from dataset
Posted by K R Lal at 5/12/2005 12:00:00 AM
Hello all,
how can i fill the data to combo box from dataset
please help me.
regards
lal
... more >>
Problem when comparing two DateTime variables
Posted by Mika M at 5/12/2005 12:00:00 AM
I need to compare two DateTime variables named as t1 and t2 using VB.NET
2003. If t1 is any earlier time as t2, only then program should do
something like...
If (t1 < t2) Then
'DoSomethingHere...
End If
But I don't figue out how comparing DateTimes is working.
I tried to compare th... more >>
threading problem again
Posted by dzemo at 5/12/2005 12:00:00 AM
I want to have two thread at the same time to execute. Both of threads have
to execute some code in specific intervals for example first thread have to
read from COM port every 5 seconds and other thread have to update database
every 10 seconds (code for reading from COM and update database I ... more >>
Exception 'can't access CDO message' when using System.Web.Mail to send email in some clients
Posted by ywchan at 5/12/2005 12:00:00 AM
It works well in my development PC and some of the clients...but some can't
work properly...please help.
thanks!
... more >>
Link Different Sever problem
Posted by Agnes at 5/12/2005 12:00:00 AM
I had connect another SQL server VIA VPN , the server name is IP e,g
123.123.123.123
I can read the data sucessfully,
However, I want to insert some data from my local server.
sp_addlinked server '123.123.123.13'
sp_linkedserver (I can see it)
then select * from [123.123.123.123].database.... more >>
Dynamically name a object?
Posted by -BA- at 5/12/2005 12:00:00 AM
Hi!
I wonder if it is possible to dynamically name a object (e.g. checkbox,
combox etc.) during runtime.
I know I can create a object during runtime like this:
Me.MyLabel = New Label
Me.Controls.Add(Me.MyLabel)
MyLabel.Text = "This is a label created during runtime."
but I would need... more >>
VB.NET OLE Declaration
Posted by Bernard_Bourée at 5/12/2005 12:00:00 AM
I want to use an OLE Automation Interface called XXX developped by a
third party and have the following declarations:
Public oAB As XXX.Application 'Amibroker Apllication
oAB = CreateObject("XXX.Application")
Dim oStocks As Broker.Stocks
Dim oStock As Broker.Stock
... more >>
Returning the value of a Datagrid ComboBox
Posted by Peter W Johnson at 5/12/2005 12:00:00 AM
Hi Guys,
I have a form setup with a Datagrid. The Datagrid has a combobox in one
column. I am trying to find out the value of the combobox after it has been
changed.
I have added a handler for the SelectIndexChanged event to the TableStyles
Class as follows:-
AddHandler ComboTextCol.C... more >>
IR
Posted by Michael Chong at 5/12/2005 12:00:00 AM
I need to do some programming on Infrared, any tutorial or lesson that I can
get from the internet or you may suggest which classs should I look for in
msdn? TQ
... more >>
|