all groups > c# > november 2004 > threads for monday november 1
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
Recomend Video Training for MCAD?
Posted by David at 11/1/2004 10:13:36 PM
Can anyone recommend a good company that offers Video Training for
MCAD tests? I need to train on the run and classes at a fixed
locations may not work for me.
Also, what companies offer quiz software that prepares ones for the
MCAD tests?
Thanks
... more >>
Announcemnt: New .NET Developer Resource
Posted by Mark Riley at 11/1/2004 9:37:37 PM
Apologies if this announcement is off topic.
I have created a web site for .NET developers that I hope may be of use. It'
s called TheDotNetDirectory.com and can be found at
http://www.TheDotNetDirectory.com. It's a site that contains links to useful
..NET related web sites. If you have any sugg... more >>
Manage DataGrid??
Posted by perpolis at 11/1/2004 9:00:12 PM
I bound a dataset which has some constraints to my datagrid,..
and if user wrong info( like entering duplicate info in a Unique column)the
datagrid show him a Message,
but i want show user my message instead of datagrid's message..
... more >>
OO design advice - virtual constant?
Posted by Paul E Collins at 11/1/2004 8:39:10 PM
I have a class hierarchy representing data importers, each of which
reads lines from a particular type of comma-separated data file and
creates corresponding entries in a database. There is an abstract base
class, Importer, which contains the file-reading logic, and a series
of inherited cla... more >>
Is this a bug? The Where Clause behaves differently in the Fill Dataset and the Select Command
Posted by msnews.microsoft.com at 11/1/2004 8:17:29 PM
Hi All,
When I use a SQL Query to Fill the Dataset if I use the following Where
Clause
( [AUG] > '100' )
Then I am getting a 'Data Type Mismatch Error' because the Field Type is
double.
At the same time if I use the same Where Clause in the Select() command as
the Filter Expression... more >>
Accessing static members of class in main Assembly
Posted by Jack Addington at 11/1/2004 8:14:29 PM
I've got a bit of a problem acceessing a class that I am using as a 'global'
placeholder of numerous static variables I'm using across the application.
Basically I need a place to store a reference to my MDIframe so I can access
it from anywhere.
I have a class called AppObj in a framework ... more >>
Erorr Handling in data grid??
Posted by perpolis at 11/1/2004 8:12:57 PM
hi
how can i handle dataset erros in the datagrid which is bound to a
datatable??
... more >>
.NET framework 2.0
Posted by Player at 11/1/2004 8:03:50 PM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Is it still beta at the moment??
I don't know whether to update my VS.NET 2003 or not at the moment.
I hear lots of talk about using the latest verison of the SDK and the
framework, but if it's still only beta then I dont see the point real... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Fetching URLs in Parallel
Posted by Arsen V. at 11/1/2004 7:42:59 PM
Hello,
How does an application like the Web Application Stress tool work? How does
it issue requests so fast without being blocked by slow executing ones?
What technique can I use to create an object that would fetch up to 10 URLs
in parallel and be able to timeout and terminate all the requ... more >>
reagarding MailMessage
Posted by Srinivas Kollipara at 11/1/2004 7:38:16 PM
Hey guys,
I am working on project which has a component to send emails to clients.
i am looking some articles, how to use html format and urlcontentlocation.
but i didnt get much help. can any one help me thanks in advance. i am using
C#
... more >>
Can a method attribute execute code on method use?
Posted by timasmith NO[at]SPAM hotmail.com at 11/1/2004 7:08:35 PM
I have a large number of methods across different classes accessed via
remoting.
Every time a method is executed I would like to update a status object
- keeping count of the number of method executions.
Is this possible using a custom attribute or is there an alternate
method?
thanks
... more >>
calling other constructor of same class
Posted by Nikola Skoric at 11/1/2004 6:07:20 PM
Lets say I have a situation like this:
public class a {
public a () {
//...
}
public a (int i) {
//...
}
}
Is there a way to call a() from within a(int i)? Basicly what I'm trying
to achieve is to put all the common code... more >>
when i set the BackgroundImage property in the designer the image still doesnt show in the background of the textbox any other property must be set?
Posted by Daniel at 11/1/2004 6:03:42 PM
when i set the BackgroundImage property in the designer the image still
doesnt show in the background of the textbox any other property must be set?
... more >>
how do i put an image in the background of a textbox?
Posted by Daniel at 11/1/2004 5:57:48 PM
how do i put an image in the background of a textbox?
... more >>
Sysfusion DataGrid ( George Shepherd's Windows Forms FAQ Site )
Posted by rawCoder at 11/1/2004 5:51:07 PM
Hi,
Ever been to George Shepherd's Windows Forms FAQ site at Sysfusion
http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp
Great site with almost all the How-To stuff related to Windows Forms.
I was just wondering if there is some Grid and TableStyles which
implement/utilizes ALL the tips ... more >>
DataAdapter.Update isn't doing anything
Posted by Joe at 11/1/2004 5:43:23 PM
I have a really simple application for inserting/updating record in a table.
The app uses a sqlConnection, sqlDataAdapter and a dataset.
I bind the fields to text boxes and a grid to allow for the insert/editing.
I also have a button that does a Table.NewRow() and another to do the save.
I tri... more >>
Interrupting loop
Posted by Sam Sungshik Kong at 11/1/2004 5:26:25 PM
Hello!
I have a form with 2 buttons.
If you click button1, it runs a loop which changes the form's text from 0 to
99.
I added Sleep(500) to make it slow.
If you click button2 while the above routine runs, the loop should stop
there.
Here's my code.
private void button1_Clic... more >>
TcpClient
Posted by Jason at 11/1/2004 5:24:21 PM
Hi all
mytcp = new TcpClient(POP_server, POP_port);
i have the above line of code, and it fails with the message "The requested
name is valid, but no data of the requested type was found" which i have
found a similar message (below) in the MSDN library
Valid name, no data record of reques... more >>
Question about attributes...
Posted by Girish at 11/1/2004 5:02:48 PM
If I have something like that
class TestNegativeValue:Attribute
{
// ...
}
....
[TestNegativeValue]
public void ExceptionNegativeValue(int i)
{
//...
}
how can I test i(throw exception if i<0) directly
from the attribute body ?
Thanks.
Girish... more >>
asign a parameter command2
Posted by David NO[at]SPAM web.com at 11/1/2004 4:40:01 PM
I use the parameter command,
cmd.Parameters.Add("@var_new", OleDbType.Integer).Value= t_var;
I receive the error,
Compiler Error Message: CS0029: Cannot implicitly convert type 'int' to
'System.Data.OleDb.OleDbDataReader'
t_var is declared as an int. So what's the problem?... more >>
Inserting data into a table....
Posted by JH at 11/1/2004 3:19:45 PM
I have tried both suggested options shown below to insert simple string
values to an Access table, but to no avail. The executeNonQuery failed
miserably. I got the correct string values from each array items and were
able to check them using messagebox.show. BUT YET i AM UNABLE TO LOG THEM
INTO... more >>
Request Object Bombs-Out Class File
Posted by clintonG at 11/1/2004 3:01:03 PM
I'm using the intrinsic Request object wrong and need some help with this
one. I wrote a class file for some XMLTextWriter tasks and in the class file
I want to use a conditional to determine if the application is running on
the host provider's web server or the web server on my local development... more >>
DeSerializing an object
Posted by Keith Harris at 11/1/2004 2:49:01 PM
Hi,
I have a simple class named DistributionSelections which stores two enums
and a dataset. I want to persist the object to a database for later
retrieval.
HERE IS THE CODE USED TO PERSIST THE OBJECT IN THE DB:
//====================================================
XmlSerializer x = ... more >>
HINSTANCE
Posted by mphanke at 11/1/2004 2:45:32 PM
Hi,
how do I get the HINSTANCE for an .NET application?
ExtractAssociatedIcon always complains about an missing pointer reference...
Regards,
Martin... more >>
Logging and exceptions, is it so hard?
Posted by Julia at 11/1/2004 2:39:14 PM
Hi,
So my server is complete,I have all the code and libraries which I need
but now I want to add exception management and logging capabilities
I would like you to suggest a good book about logging and exceptions
handling for multiple threads server
Some question I have in mind are
1.Wh... more >>
Datagrid
Posted by ALI-R at 11/1/2004 2:37:47 PM
How can I make some rows (of a datagrid) in bold based on the value of a
field?
for instance if that field is "1" row should be in bold ,otherwise row is in
normal mode.
thanks for your help.
Ali-R
... more >>
Minimize to sys tray
Posted by Ricardo at 11/1/2004 2:10:37 PM
Hi... how can i make my application when minimized go to system tray???
[]s...
... more >>
Assembly version
Posted by Igor at 11/1/2004 1:40:37 PM
Can I retreive an assembly version from command-line?
... more >>
Retrieve File Icon from Registry
Posted by mphanke at 11/1/2004 12:56:44 PM
Hi,
how can I retrieve the icon for a registered file extension from the
registry and show it in my ListView?
Any hints appreciated,
Martin... more >>
Determine mouse movement direction
Posted by Paul L at 11/1/2004 12:49:52 PM
Anyone know a quick way of determining which direction the mouse cursor is
moving (ie. up, down, left, right) from a specified origin?
Thanks,
Paul L
... more >>
Variable Name in C#...
Posted by PL at 11/1/2004 12:28:25 PM
I want to dynamicaly create variable and assigned it a particular name, for
exemple:
foreach (FileInfo FI in ArrayOfFiles)
{
string FI.Name = "AValueWhoDoesntMatter"
}
Of course, this sample doesn't works...
How can I set the string variable name to always be the value of the
prope... more >>
How do I create windows forms with rounded corners?
Posted by Zach at 11/1/2004 12:28:23 PM
"David" <david_tm3@hotmail.com> wrote in message
news:%23p0KV6$vEHA.3116@TK2MSFTNGP10.phx.gbl...
> so, the questuion,
> How can I create windows (forms) with rounded corners?
>
> David.
>
>
... more >>
How to merge multiple Visual Studio.NET projects into one
Posted by Seshadri at 11/1/2004 11:23:07 AM
Dear All,
My apologies if this is not the correct forum. I am a bit confused on
where this kind of a question belongs. However I need help rather badly. I
would like to merge two ASP.NET c# projects into one project.
I am unable to information on going about doing it. I remember seein... more >>
PATH environment variable
Posted by anonymous NO[at]SPAM discussions.microsoft.com at 11/1/2004 11:11:39 AM
Hi all, I am trying to append a certain string to the
PATH environment variable programmatically. I am able to
read what is in the variable using the System.Environment
method GetEnvironmentVariable("path"). However, I don't
know yet how to append strings to the path variable. Any
help is ... more >>
How to link my ColorDialog Colors to Excel Colors ?
Posted by Pierre at 11/1/2004 11:03:01 AM
Hi,
Allowing my User to set Excel charts colors in my app with the help of a
ColorDialog,
I'm facing the following problem : the ColorDialog Colors does not suit with
the Excel ones.
So, here is my question :
Is-it possible to change Excel colors ?
Is it possible to set ColorDialog Colors w... more >>
timer
Posted by ALI-R at 11/1/2004 10:57:12 AM
there is a timer on Form1 and I want to change it from Form2,how can I do
that??
thanks
... more >>
end routine
Posted by Mike at 11/1/2004 10:57:03 AM
I have a C# webmethod that returns a dataset, What i want to do is if an
error occurs to call the error method and pass that back to the front end
client app.
i have
public dataset names()
{
dbconnection;
try
{
//excute SP's
}
catch (Exception e)
{
... more >>
C++ Client needs to fetch a string array from a C# COM server.
Posted by bnc_uconn NO[at]SPAM yahoo.com at 11/1/2004 10:51:17 AM
Hello, I have written a C# COM server that has a few methods and a
property called DataItems that returns an ArrayList. During the
course of execution the ArrayList gets populated with several strings.
I am having issues retrieving these strings from my C++ client.
My C# code looks like thi... more >>
Q: Projects/Solution & classes
Posted by Geoff Jones at 11/1/2004 10:50:51 AM
Hi
I'm starting to look at C# after programming in C++ and was wondering if
anybody could help me with the following questions:
(1) What is the difference between a Project and Solution In Visual Studio
..NET?
(2) When programming in C++, to allow a file/class to know about other
classes... more >>
regex: the supported Unicode groups and block ranges?
Posted by benny at 11/1/2004 10:32:01 AM
The regex has a "\p{name}" character class ,In msdn the Description is
"Matches any character in the named character class specified by {name}.
Supported names are Unicode groups and block ranges. For example, Ll, Nd, Z,
IsGreek, IsBoxDrawing.".
But there is no more informations about the U... more >>
Re: compare string lenth to text box drawing area
Posted by Rachel Suddeth at 11/1/2004 10:25:20 AM
PS) My example was done from a Paint event (that's why the e.Graphics
worked.) As another reply mentioned, that's not the only way to get a
Graphics object, but typically you only need one when you're actually
displaying something, so Paint events tend to work. The Paint was triggered
by cal... more >>
What a stupid design of FolderBrowserDialog
Posted by Fei Li at 11/1/2004 10:19:05 AM
Hi,
If I'm not stupid for this, then the design of FolderBrowserDialog is very
stupid. It only allow to strat browing from several predefined
folder(Environment.SpecialFolder). What can I do if I want to start from any
folder I want?
... more >>
Command line argument problem in C#
Posted by Herb Finkel at 11/1/2004 10:04:06 AM
The following code is fairly simple to capture command line arguments:
using System;
namespace ConsoleApplication1
{
class Class1
{
static void Main(string[] args)
{
string first = args[0];
string second = args[1];
}
}
}
If the arguments are test1 and test2, it works ... more >>
Processing up/down arrow at form level
Posted by Rachel Suddeth at 11/1/2004 9:49:10 AM
I have a grid on all my basic data entry forms, and I want Up/Down arrow to
navigate the grid no matter where the focus is on the form. I have
form.KeyPreview set to true (because I want the form to get the key events
first), and trap the arrows in the KeyDown event for the form. This works
... more >>
Always-on socket connection?
Posted by Noah at 11/1/2004 9:39:22 AM
Hello guys,
I'm trying to create a relay server in C#. The client
will connect to the relay server and I want this
connection to stay open forever if possible. Then when a
visitor connects to the relay server, it will relay the
request to the client who's response will be relayed back ... more >>
open an IE page form a linkedlable
Posted by ALI-R at 11/1/2004 9:32:03 AM
I want when user clicks on LinkedLable ,an IE page to an specific address
opens ,how can I do that?
thanks
... more >>
Async Sockets & IOCP
Posted by Trevor at 11/1/2004 9:24:43 AM
Does the async. sockets implementation in .NET use IO Completion Ports
(IOCP) internally or would I have to use P/Invoke to use IOCP in a C#
async. socket server?... more >>
how to get username
Posted by ALI-R at 11/1/2004 8:43:19 AM
How can I get the username that a user has logged in with to windows ,in my
code?
thanks
... more >>
compare string lenth to text box drawing area
Posted by Dennis C. Drumm at 11/1/2004 8:40:45 AM
How can I determine if a string will fit in the display area of a text box?
I don't want to use a char count because the width of each char can vary. I
suspect I need to convert the string to a graphic using the text box's font,
but I'm not sure how that would be done.
Thanks,
Dennis
... more >>
How to browse folder starting from my application folder?
Posted by Fei Li at 11/1/2004 8:15:04 AM
forms authentication question
Posted by Phil Townsend at 11/1/2004 8:14:39 AM
I am developing an app which utilizes forms authentication. Users log in
and are members of roles, the roles being defined in a SQL Server table.
Periodically, I need to identify which role a user belongs to. I also
need to be able to deliver an error message to users if they attempt to
browse t... more >>
Wrong overload
Posted by Alexander Muylaert at 11/1/2004 8:01:42 AM
Hi,
for some reason my formatter doesn't write correct on Compact framework.
The following piece of code will demonstrate very weird behaviour with
overloading.
For some reason the inherited binarywriter doesn't take the right procedure.
He will always write 8 bytes for an integer ... more >>
NGen - encrypt meta data - how?
Posted by Chua Wen Ching at 11/1/2004 7:57:04 AM
Hi,
How do i achieve this? I extracted this from the internet.
Tools that compile your .NET code to native x86 code using the
"ngen" facility of the .NET runtime (essentially "pre-jitting" your
code) and encrypt the metadata raise the bar against decompilation a
bit,
I want to encrypt th... more >>
Help with the, "this" initializer in a constructor.
Posted by Player at 11/1/2004 7:35:23 AM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello all.
I am in the process of teaching myself C# and I think I am doing OK.
I have learnt how to how to call the right constructor of a class, if the
class has more than than one cosntructor, by making sure that each
constructor has ... more >>
Abstract Class Theory
Posted by Dan Sikorsky at 11/1/2004 7:24:23 AM
If we were to define all abstract methods in an abstract class, thereby
making that class non-abstract, and then override the heretofore 'abstract'
methods in a derived class, wouldn't that remove the need to have abstract
class types in C#?
Derived classes from abstract base classes must over... more >>
assign a parameter
Posted by David NO[at]SPAM web.com at 11/1/2004 6:55:05 AM
I use the parameter command,
cmd.Parameters.Add("@var_new", OleDbType.Int32).Value= t_var;
I receive the error,
CS0117: 'System.Data.OleDb.OleDbType' does not contain a definition for
'Int32'
What's the problem?
... more >>
Loading an image
Posted by bernardpace NO[at]SPAM yahoo.com at 11/1/2004 6:18:41 AM
Hi,
I have a browse button, where I am selecting an image. How can I
load it into a PitctureBox?
Thanks in Advance... more >>
Should I Subclass TextBox ?
Posted by wackyphill NO[at]SPAM yahoo.com at 11/1/2004 6:03:30 AM
I'd like to have textboxes that only allow certain types of data. Like
only integers, decimals, etc.
Is it better to subclass TextBox for each type or to create only one
new TextBox class that has a property or method that makes it act
approprietly?
Making multiple objects seems like it wou... more >>
Getting the version of certain programms via code.
Posted by csst9965 NO[at]SPAM scylla.cs.uoi-dot-gr.no-spam.invalid at 11/1/2004 5:58:32 AM
How can I retrieve the version of windows programs?
I'm talking about MS-Office actually. I want to check the version so
as to use different methods depenting on this version.
Is there an "ifdef" or something?
thanks in advance
:)
*-----------------------*
Posted at:
www.G... more >>
Expose System.Uri to COM
Posted by zabutimaxim NO[at]SPAM hotmail.com at 11/1/2004 5:39:57 AM
Hi,
I have a Class in C# that exposes property from System.Uri type.
I want to access this property from classic Visual Basic.
[ComVisible(true)]
[ClassInterface(ClassInterfaceType.AutoDual)]
[Guid("C80CFADD-F676-4df6-8499-5C4F2E3434A5")]
public class TestClass
{
public TestClass(... more >>
InvalidOperationException: GetConfig was called during configuration initialization
Posted by kosta at 11/1/2004 5:34:37 AM
hello!
I have this code:
public static DataSet DSet(String sql)
{
OleDbConnection con = new OleDbConnection();
con.ConnectionString =
ConfigurationSettings.AppSettings["conString"];
OleDbCommand cmd = new OleDbCommand(sql,con);
... more >>
path environment variable
Posted by Bonj at 11/1/2004 5:32:02 AM
Hi
My application installs a front-end GUI, which runs code when buttons are
clicked. It also installs a command-line utility, that is a console
application.
They are both installed to the program's application directory, along with
the DLL that contains the generic code that they both c... more >>
How to share the same configuration files between several assemblies (executbles)?
Posted by koby_3 NO[at]SPAM hotmail.com at 11/1/2004 5:28:45 AM
Hi,
I'm developing an application and we are having several different
executables for the same application.
In .net each executable got his own configuration file
(AssemblyName.exe.config).
I'm using the configuration management to get/set values from the
config file.
How can I share sa... more >>
String, Array, DataGrid Question?
Posted by Leon at 11/1/2004 5:07:21 AM
Ok I have six textbox controls on my web-form that allows the user to enter
the numbers 1-47 non-duplicates in each box ("meaning if the user enters 3
in one textbox they can't enter 3 in another"). However, I'm trying to
figure-out the best way I could allow the user to insert their distinctl... more >>
a reflection question
Posted by That Guy at 11/1/2004 4:53:30 AM
SGkuDQoNCkhvdyB0byBnZXQgcHJvdGVjdGVkIGZpZWxkcyBvZiBiYXNlIGNsYXNzIHVzaW5nIHJl
ZmxlY3Rpb24/DQoNClRoYW5rcy4=
... more >>
Instantiating Problem
Posted by bernardpace NO[at]SPAM yahoo.com at 11/1/2004 1:50:10 AM
Hi,
I have the following problem:
public class NodeList
{
public NodeList next;
private int data;
public NodeList(int x)
{
this.next = null;
this.data = x;
}
} // end class
Now in the main program, I have a instance of NodeList, which has ... more >>
Thread safety in Hashtables remove method ..
Posted by Anders Borum at 11/1/2004 12:55:39 AM
Hello!
I'm am currently working on making a central cache component threadsafe, and
was looking at the synchronized implementation of the Hashtable. I was
wondering why you'd really want to enforce thread safety in a remove method?
Why would you care if two threads are trying to remove the s... more >>
|