all groups > c# > july 2003 > threads for monday july 14
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
C#( Is it possible to add the Enum in dynamically?)
Posted by Dev at 7/14/2003 10:55:17 PM
Dear Friends,
Is it possible to add the Enum in =
dynamically.
Like Ex:
enum Colors
{
Green, Red,Yellow,Blue,Orange
}
So i want add 6th name Black to Colors.Is it possible? If so how?...If =
anyone knows please let me know....
Thanks,
Dev... more >>
C++ and C# communication
Posted by Dev at 7/14/2003 10:41:54 PM
Dear Friends,
I need communicate C++ methods into C# Program.If
anyone knows the sample code or Links.... PLease let me know...
Thanks,
Dev
... more >>
Grid data group
Posted by Alok Kumar at 7/14/2003 10:07:11 PM
=20
=20
Hi guys!
I'm facing some problem with the data grid. My table data is something =
like this
=20
Group
Name
isMarried
=20
Friends
Frd1
true
=20
Friends
Frd2
true
=20
Friends
Frd3
false
... more >>
Converting Regular numbers to Roman Numerals
Posted by Patrick Blackman at 7/14/2003 9:43:55 PM
How do you write regular numbers eg 1 23 475896 in roman numerals inC#
... more >>
zoom in PictureBox
Posted by Dave at 7/14/2003 9:35:30 PM
I would like to ask how to do the zoom function onto the image of the
PictureBox ?
... more >>
Using CreateWindowEx API to create a RichTextBox
Posted by Patrick Blackman at 7/14/2003 9:33:46 PM
Has anyone used CreateWindowEX API to create a control in C#? I want to
create the Richtextbox control using this method so I can have better
control over the underlying interfaces to substantial extend the
functionality.
Any Ideas would be appreciated. What I really want to do is create the... more >>
Property Assesor
Posted by msnews.microsoft.com at 7/14/2003 9:19:04 PM
Is it possible to have a property return (get) one type but be assigned
(set) from another type?
Something like:
private int _InvoiceTypeID;
public InvoiceType InvoiceType
{
get
{
return this.GetInvoiceTypeFromDB(this._InvoiceTypeID);
}
set(int InvoiceTypeID)
... more >>
How to disable a form being resized
Posted by Yuelin at 7/14/2003 9:02:08 PM
Hi there
How can I disable a form being resized? i can't find a property in the
property window to do this.
Thanks
yuelin
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Class Design Question
Posted by msnews.microsoft.com at 7/14/2003 8:25:56 PM
What is the best solution for the following scenario:
I have a contacts database and I am creating the business layer obects to
access my data objects. (So the DB is invisible to the Business Layer
consumer)
Each contact can be of some type "Employee, Customer, Vendor, etc." . The
contact ty... more >>
Why in the world...
Posted by Frank Rizzo at 7/14/2003 8:24:42 PM
Why in the world is ControlChars chars in the Microsoft.VisualBasic
namespace? Is there a reasonable explanation for it?
... more >>
How to get Application Path?
Posted by Frank Rizzo at 7/14/2003 8:21:50 PM
How to get Application Path?
I can't really use
System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase
because it returns the path in the file://c/winnt/.../filename.exe
format, which I can't really use to open files, etc...
I also don't want to use System.Windows.Forms.App... more >>
C# terminology questions
Posted by Ron Bullman at 7/14/2003 7:35:12 PM
Hi,
I haven't been able to find proper (commonly agreed) names for the following
kinds of methods.
Class (static) methods:
c1) returns value, doesn't modify the content of its argument(s) and
doesn't change the state of class (class accessor?)
c2) returns value, doesn't modify the content ... more >>
Deployment - Pre load
Posted by Jibu George at 7/14/2003 6:21:11 PM
Hi
I'm developing a deployment package using Visual Studio.Net. I have a custom
user interface with a text box. How can I load the text box with some data
at run time.
Thanks & Regards,
JIB
... more >>
Simple question : how to strip carriage returns from a string?
Posted by Howard Dean at 7/14/2003 5:50:03 PM
I have a string with several carriage returns in it. For example:
"This is
my test
string"
I wish to convert it to "This is my test string" (remove all carriage
returns. Can someone tell me how to do this using the string.Replace
function? Thanks!
... more >>
Thread
Posted by Kate Luu at 7/14/2003 5:05:59 PM
Hi All,
First of all, My computer have only one comm port, and I did set up the port
as looping call back. I have one form with one button. When the form load, I
call WriteFile to open the port and then create a thread for reading back
the port if some thing arrive into the port. When I click ... more >>
csc /lib compiler option (VS.NET 2003)
Posted by Kit Ewbank at 7/14/2003 4:47:09 PM
I'm trying to reference an assembly in a directory which has a space in its
name. When I use the VS.NET 2003 csc's /lib option with quotes around the
directory name (e.g. /reference:Fred.dll /lib:"A Directory"), it fails to
find the assembly (error CS0006: Metadata file 'Fred.dll' could not be
f... more >>
clone
Posted by James C. Li at 7/14/2003 4:34:31 PM
why implement icloneable which seems to involve writing
public object Clone()
{
return this;
}
when I can do
myobject o1 = new myobject()
myobject o2;
o2 = o1;
Jason,
That's the wrong way to implement a Clone method. Your code simply
returns a reference to an existing object... more >>
NAT
Posted by James C. Li at 7/14/2003 4:33:58 PM
If instant messaging uses IP and a Port to communicate, how do the
applications work behind a NAT?
Hi Matt,
ALL tcp protocols ( HTTP, TCP, etc ) use IP and ports cause those are the
basics elements of the protocol. If you want to know how NAT works take a
look at google for "NAT explaine... more >>
dragurl
Posted by James C. Li at 7/14/2003 4:31:47 PM
Hi,
I've a windows' form application written in C#. I want to
drag a url's link from a website application onto my
windows' form TreeView control. I've been able to achieve
the following
1.) The description of the mouse consor when draging a
TreeNode within the TreeView control using DragO... more >>
Attn: Application Architects... Design Question... please give me your feedback...
Posted by alien2_51 at 7/14/2003 4:04:45 PM
I was tasked with designing an ASP.NET web application and one of the
requirements was a single save button.. The application consisted of approx
5 data input screens that affected approximately the same number of data
tables in the database, one of the tables required an attachment file that
wa... more >>
VB InputBox
Posted by Mori at 7/14/2003 3:50:20 PM
Hi,
What can I use for the equivalent VB InputBox to get a string from the user?
thanks,
Mori
... more >>
Displaying images from a database
Posted by SamIAm at 7/14/2003 3:19:09 PM
Hi
I have a form and need to display an image that is returned along with other
data, i.e. Member Data, from a database row.
How do I display this image in my webform?
S
... more >>
static & abstract
Posted by Marty McDonald at 7/14/2003 3:13:16 PM
protected abstract static string SetConnectionToUse(DataMode whatMode);
This is illegal to the C# compiler, because "static" & "abstract" don't go
together. But how else can one force deriving classes to implement a method
while still making the method static?
... more >>
OdbcParameter problem
Posted by Mike McCarthy at 7/14/2003 2:24:55 PM
When I execute the following code I get the error..
Stored procedure get_nextid expects parameter @next_id which was not
supplied
What am I doing wrong
public String GetNewKey()
{
String myid = "";
OdbcConnection myConnection = new
OdbcConnection("DSN=RMS5SQL_DSN;UID=FireRMS5_USE... more >>
Inheritance sort question
Posted by DancnDude at 7/14/2003 2:22:01 PM
I have a class that needs to have several different kinds of sorting
routines on an ArrayList that it needs to conditionally do based upon the
data. I have successfully created a class that implements IComparer and
does the sort correctly for one of these sort types. This class's
definition is... more >>
DataGrid and the "Enter" Key pressed...
Posted by Byron McClain at 7/14/2003 2:00:54 PM
.... is being consumed. I added an event handler for the "keypress" event
and my delegate
never gets executed. Why? I am trying to catch the "enter" key pressed
event to prevent
the DataGrid from going to currentRow + 1. Instead I want it to give focus
to the next cell (currentCol + 1) to t... more >>
Thread Exception
Posted by homaneag NO[at]SPAM yahoo.com at 7/14/2003 1:32:44 PM
Hi,
I have a problem about thread related exception handling.
I created a background thread to fill a DataTable in a Windows
Application. Inside the code, I have
foreach (…)
{
try
{
da.Fill(dt);
}
catch (ThreadAbortExce... more >>
Inherited form with DLLImport
Posted by mike at 7/14/2003 12:51:44 PM
I have a form that uses a C++ dll through DLLImport.
Then I created a new project and had Form1 inherit the DLL
form.
I can run it without problem, but I cannot open the
derrived form in the form designer because I get a
message "An exception occurred while trying to create an
instance... more >>
BindingContext between Query Table
Posted by fhiemstra0507 at 7/14/2003 12:43:01 PM
Hi
I have a listbox that is based upon a query. This query is sorted by PetName
and has the PetID and the PetName field in the query. It is based upon this
table Pets which obviously has this fields in it. However, I can not find
any examples of how to keep the data insync between the query ... more >>
Help with Windows DataGrid and DataBinding (Urgent)
Posted by John at 7/14/2003 12:31:15 PM
Hello all,
I'm trying to display a dataset into a datagrid and format the datagrid
columns but I'm having a hard time with it. I've tried the MSDN examples but
they don't seem to work.
Basically, what I want to do is that, on a button click, the dataset fills
up dynamically, binds to the data... more >>
line feed and tab
Posted by Mark at 7/14/2003 11:51:47 AM
I have a C# app that I am writing which is going to insert text into a
table, which is then picked up by another program and emailed. On the text
version of the email (when the user doesn't have html email), I need to put
tabs in between columns of data and then line feeds after each row. How c... more >>
batch job for mailing out hundreds of mails....
Posted by Cheong Sin at 7/14/2003 11:44:20 AM
Hi, I like to ask what can be an ideal solution for this type of situation?
We need to schedule a job every night that will basically extract data from
the DB and mail that out to our clients. I am thinking of creating DTS
package and using VBscript to instantiate SMTP object or creating a
stan... more >>
instance reference; qualify it with a type name instead
Posted by andrew at 7/14/2003 11:31:10 AM
C:\Documents and Settings\watts\My Documents\Visual Studio
Projects\boeing\showPMACfg\vuePMAcfg\vuePMAcfg.cs(88):
Static member 'vuePMAcfg.pmaDataHash.pmaDataHash1' cannot
be accessed with an instance reference; qualify it with a
type name instead
OK I have this class And the hash and the... more >>
Fetching the name of a class
Posted by isbat1 NO[at]SPAM yahoo.com at 7/14/2003 11:30:42 AM
There's got to be a better way to do this.
In this sample code, I've created a class in a namespace, and a class
inside of a class. On calling .ToString() for those two classes, I
see different output:
name of Class1 is: ConsoleApplication1.Class1
name of Class2 is: ConsoleApplication1.CMa... more >>
computer name
Posted by noname at 7/14/2003 11:23:43 AM
this may be slightly OT, but how does one get the computer name in .net? in
C it's GetComputerName().
thanks!
... more >>
Tmer
Posted by Patrick De Ridder at 7/14/2003 11:03:11 AM
How do I get this to work?
Libraries to use etc.?
Thanks,
Patrick.
Timer timer = new Timer()
timer.Interval = 1000; // Once a second
timer.Tick += new EventHandler(OnTick);
timer.Enabled = true;
timer.Start();
protected void OnTick(object s, EventArgs ea)
{
MessageBox.Show("Tick Inter... more >>
Get description of the computer on the network
Posted by Augusto at 7/14/2003 10:16:24 AM
Hi people.
How i get a description of the computer on the network
with c#?
Thanks
... more >>
Repair Database Access
Posted by ADO.NET With C# at 7/14/2003 10:13:14 AM
Hi People.
How can I repair a database access, with ASPx with C# and
ADO.NET?
Thanks
Augusto
... more >>
How to create a Pluggin
Posted by David Elliott at 7/14/2003 9:45:42 AM
I have written an application and am looking to extend its capabilities. I am looking to create
pluggins and don't know where to start. I am also looking to store the pluggins in a subdirectory
from the application root.
I looked on MSDN and some of the other code sites but couldn't find and ... more >>
datetime culture problems
Posted by adam at 7/14/2003 8:40:52 AM
Hi,
I am having difficulty with the date time parse method:
try{
System.IFormatProvider format = new CultureInfo("en-
GB", true);
DateTime dateActive = DateTime.Parse
(txtDate.Text,format);
}
catch{
throw new Exception("Unable to recognise date/time
values: use format 'dd/MM/... more >>
How to run message pump in .NET?
Posted by Jianxin at 7/14/2003 8:04:19 AM
Hi, all,
Can I run message pump in C# to yield cotrol to other
window messages while my main thread is waiting for
lengthy procesing to finish?
In C++, PeekMessage(), TranslateMessage(), and
DispatchMessage() will do the job. For some reason, this
seems not working in managed C++.
A... more >>
ÈçºÎÔÚC#ÖÐÔËÐÐJavaScript£¬²¢½«Æä·µ»ØÖµ´«µÝ¸øC#µÄ³ÌÐò
Posted by Liu Xuesong at 7/14/2003 7:38:46 AM
ÎÒÏëÀûÓà RegisterStartupScript Ö´ÐÐÒ»¶Î JavaScript µÄ¿Í»§¶Ë³ÌÐò£¬²¢½«¸Ã¿Í»§
¶Ë³ÌÐòµÄÖ´Ðнá¹û·µ»Ø¸ø C# ÖеÄÒ»¸ö±äÁ¿¡£ÇëÎʸÃÈçºÎ×ö£¿
... more >>
how to use C# dll files in the C++.net??
Posted by Liu Guidong at 7/14/2003 6:52:20 AM
how to use C# dll files in the C++.net??
Can anyone give me an example ??
regards,
Liu Guidong... more >>
Event Sink
Posted by Ricardo Trujillo at 7/14/2003 6:47:40 AM
Hi everyone...
Does anybody know which is the best way (good
performance) to implement an Event Sink that responds to
the arrival of a mail to a specific folder in
Exchange2000 using C#???
Any help would be appreciated!!!
Ricardo Trujillo
Medellin-Colombia... more >>
problem with C# lock and windows2000 callback
Posted by fc at 7/14/2003 6:12:50 AM
hi, i'm having a problem using C#'s lock and windows2000's
text to speech (vtext.dll) ... basically it looks like
the callback from the TTS is violating C#'s lock, which
looks very very suspicious. here are the particulars:
i've made a form that has two buttons, one to "start
speaking" a... more >>
ASCII encryption
Posted by Mike P at 7/14/2003 6:08:34 AM
I'm trying to encrypt a string into ASCII, and it seems to encrypt fine,
but when I write it to my SQL Server database all the ASCII chars
between 128-159 and 191-255 are replaced with the ? symbol. I know that
ASCII values 128-159 aren't supported by Windows and 191-255 are
non-English charact... more >>
string to Point
Posted by tribal at 7/14/2003 3:43:20 AM
Hi guys,
How can i convert a string to a point
I had a point as a string in the first place
eg : Point myPoint = new Point(12,12);
string s = myPoint.ToString();
......
......
// how do i do this
// Point x = convert s to point
regards
tribal
... more >>
Persisting Classes
Posted by Michael McDowell at 7/14/2003 3:10:27 AM
Hi,
Would anyone here be able to point me towards an example
of classes being persisted using serialization to an SQL
database.
I am able to persist to an XML file but not to an DataSet
(and thence to SQL). One issue will involve transforming
the hiricial nature or athe XML files stru... more >>
predefined preprocessor macros
Posted by cody at 7/14/2003 12:20:51 AM
where can i find a list of all predefined preprocessor macros in c#? i
searched in the msdn but i can't find it.
i now there is at lest one: DEBUG. but what else?
--
cody
[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk
... more >>
|