all groups > vb.net > april 2004 > threads for wednesday april 21
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
Build error for VB.NET but not C#
Posted by Good Enchiladas at 4/21/2004 11:28:39 PM
While building on a class library for an VB.NET object model, I get
something similar to the above error message, but not with C#.
The steps to recreate the problem are as follows:
1. Build a RootLevel.dll containing only this code:
using System;
namespace RootLevel {
public class R... more >>
"Reference required to assembly 'RootLevel' containing the type 'RootLevel.Root'. Add one to your project."
Posted by Good Enchiladas at 4/21/2004 10:42:31 PM
While building on a class library for an object model, I get the above error
message.
The steps to recreate the problem are as follows:
1. Build a RootLevel.dll containing only this code:
Public Class Root
End Class
2. Build a SecondLevel.dll containing a reference to RootLevel.dll and... more >>
[How] return objects from FORM_A to FORM_B
Posted by Agnes at 4/21/2004 10:16:38 PM
Before, I post the quesiton about"how to pass parameter between two forms",
according to those kind people who answer my question. I did it sucessfully.
Now, I face another question is that.
Form A call Form B , and then FormB need to return the object or "string" to
form A and then dispose itse... more >>
Server list
Posted by Kurt at 4/21/2004 10:09:44 PM
Hi,
is it possible to get SQL Server list in VB.NET whitout SQLDMO, only with
..NET functions?
Sergio
... more >>
Scroll Richtextbox automatically
Posted by Daniel von Fersen at 4/21/2004 10:05:07 PM
Hi,
I have a Funtion
Function addLine(ByVal text As String, ByVal color As Color)
RichTextBox1.SelectionColor = color
RichTextBox1.AppendText("[" + Date.Now.ToShortTimeString + "]: " + text +
vbCrLf)
End Function
that adds a line to my Richtextbox! Know i would like the Richtextbo... more >>
broadcast message
Posted by Edward at 4/21/2004 9:29:05 PM
Hello,
I want to create an application that checks in a database for new records
and send a message over the network to all clients via a broadcast message
(like the MSN messenger). So not a popup window, but a small window near the
right bottom corner.
My question is, how can i send broadc... more >>
Help required: Threading and events/delegates
Posted by Kelly Adams at 4/21/2004 8:29:07 PM
I am stumped at the moment by something, and the searching I've done
hasn't led to a clear answer. Here is what I want to do:
I have two threads: thread A and thread B. I want Thread B to raise
an event that will be handled within the context of thread A. By
default, an event raised by Thre... more >>
Simple Comparison
Posted by Carlo B at 4/21/2004 8:07:47 PM
I need the program to compare two numbers and although the code below
works I have a feeling that it can be done in fewer lines. Is there a
better way?
Dim first, second, third, var As Integer
Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles b... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
MDIForm Parent/Child forms BEST Practice
Posted by edwinah NO[at]SPAM customercare.com.au at 4/21/2004 6:52:43 PM
Hi everyone,
could someone give me some thoughts on the best way to manage mdi
parent and child forms?
in vb6 i could scroll through the forms collection and determine which
forms were open/closed and their current state. now i can't.
before i didn't have to declare numerous named instan... more >>
Oh Control Arrays where art thou?
Posted by Bernie at 4/21/2004 6:16:03 PM
Sorry, but this ia another whine about VB.Net's lack of
Control Arrays. I am new to VB.Net and I'm building an
application that uses variable number of Label controls
that are created at run time. The number of label
controls will vary between 50 and 200. I have created an
array of labels... more >>
dataadapter UPDATE INSERT parameters
Posted by John Smith at 4/21/2004 4:42:02 PM
i dont understand how to use `em
all those @id ...
what they have to do with a datagrid bound to a dataset filled by an adapter
TIA
... more >>
Shut Down Server!!
Posted by Michael Persaud at 4/21/2004 4:35:34 PM
Hi,
Can any one tell me what to code to shut down a win2003 server given that i
have all priveledges.
Thanks
MP
... more >>
Delete all of the contents in a datagrid
Posted by Bill at 4/21/2004 4:31:03 PM
I need to delete all of the contents in a datagrid before re-loading it. Please help
Thanks.... more >>
How to wrap SendMessage
Posted by SamSpade at 4/21/2004 4:26:24 PM
I'd like to define a wrapped SendMessage. Something like:
function zz (TxtHandle as IntPtr, Msg1 as integer, Msg2 as Integer, Struct
as Structure, StructSize as integer, StructType as ???) as integer
Dim TmpStruc As IntPtr = Marshal.AllocHGlobal(StructSize)
Marshal.StructureToPtr(Struct, T... more >>
Is there any patch/service pack for framework 1.1?
Posted by Arcer P at 4/21/2004 3:48:24 PM
I am tired of errors with New Bitmap(Filename)
I already lost many day finding workarounds for this
Is there any patch/service pack for framework 1.1 to correct what some
name as memory leaks and others name as GDI+ bugs?
... more >>
Comparing datareader result to a string
Posted by JKM at 4/21/2004 3:11:02 PM
I'm a newbie to VB.NET and ASP.NET (as you'll see by my code). However, I'm not able to get a simple process to work. I'm trying to retrieve a record and then check to see if the 'accountstat' column of the DB is set to 'inactive'. I can't, however, get it to compare correctly. Here's the code
... more >>
textbox and enter event
Posted by Chris Wertman at 4/21/2004 3:02:25 PM
This seems like a simple one, ive searched the msdn and groups and cant
come up with the answer however.
I dont build gui apps very often (actually this is my first in oh 3
years)
I have a form and a textbox
When I put text in it and press enter I want it to DO SOMETHING, but I
cant fin... more >>
Dataviews and constrained datasources?
Posted by Jerry at 4/21/2004 2:59:19 PM
Hi,
I have a couple of datagrids that are based on dataviews.
If I filter dataview1 I would like to automatically filter
dataview2. I posted something about this before but I
think I didn't specifically focus about that I was using
dataviews and just datagrids. Ken Tucker was nice enou... more >>
Upgrade Error
Posted by MadCrazyNewbie at 4/21/2004 2:52:23 PM
Hey Group,
I have a VB6 Project im trying to use with VB.Net, It lets me open it and
the Upgrade Wizard Launches I click next Select EXE and Click Next Again,
the it errors with:
"Upgrade Failed: Exception Error Occurred: Invalid System Configuration
(Unable to Locate Micorosoft.VisualBasic... more >>
Windows service not releasing object
Posted by gb at 4/21/2004 2:46:05 PM
I've written a Windows Service program that monitors a directory using the FileSystemWatcher class. The monitoring is done on it's own thread. Once a particular files gets added(created) to the directory, the program calls a routine using ThreadPool.QueueUserWorkItem(New WaitCallback(AddressOf mod... more >>
basic debugging question
Posted by Bob at 4/21/2004 2:38:04 PM
In code when I'm handling an exception, I'd like to be able to tell the
debugger, if it's attached, to break and then navigate to where the
exception was thrown, which won't be where I break. Is that possible?
Bob
... more >>
need code example for class that Inherits System.IO.Stream
Posted by Bob at 4/21/2004 2:37:19 PM
I've never specifically written code to support asynchronous methods. I
can't find any good examples on the web, so I was hoping someone here could
point me in the right direction.
TIA,
Bob
... more >>
Passing BackColor Values Between .NET and VB6 applications
Posted by Jesse at 4/21/2004 1:11:04 PM
Hi,
Here's my question first and then some information about what my problem is. Anyone know how or have a function/module/class/whatever to convert from argb to rgb?
We have quite a few vb6 applications that are all called from another vb6 application called the navigator. It's kind of li... more >>
I cant Ubgrade or use my Online Resources Tap
Posted by Apocalypse at 4/21/2004 12:06:04 PM
Hi cant use Auto update on my Vb.net and i also cant see the Online Resources page it says i am not online
Canc Anyone Help me i just bought this programm and already starting to get pissed about it.... more >>
Printing in landscape mode
Posted by cpopham at 4/21/2004 11:41:02 AM
I tried posting earlier and it never showed up..
I have a simple program to print a text file. I need to know how to change the page settings to landscape if it is not already in ladnscape mode. I do not want to use a dialog to do it and this appears the only way you can do it. I just need it t... more >>
VB.NET startup icon
Posted by amber at 4/21/2004 11:36:04 AM
Hello
The strangest thing happened...I no longer can start up VS.NET from my startup menu, and I can't find the shortcut for it anywhere on my computer
The only way I can start it is to double click a project that I've already made
Any suggestions how to fix this
Thanks
ambe
... more >>
Click Events for Images at Run-Time
Posted by simchajoy2000 NO[at]SPAM yahoo.com at 4/21/2004 11:18:18 AM
Hi,
I need to create a vb.net windows program that allows users to create
copies of an image when a button is clicked and then allow them to
place the image on any point in the user interface. I am still trying
to figure out how to do that (so any suggestions on how to do that
would be welco... more >>
Base class with Protected modifier
Posted by Chris at 4/21/2004 11:06:06 AM
Hi
I am trying to create a base class with the Protected keyword
Protected MustInherit Class MyBaseClas
..
..
End Clas
And I got an error saying something like the Protected keyword cannot be used
Anyone has any idea
Thanks.... more >>
Datagrid and 12:00:00
Posted by scorpion53061 at 4/21/2004 10:37:46 AM
I am attempting to get rid of the time alarm clock in my datagrid cell by
using this in my Table Style:
Dim TRDATE As New ClassDataGridFormat
TRDATE.MappingName = "DATE"
TRDATE.HeaderText = "DATE"
TRDATE.Width = 100
TRDATE.Format = "d"
But it does not respe... more >>
FileSystemWatcher Event problem
Posted by celebrateyogesh NO[at]SPAM Yahoo.co.uk at 4/21/2004 10:19:26 AM
hello
I getting problem in FileSystemWatcher , I had wrriten the code for
the FileSystemWatcher , when i dropping the new file in the directory
, the WatcherEdi_Created event get fired , but some time it not get
fired. also this happens with muliple files dropping in same folder .
the cou... more >>
What's wrong with this code
Posted by SamSpade at 4/21/2004 10:15:02 AM
[DllImport("user32.dll", CharSet=CharSet.Auto, SetLastError=true)]public
static extern int SendMessage(
IntPtr hWnd, [MarshalAs(UnmanagedType.U4)] int Msg, int wParam, IntPtr
lParam);
--snip
SelectionFont.cbSize = Marshal.SizeOf(SelectionFont)
SelectionFont.dwMask = Rtf.CFM_FACE
D... more >>
Call External Program
Posted by Tim Sorenson at 4/21/2004 10:09:53 AM
I would like to start an 3rd oarty program from within my VB.NET and be able
to kill the app in the same program. Almost liek creating a thread and just
destroying the thread when I am done with it. Does anyone have a good place
to start for someone that does not have any experience on threads.
... more >>
how to print
Posted by bijujoy_77 NO[at]SPAM rediffmail-dot-com.no-spam.invalid at 4/21/2004 9:36:40 AM
hi friends,
I want to print an invoice with out open crystal report . what I
mean to say that i want to give direct print print commad with out
open crystal report
..
pls anybody knows this one just help me
... more >>
System Hook
Posted by Patrick at 4/21/2004 8:41:05 AM
I have been developing in VB6 for years. I am converting to VB.net. I was wondering if it is possible to create a System hook in VB.net. I know that I VB6, I could not, so I created one in C++. If it is possible, could you please provide an example. Thanks!
Also, could you please provide goo... more >>
Quotation Mark in string
Posted by anonymous NO[at]SPAM discussions.microsoft.com at 4/21/2004 7:49:36 AM
Hi,
How do I trim double quotation mark " in a string? Or, how
do I match pattern if the string has double quotation mark
already like "string"? Thanks in advance.
Hugh... more >>
Why can't a ReadOnly field be combined with WithEvents?
Posted by DareDevil at 4/21/2004 7:41:05 AM
Class MyClas
Friend ReadOnly WithEvents MyObject as AnotherClas
..
End Clas
I have a VB.NET class that has a readonly object (i.e. It can only be assigned in the constructor). This enables me to safely expose it at friend scope without the possibility that it can be accidentally released ... more >>
Can you use datasets in an Excel macro?
Posted by cr113 NO[at]SPAM hotmail.com at 4/21/2004 7:31:47 AM
Is there a way to use datasets in an Excel VBA macro? I currently use
ADO but I have to make sure all the client PC's have ADO installed.
Now that I'm switching all of my VB6 programs to .NET, I'd like to
convert all my macros as well.
Chuck.... more >>
Whidbey vs VB.NET 2003
Posted by dlangell at 4/21/2004 6:56:02 AM
I have NOT yet made the transition from VB 6 to VB.NET 2003. I know some of the general differences, but I'm not yet to the point where I would feel comfortable starting a new project in .NET. At any rate, I was going to get some books and begin learning more about it and try to make the jump, but... more >>
Setting the default value in a dataset
Posted by Matt Tinson at 4/21/2004 6:36:03 AM
Hello
I have a datagrid with a datetimepicker column in it, which is bound to a dataset (MyDataset). The column in the dataset set that is mapped to the datetimepicker is called MyOrderDate and contains null values.
I have tried to following
to set the null values to 01/01/1900, as it do... more >>
Keyboard Listener
Posted by yiksau NO[at]SPAM hotmail.com at 4/21/2004 3:18:27 AM
Hi all,
I'm just a newbie doing undergrad in Computing. I always face problems
when it comes to looking for an appropriate method. Lately, I've been
trying to write an application that listens to every single keystroke
from the keyboard. I don't seem to be able to find the proper way to
do th... more >>
Query the DHCP server via .NET - how?
Posted by andrew_webby NO[at]SPAM hotmail.com at 4/21/2004 3:12:07 AM
Hi
Anyone know a way I can (via .NET) query my dhcp server and enumerate
all the scopes defined within?
Been looking to no avail - it would appear a couple of guys asked this
very question fairly recently and received no response. I hope this
doesn't mean it's impossible !
I have the DHC... more >>
Serialization
Posted by Jarod at 4/21/2004 2:56:03 AM
Hell
I would like to use a seriazation to save one object at the moment and then another one... and antother one... And if I need read them all back. Is there a nice way to do it ? Beacause in all tutorials there are example how to save one object or arraylist of objects... But let's say this array... more >>
Rnd Command
Posted by V Power at 4/21/2004 2:47:58 AM
Hi,
I have just been putting together a random number
generator to practice with VB .NET. The Rnd command on its
own works fine, however as soon as I add = 10 to the
string I get a return value of false. If i use the string
CStr(Int(Rnd() = 10)) I get a return value of 0.
What am I doi... more >>
Readonly Properties and passing byRef anomaly...
Posted by DareDevil at 4/21/2004 2:06:02 AM
I have written a method that should modify the folder path passed to it into one that exists and is selected by the user. It then returns a boolean depending on whether a folder path was selected by the user
It then dawned on me that I was passing in a readonly property into the method yet neither ... more >>
Is there a Serializable Sorted List in .NET?
Posted by Charles Law at 4/21/2004 1:59:05 AM
I want to sort a collection of objects, which has been read from an XML
file. I also wish to be able to access the elements of my collection by key
or index.
Is there such a collection already that I can use? I have tried inheriting
from SortedList, but the deserializer gets upset and says tha... more >>
Problem with Crystal Reports since upgrading to VS.NET 2003
Posted by hughsie1000 NO[at]SPAM hotmail.com at 4/21/2004 1:35:27 AM
Hi
I have some crystal reports which worked fine in VS.NET 2002 but no
longer work since I upgraded to VS.NET 2003.
They all give the error 'Invalid Report Source'.
Here is what I am doing:-
-------------------------------------
Dim cnSQL As New OleDb.OleDbConnection(GetConnectionStrin... more >>
simple question about exchanging values between two forms
Posted by sajid_yusuf NO[at]SPAM yahoo.com at 4/21/2004 12:22:27 AM
Hello!!!
I have a form called "Main", which has a datagrid. Now what I want to
do is to allow a user to select anyone of the rows on the datagrid (on
the "Main" form) and then click a button to get another form which has
a listbox with list of values. When a user clicks on anyone of the
value... more >>
|