all groups > c# > october 2006 > threads for tuesday october 17
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
getbyte
Posted by Rain at 10/17/2006 9:32:03 PM
if i had a line of message, how do i get the 1st two bytes? how to code this?
thank you so much in advance... ... more >>
byte problem
Posted by Rain at 10/17/2006 9:18:02 PM
hi,
im a newbie here and in desperate need of help. Some of you might think this
is a stupid question or a too easy to answer question but here goes. I am
making a UDP client server application using C# everything is all set except
for one thing. when sending a message, the message should c... more >>
Why is image and Bitmap a sealed class?
Posted by Jon Slaughter at 10/17/2006 6:29:24 PM
Why did microsoft seal these classes? I would like to add coordinate
information to these classes but I can't derive from them ;/ It makes me
wonder why microsft choose to prevent anyone from deriving from many
classes.
I can simply do
class MyBitmap
{
public Bitmap B;
public Point Lo... more >>
Disposing Objects?
Posted by Adam Right at 10/17/2006 6:13:04 PM
Hi,
I am developing a financial application and you know that there are huge
amount of data in these similar aplications. I have a MDIChild form and the
other forms are opened in this form. For example, in a form i fetch many
rows from the database to show them to the user on the client mac... more >>
TcpClient.Connect causes three first chance exceptions
Posted by illegal.prime NO[at]SPAM gmail.com at 10/17/2006 5:41:12 PM
Hi all, I've got a client/server application and just wanted to ensure
that this is expected behavior. I recently set the following
configuration in Visual Studio:
Debug->Exceptions->Break Into Debugger
for the CLR Exceptions
And when my debugger hits the TcpClient.Connect statement and the
... more >>
BITS questions
Posted by VJ at 10/17/2006 5:17:39 PM
Where do I post questions regarding BITS (Background Intelligent Transfer
Service) SDK issues and questions ??
Vijay
... more >>
Using Static Methods Adv?
Posted by chandu at 10/17/2006 4:48:15 PM
can any one give advantages and disadvantages to using static methods in a
class.
shall we use complete static methods in a class ?
thanks
... more >>
Beginning C# Objects: From Concept to Code - Discussion
Posted by Kappa at 10/17/2006 4:20:07 PM
Hello
I want people who are reading Beginning C# Objects: From Concept to
Code by Jacquie Barker from Apress to get together and discuss any
problems they come across during the read. We can discuss exercises and
three case studies provided at the end of this book.
Thanks for your response ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
IComparable and multiple sorting
Posted by Steph at 10/17/2006 4:10:52 PM
Hello,
i dot not manage to write the code to sort a array on multiple columns.
ArrayList people = new ArrayList();
people.Add(new Person("John", "Doe", 76));
people.Add(new Person("Matt", "Dire", 80));
people.Add(new Person("Matew", "Vinz", 75));
people.Add(new Person("Arlett", "Blaste", 84));... more >>
Trying to locate downloaded class library
Posted by Dave at 10/17/2006 3:16:01 PM
I download the POS .Net class library. The download stated that I should be
able to to see samples. I don not know where they can be found on my
computer. Also, how could I find the class libraries that been downloaded?
--
L. A. Jones... more >>
Storing Objects
Posted by Hunter at 10/17/2006 2:46:02 PM
Hi,
In one of my forms I need hold an array of objects (same class) that is
dynamic at runtime. Instead of using an array I am looking at ArrayList or
Hashtable. Any suggestions?
... more >>
Propertygird and multiline items
Posted by Kimmo Laine at 10/17/2006 2:04:08 PM
Hi!
Is there a way to display text in Propertygrid that spreads in to multiple
lines?
I don´t want to make editor that opens a new dialog when user is editing
value - i would like to have normal Textbox with several lines. I know i
need to inherit from UITypeEditor, but how do i implemen... more >>
Serialize/DeSerialize Generics List
Posted by Joe at 10/17/2006 1:25:29 PM
Hi
I have a Generics List in a PropertyGrid
I am able to Serialize it to XML but when I try to deserialize back to the
class of the PropertyGrid
The Constructor doesn't seem to fire to reload the saved settings
Can anyone see something that I have missed ?
Class of values
-----------... more >>
App crashes in InitializeComponent();
Posted by MJ at 10/17/2006 1:18:10 PM
I have a strange (to me) problem with a c# forms application that I am
developing. The application is installed on approxmatly 30 Windows XP
machines and until recently they all worked perfectly. However since I have
updated the application to a new version one of the machines fails with an
... more >>
Request for the permission of type System.Web.AspNetHostingPermission failed
Posted by Allan Ebdrup at 10/17/2006 12:49:50 PM
I'm using dotNet 2.0 and VS2005.
I've got a class library where I've created a webcontrol (Inherits from
GridView).
The dll for the class library resides on a different server (development
server)
Now I have a website ASP.Net 2.0. When I add a reference to the dll I don't
get my control in the... more >>
error message
Posted by xCal at 10/17/2006 12:42:43 PM
Hi group
I wish to understand, from a developer viewpoint,
what means the error message:
"abnormal termination program"
it is related to Visual C++, but I couldnt find any apropiate group on c++,
thanks very much in advance, Carlos
... more >>
access SqlDataReader using foreach
Posted by jarod1701 NO[at]SPAM gmx.de at 10/17/2006 12:06:49 PM
Hi everyone,
is there a way to access every record from a SqlDataReader via
"foreach" ?
I want to write a class which (besides doing some other stuff)
retrieves a recordset using SqlCommand.ExecuteReader().
Something like:
MyDbClass db = new MyDbClass("SELECT * FROM tblUsers");
foreach(... more >>
Hashtable object
Posted by PAzevedo NO[at]SPAM gmail.com at 10/17/2006 11:32:33 AM
If i can use keys of different types on an Hashtable object, what's
stopping me from putting all my values on the same Hashtable?
... more >>
Error running app
Posted by Rafael Tejera at 10/17/2006 11:17:34 AM
I'm working in VS 2003 using C#, MSSQL 2000 and Windows 2003 Server.
When I try to run any web application I receive the following error:
Error while trying to run project: Unable to start debugging on the web =
server. The Project is not configured to be debugged.
Click help for more inform... more >>
Generic iterating for dummies
Posted by MarkAurit at 10/17/2006 11:11:02 AM
Ive been using arraylists in 1.1 to return collections of custom business
objects, and thoroughly enjoyed their simple programming style.
After hearing of the advantages of generics during a 2.0 app, I decided to
try one. I changed a "GetCollectionOfObjects"-type method to return a
List<custo... more >>
Dynamically raising an event in another class
Posted by kmcmanus at 10/17/2006 10:51:02 AM
I have just started to write a few business classes that are largely made up
of properties (getters and setters). For each setter I want to fire a
changed event - each event will have a unique name
e.g.
public class CBusinessObject
{
private CProperty<long> m_propId;
private C... more >>
Making a very simple form
Posted by spamfilteraccount NO[at]SPAM gmail.com at 10/17/2006 10:22:55 AM
Hi,
I want to make a really simple form with C# and windows forms, which is
trivial with Java, but I'm unable to reproduce it with .NET. I can't
believe it's impossible.
I want a simple window with a textbox and a listbox below it. I don't
want to use fixed coordinates and sizes, since that... more >>
Form Icon
Posted by koredump at 10/17/2006 10:21:51 AM
Hi,
I have an application that's being deployed using ClickOnce. Once
deployed and installed on client machine, the form icon that I have
added using the designer won't show up in any of the application forms.
However, this only occures on one machine running windows 2003 server.
Anyone expie... more >>
formclosing and mybase.closing
Posted by pamelafluente NO[at]SPAM libero.it at 10/17/2006 9:44:49 AM
Hi,
I am not clear if there is there any difference in usage between
Closing (mybase) and FormClosing ? Any advice on that ?
-P
... more >>
VS.net Debug abilty to break at point when value is what i need
Posted by AleXmanFree at 10/17/2006 8:43:57 AM
I need to know is it possible to break program at a point when some
variable has exact value i am interested in , and continue from that
point step-by-step debugging,
without putting in code IF -statements, if there is such a directive to
provide this functionality ?
... more >>
Switch statement alternative?
Posted by Phuff at 10/17/2006 8:24:35 AM
Hey all, I need some direction help. I have a switch case statement
that is seemingly my only option right now, but its too large and not
easy to maintain the code. Here goes...
I have part descriptions (ie. 3/8" X ____" NYLON ALL-THREAD RODS...or
____" x ____" X ____" ____ WRAPPED MULLION) ... more >>
C# Calling Executable or DLL
Posted by guxu NO[at]SPAM hotmail.com at 10/17/2006 7:38:19 AM
Can anyone tell me the prons and cons having C# program calling an
executable or DLL?
I always do not like the idea of having one executable calling another
executable since I can have more control by calling interfaces exposed
from a DLL. In my situation, I need to watch for a certain event an... more >>
monthCalendar - how to change the starting month?
Posted by Gidi at 10/17/2006 5:45:02 AM
Hi,
I'm using 3 months calendars control.
I set one of them to show the current month (october),
and I want the second and third to show one and two month forward.
How can it be done?... more >>
In every time I pressing Ctrl + Shift + B, Visual Studio Compiles The solution
Posted by yonatnl NO[at]SPAM gmail.com at 10/17/2006 5:20:04 AM
why In every time I pressing Ctrl + Shift + B, Visual Studio Compiles
The solution?
I Did not changed a thing in the Code.
It was Ok 2 days a Go...
and After getting Latest Version from the source safe The .. it compile
everything each Time
I press Ctrl Shift B
... more >>
Efficient way to do this
Posted by Steven Blair at 10/17/2006 3:58:23 AM
Hi,
I get passed a string like these examples:
3.1
4.23
1.1
5
I need to seperate the values into two integer variables.
So 3.1 would become
int var1, var2;
//var1 should have 3
//var2 should have 1
if it was 4.23
//var1 should have 4
//var2 should have 23
This is will b... more >>
How to get inherited class type/name inside static base class meth
Posted by Eliseu Rodrigues at 10/17/2006 3:31:01 AM
Hi
I would like to have a static method on a base class that executes some
action (for example retrieves the row count) on a table whose name is the
same of the inherited class name.
For example:
Assume that my base class has a static method named GetRowCount().
Having a class named ... more >>
Assigning object names dynamically
Posted by GT at 10/17/2006 1:56:01 AM
Hey
Is it possible to assign object names dynamically?
That is, when for instance creating a Label object
Label label1 = new Label();
can then the name of the Label object (label1) be assigned
by calling a method supplying the name?
... more >>
How to get null keyword via Codedom
Posted by Tim Haughton at 10/17/2006 1:07:59 AM
Hi, I'm writing some CodeDom stuff at the minute. It's great fun but
I've hit a snag. A little bit of the code checks to see whether an
event is null before I fire it. It looks like this...
......Some stuff
CodeConditionStatement ifEventIsntNull = new CodeConditionStatement();
CodeEventRefe... more >>
A real time updating interface
Posted by Beorne at 10/17/2006 1:04:15 AM
Hello, I'm a Java programmer and I'm new to C# (I've read something but
I've no real programming experience). I'm programming a form that
displays some data from an external source (i.e. a com port) ad
displays it. The updating cycle is about every second. The windows form
has a few controls.
... more >>
Writing Data In Tabular format in Text File.
Posted by lucky at 10/17/2006 12:51:43 AM
Hi guys,
i want to write some data in tabular format in text file. i've data in
strings and i want to write like this in file
col1 col2 col3
d1 d1 d1
d2 d2 d2
d3 d3 d3
the problem is, i dont know how can i maintain spaces between the
colum... more >>
How to get a valid System.Drawing.Image
Posted by Martijn Mulder at 10/17/2006 12:12:59 AM
At startup my application loads an image from a file from disk. If the file
is not there, I still need a valid System.Drawing.Image object but I don't
know how to get one.
//class MyImage
class MyImage
{
//data member image
System.Drawing.Image image;
//constructor
public MyImag... more >>
Migrating from Visual Studio 2003 to 2005
Posted by Dietmar Marek at 10/17/2006 12:00:00 AM
Hi folks,
I just converted my C#/C++ 2003 solution to 2005. The conversion of all
31 projects worked fine, but I can't start it now. It tells me:
"Can't start 'xxx.exe' or one of its depencies. The module was expected
to contain an assembly manifest."
The build worked fine, but the progra... more >>
Bitmap manager
Posted by Jon Slaughter at 10/17/2006 12:00:00 AM
Is there anything like ImageList that handles bitmaps/images? I need need
very similar method to work with arbitrary sized bitmaps instead of all
being fixed at the same size. I know I could just use an array but it would
be nice to have some type of encapsulation and a smart array/collection ... more >>
|