all groups > c# > july 2004 > threads for saturday july 10
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
Creating child forms?
Posted by jay at 7/10/2004 11:44:07 PM
I'm trying to open up an existing form from my main form. In that new form,
I want to pass a value to a starting form from a button click.
I'm using:
Form2 f = new Form2()
f.Show()
but how do I reference the Form1 from the Form2?
I tried using ParentForm property, but unsuccessfully.
... more >>
InvalidCastException
Posted by Chris Li at 7/10/2004 7:43:06 PM
I have the following classes:
Public Class BaseClass
{
...
}
Public Class DerivedClass: BaseClass
{
...
}
The following code will throw out an InvalidCastException:
BaseClass base = new BaseClass();
DerivedClass derived = (DerivedClass)base;
What do I need to do to make the cas... more >>
TCP events in C#?
Posted by Peter Steele at 7/10/2004 7:09:15 PM
I'm writing a client/server application that uses TCP/IP to communicate. I
using the TcpClient/TcpListener classes to set up the communication and
these work well, but I'd like to set up some events to trap when data
arrives from the server to the client and vice versa. I've used some TCP/IP
com... more >>
DllImport prob
Posted by pnp at 7/10/2004 7:08:12 PM
Hi all,
i'm having a problem using DllImport with Win98. It works just fine with XP
& 2000 but in 98 it prompts: "Unable to find xxxxx.dll". Any ideas?
error is: System.DllNotFoundException: Unable to load DLL (etc\fectfmn.dll).
Peter
... more >>
Determing if an object is a parent of another object
Posted by kurotsuke at 7/10/2004 6:32:30 PM
I've subclassed the TreeNode class and created:
NodeAbstract : TreeNode
NodeFolder : NodeAbstract
NodeFile : NodeAbstract
The nodes have been added to a Treeview.
Now, I would like to do a drag and drop between nodes inside the
treeview.
I reference all the nodes with the type NodeAbs... more >>
Intercept Paste on TextBox control
Posted by Radovan Radic at 7/10/2004 4:52:41 PM
Hello all,
I am new to .NET and a i am moving from Delphi (finally!) to C#.
Now, i am trying to develop custom TextBox for numeric input. I have done it
almost, now i need to prevent paste so someone couldnt paste letters into
numeric text box. How this can be done in C#? In Delphi there was m... more >>
C# Raw Sockets
Posted by Adam Clauss at 7/10/2004 3:43:29 PM
I am (attempting) to move an existing socket application to use raw sockets.
Right now, my application is essentially a port forwarder. Upon receiving a
connection, it will open a connection to an "internal" server and simply
relay all information back and forth (when the client sends somethin... more >>
Hashtable Item in C#
Posted by Anony at 7/10/2004 1:27:14 PM
Hi All,
I used the Hashtable.Item in VB.Net, i.e.
Dim Tables As New Hashtable
Tables.Item(ID) = objTable
Now, I tried the same in C#, and got an error says the Hashtable has no Item
property.
Hashtable Tables = new Hashtable();
Tables.Item(ID) = objTable;
Did I miss something or I ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
passing events to UserControl
Posted by Andy at 7/10/2004 12:29:40 PM
Hi everyone,
Small problem we are having here, just wanted to see if anyone could help
out.
Basically we have a user control with a textbox (that is docked to fill the
whole control) that is going to be a base class for other controls. When
you place this user control on a form we want to ... more >>
[C# and WMI] : Programm run to slow
Posted by nico at 7/10/2004 9:52:58 AM
Hello
I have write this program that retrieve all directory and subdirectory
recursively of a given directory given in parameter.
For each directory, the script find all user permission for the current
directory and add the username, permission and directory name into MySQL.
The code work... more >>
Menu navigation with C#
Posted by Valerie Hough at 7/10/2004 9:35:29 AM
Say I have a context menu structure like:
Top Level 1
Sub Level 1a
Sub Level 1b
TopLevel 2
Sub Level 2a
Sub Level 2b
SubLevel 2b-1
SubLevel 2b-2
item1
item2
.
.
SubLevel 2c
From my application... more >>
MSMQ query
Posted by Mat Andrews at 7/10/2004 8:54:17 AM
I'm getting an error "Message queuing is not installed on this computer".
This implies that I need to install MSMQ on the computer sending the message
as well as the computer which is to receive the message. Right? Seems a
bit of an overhead!
Cheers
... more >>
Type.GetProperty using interfaces and inheritance
Posted by Robert Zurer at 7/10/2004 7:53:04 AM
I have two interfaces one inherits from the other
public interface IEmployee
{
string FirstName{get; set;}
string LastName{get; set;}
}
public interface IHRMSEmployee : IEmployee
{
string SSNum{get; set;}
}
PropertyInfo propInfo = typeof(IHRMSEmployee)GetProperty("Last... more >>
connection problem
Posted by superbsoda NO[at]SPAM yahoo.com.sg at 7/10/2004 7:50:05 AM
recently i tried to do a simple web site with server with visual
studio 2003, the other a sql server 2000.
when i try to run aspx pages i get:
SQL Server does not exist or access denied.
I'm not sure what steps to take to authorize asp.net to connect to my
sql server. The app server has n... more >>
Database for C#
Posted by Matthias Kwiedor at 7/10/2004 6:05:33 AM
Hi!
In my current Project i use MS Access as Database. I know some Databases
like SQL Server, Oracle, mySQL and the DB/2 from IBM, but no more "Stand-
alone" Databases.
Did anyone know a Database, where i can use like MS Access (this means,
without needing to install a Database like mySQL... more >>
how to know a bool array are all T/F
Posted by kelkel at 7/10/2004 5:10:01 AM
I've created 5 threads to work in my program and I've also created a thread to monitor all 5 threads had still alive or not. Below is part of the monitor thread.
bool[] threadState;
threadState = new bool[num_thread];
threadState.Initialize();
do
{
if (threadState[] == true)
exitLoop... more >>
C# XPath - get data without using XPathNodeIterator? Help!
Posted by Chua Wen Ching at 7/10/2004 3:36:02 AM
Hi there,
I had this xml file with me (not yet consider implementing xml namespaces yet).
<?xml version='1.0'?>
<Object>
<Windows>
<EID>1</EID>
<EDesc>Error 1</EDesc>
</Windows>
<Windows>
<EID>2</EID>
<EDesc>Error 2</EDesc>
</Windows>
</Object>
... more >>
Shift and Logical Operator - for what?
Posted by Chua Wen Ching at 7/10/2004 2:10:02 AM
Hi,
I had some beginner questions. Do we need Shift << >> or Logical AND OR XOR operator in our daily programming?
I am not sure why i need to use it? I had some samples of c# codes using it.
Can someone share their experiences why someone should use those operators and what type of scenari... more >>
Hey Mr. Skeet
Posted by Michael C at 7/10/2004 1:44:54 AM
Something you said the other day, about hiding an asynchronous Invoke of a
UI control in a property, stuck with me. Can you point me to an example of
this? BTW - I'm about 1/4th of the way through your website. Wow! I'm
re-reading your article on Multi-threading in .NET. I was just trying to... more >>
web multi player game
Posted by Sharon Tal at 7/10/2004 12:27:25 AM
Hi to all.
I'm developing a web multi player game.
The game will run on the server, and the clients will just show it.
All the clients will have few events, by which they can change the game
progress.
I'm thinking of building the server in C#, and use IIS for communication.
The client will be ... more >>
merging strings to access variable
Posted by Barbara at 7/10/2004 12:02:42 AM
Is it possible in C# to merge two strings to access variable?
(Like in JScript: document('variable'+200).style...)
What I am trying to do is:
I have a class Structure.cs
I would like to create several Structure-s, fill their elements with data,
but in a way that
I can choose starting number... more >>
|