all groups > c# > september 2004 > threads for friday september 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 30
Inheritage - or what??
Posted by Arne Rasmussen at 9/24/2004 10:35:35 PM
Hi there
I have this problem - might seem stupid to you and a cause of poor design
....but nevertheless it's a problem that i'm facing:
I have 1 to X singletons witch have exactly the same code - but they are in
different namespaces as they hold some information witch belongs to this
namespa... more >>
e.Handled and F10
Posted by Amos Soma at 9/24/2004 10:12:57 PM
In my Win form, I have KeyPreview set to True. In my form KeyUp method, I
have the following code:
if (e.KeyCode == Keys.F10)
{
e.Handled = true;
MessageBox.Show( "F10 pressed" );
}
The message is displayed correctly. However, focus moves off my form and
unto my menu, even though... more >>
information in exe's
Posted by Michael Maercker at 9/24/2004 9:19:38 PM
i was wondering what information can be read out of a compiled exe (or - if
it makes a difference) out of a dll. i'm thinking of license or registration
info, compile-date, string-values etc.. somewhere in this newsgroup i
stumbled over an entry someone said that class-members could be found; or
... more >>
Need to create Items for a game.
Posted by mb at 9/24/2004 9:15:03 PM
what is the best way to do this:
In a game I want to a class called "Items". This class will have the game
items
public class Items
{
public int Chair
public int Table
. . .and so on . . .
}
Then I want each item in the Items class to have properties like X and Y for
loc... more >>
TCP option Keepalive.
Posted by Kalpesh Modha at 9/24/2004 5:19:42 PM
Hello.
I sometimes get this error message "An existing connection was forcibly
closed by the remote host" for no reason what so ever in my program. I was
wondering keepalives would help in this matter. My program runs fine and
then all of a sudden the client dies and this message is what ... more >>
How to add ListBox as Row of DataGrid
Posted by TusharP at 9/24/2004 4:49:45 PM
Hi Guys,
How to add ListBox as a row (Sub row) of DataGrid...
Please help me
Tushar P.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.766 / Virus Database: 513 - Release Date: 17-Sep-04
... more >>
Salamander.NET Linker from Remotesoft
Posted by Gawel at 9/24/2004 4:20:12 PM
Hajo,
I consider usage of below tool.
http://www.remotesoft.com/linker/
Do you have any bad/good experience with it?
What are its limitations ?
thanks
gawel... more >>
a windows service to delete files
Posted by Keith Henderson at 9/24/2004 4:11:32 PM
It seems that I will soon have to write a windows service (or if there's
something more appripriate?) that will delete files off of a hard drive.
Here's an example, a file will be placed in a directory, at the time it is
placed there, a row will be inserted into an RDBMS table which gives the... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Filestream not closing!!!
Posted by lh at 9/24/2004 3:43:49 PM
I'm having problems with the filestream object not releasing its grubby
grips on a file that i am using it to read the contents of. The application
is working for the first file that i drop into the directory, but the second
file always causes an error. The error is a file.io.exception "file al... more >>
Drag drop in web deployed app
Posted by Dante at 9/24/2004 3:32:30 PM
Has anyone ever successfully gotten a web deployed exe to have Drag Drop
capabilities?
I'm currently getting the message:
An unhandled exception of type 'System.InvalidOperationException'
occurred in mscorlib.dll
Additional information: DragDrop registration failed.
Any help woul... more >>
MD5CryptoServiceProvider class
Posted by Viktor Popov at 9/24/2004 3:28:29 PM
Hi !
I have a question:) I'm using the MD5CryptoServiceProvider class because I
encrypt the user's password when he/she opens the registration form. The
question is when a user creates for his/herself an account where does the
encryption commit? On the client side(his PC) or on the Server side... more >>
communicate with progressbar
Posted by Steve Teeples at 9/24/2004 3:15:06 PM
Is there a way for code from one class of C# to send a communication to a
progressbar in another class to update the bar during runtime?
--
Steve... more >>
Call to base method
Posted by Janaka at 9/24/2004 3:02:55 PM
When using object inheritance is it possible to call a method of the base
class more than 1 object below the inherited class?
For example, assume that the Labrador class inherits all the way down to
animal - Labrador -> Dog -> Animal
Animal has a virtual method called Walk() which is overr... more >>
Doublebuffering of more then one object
Posted by Tamir Khason at 9/24/2004 2:59:13 PM
I have a couple of objects(eg. Rectangles) for dragging them I'm using
double buffering, and it works fine while using only one of them. Once I'
trying to put another object on screen the first one is disapperas and there
is flicking while draggings.
Please advice.
--
Tamir Khaso... more >>
ListViewItem property ListView
Posted by Chuck at 9/24/2004 2:52:47 PM
The ListViewItem class contains a readonly property called ListView which
returns the item's containing ListView object.
I have not been able to figure out how this value is set. The
ListViewItemCollection class Add method has to be able to set this value,
but ListViewItem does not expose ... more >>
Sorting alphanumeric table column correctly
Posted by VMI at 9/24/2004 2:10:31 PM
How can I sort a table column correctly when the table has values like "0",
"A1", "AA-1", "B21", "3C", 4-32A", "1", "11-1", 2-A", etc... The table will
then be loaded to a grid and that's when it'll have to sort correctly (when
clicking on the col. header).
Windows Explorer (in XP) seems to do... more >>
fileattributes parsepoint
Posted by Yves Dhondt at 9/24/2004 2:06:01 PM
Hello,
one of the possible attributes of a file or a directory is ReparsePoint.
When there is such a point, there is a block of user-defined data associated
with the file/directory. In the past I used DeviceIoControl to get that
data. Now I wonder if there might be a direct way to get the data... more >>
how to add a control to Global Assembly?
Posted by Rog at 9/24/2004 2:00:27 PM
Hello,
I downloaded a Micrsoft Web Controls package from
http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/dnaspp/html/aspnet-
usingtreeviewiewebcontrol.asp
After reading the readme file and following the
instructions I have not been able to create a simple app
with a... more >>
Newbie : determine what's changed on a web page
Posted by Mike D at 9/24/2004 1:55:53 PM
I am binding a Dataadpter to 25 Text controls on a Web form. There is too
much data to bind to a datagrid(because it runs off the screen) and the
datalist is not user friendly for designing the screen. Enough about that
though and 24 Text controls.
What are the commands for looping throug... more >>
Book for C#?
Posted by Kuit_Been at 9/24/2004 1:31:18 PM
Anyone know any good book to start learning C#.NET?
I need it for my final work this year.
Would like to learn it over a short period (if possible).
Need to build a program in C#.NET which can read/import external files,
import external bitmaps, send to certain ports (RS232), write files, chec... more >>
screensaver
Posted by Vipin at 9/24/2004 12:56:04 PM
Hello,
I want to write screensaver in c#.
Whats the steps like to do this?
Thanks
Vipin
... more >>
Union Structure Marshaling
Posted by jholtz NO[at]SPAM accuratetechnologies.com at 9/24/2004 12:49:37 PM
THANK YOU 1,000 fold if anyone can help me in this Marshalling:
C structure
===========
struct mystruct {
char tag;
char field1;
char field2;
char field3;
long field4;
union struct2 tagData;
}
union struct2 {
struct struct3 union1;
struct struct4 unio... more >>
how to run an exe created in C#
Posted by Muaz Farooq at 9/24/2004 12:21:02 PM
hi everyone!
i have created an exe. of my project and i want to run that on a computer
which don't have .Net installed on it. So here somebody told me that atleast
that computer should have .net framework installed on it to run the exe.
i installed the .Net framework on that computer but t... more >>
AppDomain / Assembly Bug or what's wrong?
Posted by cider123 NO[at]SPAM hotmail.com at 9/24/2004 11:58:59 AM
The following is a basic example of how this system works:
C:\MyApp\Application1.exe
C:\MyApp\MyMonitor.exe
In SQL Server, we keep an EXE (Application1.exe) file stored as
binary.
I read this out of SQL Server into a byte[] array (through
MyMonitor.exe) and then pass to a function for Ve... more >>
Help :) Is it possible.
Posted by Steffen Balslev at 9/24/2004 11:56:40 AM
Hi boys and girls.
Need some advice from you code gurus out there :).
Have:
ServiceA
COM+ Adapter
ServiceB
Known issues.
Each component runs in different identity.
I am not able to modify ServiceA.
ServiceA can only communicate using COM.
Problem: Sending me... more >>
Converting string arrays to double
Posted by Christine at 9/24/2004 11:51:01 AM
I was wondering if it is possible to convert an array that is of type string
to type double so that matrix operations can be performed on it? I have a
string array because I needed to split the array before performing any
operations on it. Thanks!!... more >>
randomize in c#
Posted by Starbuck at 9/24/2004 11:42:57 AM
Hi all
Is there a function in c# like the VB randomize command
Thanks in advance
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.762 / Virus Database: 510 - Release Date: 13/09/2004
... more >>
string array
Posted by Vai2000 at 9/24/2004 11:30:47 AM
Hi All, How do you create a string array and initialize it with *
// Doesn't work
string [] arr=new string[7]{"*"}
// I guess this is correct, though I want a better/smart way
string [] arr=new string[7]{"*","*","*","*","*","*","*"}
TIA
... more >>
Scraping data from a web form submit
Posted by Brent at 9/24/2004 11:17:06 AM
Hi,
I want to build an app (C#, windows app, or web app, shouldn't make a
difference) that submits an address to the canada post website's address
lookup and then scrape the postal code out of the resulting page. Here is
their page. http://www.canadapost.ca/tools/pcl/bin/advanced-e.asp It use... more >>
SIP stack in c#?
Posted by Thomas Korsgaard at 9/24/2004 11:12:22 AM
Hi,
I am looking for nice open source SIP stack written in C#. Did a
internet search and have not found any yet. Can anybody help with this?
Thanks
/Thomas... more >>
Add/Remove Programs: The specified service does not exist as an installed service
Posted by charismatic_evangelist NO[at]SPAM yahoo.com at 9/24/2004 11:11:52 AM
I am trying to write a Windows Service in C# .NET Version 1.1.
I followed Microsoft's directions:
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbwlkwalkthroughcreatingwindowsserviceapplication.asp)
to the letter and everything worked fine.
Then I went into... more >>
Terminal Service: conocer la IP del cliente remoto?
Posted by Liber at 9/24/2004 10:52:24 AM
Utilizando .Net, como puedo obtener la dirección ip o el nombre del cliente
remoto que está conectado por Terminal Service a un Servidor de Terminal ?
En el Terminal Servide Manager me muestra el nombre del cliente remoto, o
sea del equipo remoto, pero no se como obtenerlo utilizando C# .Net.
... more >>
How to create web page with spreadsheet like functionality?
Posted by Tom at 9/24/2004 10:48:35 AM
Hello,
I'm looking for a tool that would allow me to create a web page with the
spreadsheet like functionality. Basically, I want to be able to type in a
number in the cell and have all totals being calculated automatically
without having a page refreshed (or a trip to the server). That would ... more >>
MenuItem missing Tag field.. why?
Posted by Jesper at 9/24/2004 10:22:18 AM
Hi,
When creating a popup menu I find it rather difficult to provide the
eventhandler for the MenuItem with enough information. My actual problem is
that I create a popup menu with a list of objects of which one, by clicking
the item, must be assinged to another object. I use the same event... more >>
Can I consume a web service with a Socket in c# ?
Posted by John Bailo at 9/24/2004 10:15:19 AM
I wrote a .NET/c# webservice which I then needed to consume from java server
pages.
The simplest ( and best ) solution I found, was some code to open a socket,
and send a SOAP message directly to it...constructing the SOAP message with
a class that builds the string.
Then I parse the retu... more >>
Passing objects by value
Posted by Arghknork at 9/24/2004 10:13:08 AM
Heres a dumb one. I know you can't actually pass reference types by value in
C#, but I want to pass an object into a method and allow that method to
manipulate a copy of that object, such that the original object is unchanged.
There's got to be an easy way to do this. Anyone have a suggesti... more >>
simple oleDB problem
Posted by Mark Ogilvie at 9/24/2004 9:50:06 AM
Hi
I'm new to C#, and have a problem which I'm sure is simple.
I have the following 3 lines of code:
string ConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\tw97_data.mdb;Persist Security Info=False";
string SelectPartiesString = "SELECT parties.[party number],
clie... more >>
what is the difference between no-touch and click-once deployment?
Posted by zbcong at 9/24/2004 9:41:45 AM
what is the difference between no-touch and click-once deployment?
... more >>
Console Windows Forms hybrid
Posted by Mark Allison at 9/24/2004 9:20:07 AM
Hi,
I have an application that I want to be to run in Console mode and GUI
mode. If no params are entered, I want the GUI fired up, if params are
entered, then go into console mode.
I believe I have all the code set up to do this, however when I issue a
Console.WriteLine instruction, not... more >>
Hitting return next to a text control
Posted by Mark Allison at 9/24/2004 8:46:38 AM
Hi,
On my Windows Form I have a text control and a button. The text control
is single-line and I want the user to be able to type something in it,
but when they hit Enter, I want this to click the button, (so the user
doesn't have to click the button using a mouse).
How do I do that?
... more >>
XML Class Deserialization from Class itself
Posted by Just D. at 9/24/2004 8:13:30 AM
All,
What's the easiest way to deserialize class from the class itself? Step by
step. We create some class, add all required USINGs, make this class
serializable, then add a method like:
public string Serialize()
{
XmlSerializer xs = new XmlSerializer(typeof(CClassName));
MemoryStre... more >>
create executable
Posted by Sarah at 9/24/2004 7:49:02 AM
hi,
how can u make an executable that also has the .dll files?
i was told to try:
1) Create your Windows/Asp application.
2) Create a setup project/web setup project in the same solution as ur
Windows/Asp application.
3) Build the setup project you will get a setup file for the applicatio... more >>
Problem about ListBox
Posted by questions at 9/24/2004 7:29:10 AM
I create a Form and call another class (e.g. class1.cs). (class1.cs) contains
a command to call back the Form to display a string variable in a listbox.
However, it doesn't works. The listbox gets no response.
Command:
listBox.Items.Add( str );
However, it works when i type "MessageBox.Show( ... more >>
Where to find Win32 API Constants
Posted by schiller NO[at]SPAM inode-dot-at.no-spam.invalid at 9/24/2004 2:03:15 AM
Does anybody know where to find all these API Constants like for
example
LVCFMT_BITMAP_ON_RIGHT = 4094; // = 0x1000
Are these Constants in any *.h files????
thanks
..::AsOn
... more >>
|