all groups > c# > january 2004 > threads for monday january 19
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
Toolbar not Threadsafe?
Posted by Sean Dudley at 1/19/2004 11:45:28 PM
I have a toolbar control in my main form. I thread out a an instance of a
watcher class (just looking for new processes and raising an event when one
arises) as a background thread. my main form receives events from the
watcher thread.
Now, within the event handler on the main thread (which ... more >>
New Chapter on Plug Ins
Posted by Jeff Louie at 1/19/2004 11:34:59 PM
I have added a chapter on dynamically loading classes (plug ins) using
Reflection. Code comments welcome from Jon Skeet or anyone else
interested in this.
http://www.geocities.com/jeff_louie/OOP/oop13.htm
In this chapter I am going to demonstrate the use of encapsulation and
polymorphism... more >>
using a text file instead of dB
Posted by The Bear at 1/19/2004 11:13:13 PM
After a dataset has been populated from a text file, is it possible to
update a text file from a dataset once changes are made?
TB
... more >>
class design quandary
Posted by Baris at 1/19/2004 11:03:31 PM
Given the C# code below, can anyone think of a better class design? What
really gets my goat is that the code within derived classes D1 and D2 is
identical and in my mind should be refactored into a base class, but how
can I move this particular 'shared functionality' into a base class?
If ... more >>
Reading one line at a time and parsing - StreamReader HELP!?
Posted by scully NO[at]SPAM serv-dot-net.no-spam.invalid at 1/19/2004 10:17:34 PM
Hello all
I have a project that I have to read the file - which I have done I
can see the file output. I then need to read the line - parse the
line into three separate values (there are 3 = name age and gender)
static void DoPartD()
{
FileInfo theSourceFile = new FileInfo(@"c:\\Doc... more >>
DataColumn Format
Posted by Rakesh at 1/19/2004 9:36:07 PM
Hi,
My user types 7 digit numbers into one of my datacolumns like this: 9999999
I want that to be formatted like this: 999-9999
How could I use the DataColumn->Format property so as to add the '-' in between? Or should I use some other property?
Thanks in advance,
Rakesh
... more >>
Icon in WindowApplication
Posted by Hai Ly Hoang [MT00KSTN] at 1/19/2004 9:10:56 PM
I have written an WindowApplication (in C# with VS7) . It target file is
MyApp.exe. It's default icon (display in Windows Explorer) is not pretty. I
replaced file app.ico in project directory with my icon. However, the
default icon is not changed .
Can anyone help me to change the icon of my app... more >>
Stack/Queue Compare
Posted by lashes112 NO[at]SPAM hotmail-dot-com.no-spam.invalid at 1/19/2004 8:17:38 PM
Ok, I'm working on a program that is supposed to compare each letter
of a string that is put into a stack and a queue. It is supposed to
tell whether or not a word is a palindrome or not. (a palindrome is a
word that spells the same thing backwards/forewards). I have gotten
this much so far:
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
send hex to com port 1
Posted by steve at 1/19/2004 8:16:04 PM
Hi
Does anyone know of a snippet of c# code that will allow me to send hex to com port 1
Appreciate your help in advance
Cheer
Steve... more >>
Mysql
Posted by Tagor at 1/19/2004 7:55:11 PM
Does anyone know how to transfer information from Visual C#.net to a mysql
database?
Thanks in advance!
... more >>
Tutorials
Posted by Tagor at 1/19/2004 7:54:13 PM
Hello,
I am new to Visual C#.net and would like to read some tutorials. Does anyone
know some good ones? Also does anyone know a recourse site like php has
(php.net)?
Thanks in advance!
... more >>
cropping a byte array?
Posted by Will at 1/19/2004 7:40:45 PM
I have a byte array buffer that is of a static size.
byte[] buffer = new byte[512];
Data is being read into it using NetworkStream.Read
int countBytes = netStream.Read(buffer, 0, buffer.Length);
For my applicaion, I need to output exactly the number of bytes that were
read in, not the e... more >>
Access Modifiers
Posted by Pete at 1/19/2004 4:46:07 PM
Hello
Can anyone provide advice/links on somewhere to get a definitive explanation with Examples of how "protected internal" differs from "protected", "internal" and the other access modifiers
For "protected internal" some places appear to say it means a union of protected AND internal, other pl... more >>
automation
Posted by Johnny at 1/19/2004 4:42:37 PM
Is it possible to do an automation object accessible from vbscript in c#?
--
Johnny
... more >>
DataGrid - Cell && Sorting
Posted by Sargas Atum at 1/19/2004 4:42:27 PM
Hi all,
1. I have a problem with cell selection in a table in a DataGrid.
I dont want that anybody writes in the cells. That was not a problem I
changed them to "read only", but if I am going to scroll the table up
and down or from right to the left the content of the active cell will
be... more >>
On properties and their usage
Posted by Gary Morris at 1/19/2004 4:19:36 PM
Hello all,
OK, first of all I have known about properties since VB6, which
I have and have used extensively. It seems that property get
and set are basically the same concept in C# and VB.NET, so
no problem there. In programming with VB6, I never wrote any
program that used properties, and to... more >>
PathFindOnPath
Posted by Wim at 1/19/2004 3:56:27 PM
In the Win32 API there's a function called PathFindOnPath. This searches
the Path for the specified file. Does an equivalent exist in C#? I guess
I could use Environment.GetEnvironmentVariable("path"), then split the
returning string in separate directories and then check if the file I'm
loo... more >>
System.Management namespace
Posted by Mr B at 1/19/2004 3:53:51 PM
Is the SystemParametersInfo function incorporated into the .Net class
libraries? Say, perhaps in System.Management?
Also, I've been looking for a .Net method to find the currently active
window. Anybody care to shed some clues?
Mr B
... more >>
Localization - how do you do it?
Posted by Sebastian Bargmann at 1/19/2004 3:09:16 PM
[ using C# with WindowsForms ]
Hi,
I think I've read everything there is to read about localization in dotNET
and I still don't get it.
I understand the concepts and I understand the code, but there's no way that
the scenarios described can be translated(!) to a real world application.
... more >>
Comparing string
Posted by Aaron at 1/19/2004 2:48:05 PM
How can i compare 2 strings and extract the difference?
string1="abc zxy"
string2="abc 123 zxy 234"
extractedString ={"123", "234"}
thanks
Aaron
... more >>
C# Console App Add Reference
Posted by tim_cavins NO[at]SPAM hotmail.com at 1/19/2004 2:11:05 PM
I have an existing application that has 3 different Projects inside of
it.
The projects are: Administration, DataAccessComponents, and Utilities.
I have added a fourth, a console applications.
Inside of the console app references, I have added a reference to one
of the other projects so tha... more >>
Exception Handling + Winforms
Posted by orianavim NO[at]SPAM hotmail.com at 1/19/2004 2:08:23 PM
Hi,
I would like to create some mechanism to handle all the exceptions
which will happen in my application.
I have one form which is the base form while all the other forms
inherit from it.
I try to find a way to "register" the base form to the Error handling
, but I don't know how….
... more >>
FIrst day
Posted by Ruslan Shlain at 1/19/2004 2:07:20 PM
Hi guys. I have posted a question before but I came up with another one and
I just wanted to get an opinion of as many people as possible. Today is a
first for me developing in C#. I am looking for some guidance.What would be
logical topics to look at and what things I should consider? I am VB.NE... more >>
ADO.NET Beginner
Posted by Richard Rivera at 1/19/2004 1:58:16 PM
I have a method called InsertUpdate which I want to use to handle both
insert's and update's. The GUI has a 2 textboxes: First Name and Last Name.
This is what my InsertUpdate method looks like right now.
InsertUpdate method:
SqlConnection cn = new SqlConnection("Initial Catalog=TEST;Data
... more >>
Whats wrong with this line?
Posted by Ruslan Shlain at 1/19/2004 1:42:05 PM
I cant get this to work in C#. It works in VB.NET.
OleDbConnection Conn = new
OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + FilePath +
";Extended Properties=""text;HDR=NO;FMT=Delimited""");
FilePath = "C:\\ftproot\\TOG\\"
... more >>
Services
Posted by Burns at 1/19/2004 1:26:06 PM
Hi
I'm trying to write a service. It's a pretty simple thing at the moment that just writes to the EventLog, just so I can get my head around the basics of writing Services. It's compiled fine in Visual Studio, but I'm having a bit of bother getting it to run
Visual Studio says to use InstallU... more >>
C# COM ADD-in
Posted by Bruce at 1/19/2004 1:17:37 PM
Is it possible to programmatically disable/enable menus of Microsoft
Word2002 from a COM Add-in developed using C# .NET?
Thanx.
B
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!... more >>
Screen savers
Posted by discussion NO[at]SPAM discussion.microsoft.com at 1/19/2004 1:17:31 PM
Hi,
Is there an event I can listen for in WndProc so I know when the screen
saver is active and insactive?
Thanks
... more >>
Adding Custom DataGrid Class to Form
Posted by hkm_19 NO[at]SPAM yahoo.com at 1/19/2004 12:52:06 PM
Hello !
I have extended DataGrid Control as per my requirements. My questions
is how to add this Custom Data Grid to the Form (that I want this
customized grid to appear). Following are the blocks of code.
public class CustomDataGrid : DataGrid
{
public CustomDataGrid()
{
/... more >>
Samples for LDAP
Posted by Gopal Prabhakaran at 1/19/2004 12:40:26 PM
Dear All,
I am new to this Topic
Tell some site names?
Pls help me learn LDAP?
Thanx
Gopal Prabhakaran
... more >>
Xml.net for an XML person
Posted by suzy at 1/19/2004 12:35:25 PM
Hello,
If I have some XML in the following format:
<Foods>
<Food Name="Pizza">
<Ingredient Amount="500g">Flour</Ingredient>
<Ingredient Amount="100g">Cheese</Ingredient>
</Food>
<Food Name="Pasta">
<Ingredient Amount="500g">Pasta</Ingredient>
... more >>
How to create a control instance dynamicly by text.
Posted by Jelle van Baardewijk at 1/19/2004 12:31:07 PM
Can anyone tell me how to to create a control instance dynamicly.
Example:
When I have a string value with the value 'TextBox'. I want to create a
TextBox instance.
I know that i can do the folowing: TextBox tb = new TextBox();
Now i've created a method that translates the string value:
... more >>
changin the rights on a file or a directory
Posted by Florent at 1/19/2004 12:29:46 PM
Hi all,
I'm trying to set rights on a file or a directory with a C# program. I have
tried with WMI, Win32 classes, etc, but I didn't manage to do it. Could
anyone help me? Does anyone have a website, a free sourcecode, a sample, or
anything that could help me changing access rights on a file ?... more >>
How do you get the default value of a Constant using reflection in c#?
Posted by mfitzgerald NO[at]SPAM proclarity.com at 1/19/2004 12:28:41 PM
Using reflection, I'm trying to get the value for a constant in an enum.
Getting the contant name works fine using:
FieldInfo[] fieldInfos = TYPE.GetFields();
foreach(FieldInfo fi in fieldInfos )
{
Console.WriteLine("Name: {0}" fi.Name);
Console.WriteLine("Value: {0} " fi.GetValue(null).... more >>
CallByName in C#????
Posted by Jelle van Baardewijk at 1/19/2004 12:24:30 PM
Does anybody know if there's way to do this in C#?
Jelle van Baardewijk
... more >>
LinkButtons, Hyperlinks
Posted by Ken Saganowski at 1/19/2004 11:58:29 AM
Not sure if this is the proper group to post this but its worth a shot:
Is there a project property setting that gives hyperlinks and linkButtons
the "rollover" effect with underlining?
Right now, it is somehow defaulted to an automatic underline which I only
want displayed when the user mov... more >>
use ToArray function in ArrrayList
Posted by Grey at 1/19/2004 11:33:06 AM
Dear all
I want to know that how to use ToArray function in ArrayList. I have an =
ArrayList which is storing string, Actually, I want to use the Join =
method, so I think I need to convert the arraylist to array first. The =
question is do I need to convert the arraylist to array in order to ... more >>
Radix 64 (uuencoded files)
Posted by discussion NO[at]SPAM discussion.microsoft.com at 1/19/2004 11:32:49 AM
Hi,
What libraries does C# have for UUEncoding a file?
Thanks
... more >>
OO-Question
Posted by Rasmus Kromann-Larsen at 1/19/2004 11:30:30 AM
Hey,
I just started out using Visual C# (Visual Studio .NET 2003), but am having
a little problem figuring out where to place my datastructure. I've worked
with programming alot before, but this is my first real object oriented
project. To describe my problem, I'll just outline the project I'm... more >>
Implementing a Generic Database Interface in C#
Posted by Amintas Lopes Neto at 1/19/2004 11:26:05 AM
Hi all,
I am beginner in C#.
I am currently migrating a system which was written in VB .NET to C#.
In the VB program, the programmer is able to choose the DBMS between SQL Server 2000 and Oracle,
according to a configuration string stored on the Web.config file.
This way, when th... more >>
General Question
Posted by at 1/19/2004 11:16:03 AM
I am curious what others use for maintaining versions of projects.
Currently, I just save the builds in folders with a date on them. I do have
Visual Source Safe which came with .Net Enterprise however I currently have
not had the time to use it. What do others use or do?
Thanks
... more >>
XML HTTP
Posted by Dave at 1/19/2004 10:51:22 AM
Hi,
I'm trying to post XMl to a URl but when I test it the text in the =
request stream doesn't appear to get sent:
// Configure secure certificate & credentials
req.ClientCertificates.Add(myCert);
req.Credentials =3D myCache;
=20
... more >>
querying columns from tables
Posted by C# newcomer at 1/19/2004 10:50:50 AM
Hi all
If I have to read just one or two columns from my SQL
server table, is data reader the only option? or is there
a more efficient way?
Thanks a lot in advance for your replies.... more >>
Webserver
Posted by Simon Johnson at 1/19/2004 10:42:11 AM
This is really a design question..
I'm writing a HTTP server as a little TCP exercise.. The way of handling
the connections i've drempt up involves invoking a new thread each time
a tcp client wants to connect. Since theres a 25 thread limit on the
framework this doesn't sound a clever idea... more >>
System.ExecutionEngineException is no handle exception occour at mscorlib.dll
Posted by Lex Yacc at 1/19/2004 10:40:01 AM
'System.ExecutionEngineException' $B$N%O%s%I%k$5$l$F$$$J$$Nc30$,(B mscorlib.dll
$B$GH/@8$7$^$7$?!#(B
I can't find the reason of this strange exception, help me , thank you!
--shi
... more >>
Creating a List of TreeViews
Posted by sho_nufff76 NO[at]SPAM yahoo.com at 1/19/2004 10:33:41 AM
Hello all,
I want to create a List of TreeViews in either a ListView or ListBox
component.
The result would be a list object that for the first row has a tree
like:
com
-foo
-goo
-blue
and then another row that has another tree, and so on and so forth.
What woul... more >>
Different app.configs for different build configurations?
Posted by n_o_s_p_a__m NO[at]SPAM mail.com at 1/19/2004 10:26:33 AM
Hi, I want to include a different app.config in the release vs. the
debug build. How can this be done?... more >>
How to access Excel Spreadsheets
Posted by kozle NO[at]SPAM hotmail-dot-com.no-spam.invalid at 1/19/2004 10:18:12 AM
I am currently using this to get data from an .xls
file:string conn =
"Provider=Microsoft.Jet.OLEDB.4.0;" +
"Data Source=" + file + ";" +
"Extended Properties=Excel 8.0;";
System.Data.OleDb.OleDbDataAdapter adapter =
new System.Data.OleDb.OleDbDataAdapter("SELECT * FROM
[... more >>
How to get new Event Log Entry?
Posted by luoyijunaa NO[at]SPAM yahoo-dot-com.no-spam.invalid at 1/19/2004 10:18:11 AM
I am writing a program that gets event logs from remote machines and
stores them in local database. The process runs at night every day.
To save time, every time when the process reads event log from remote
machine the process should only insert new event logs to the
database. Since I have no ri... more >>
Garbage Collectionin .NET
Posted by Rimonne at 1/19/2004 10:09:28 AM
Hi All
I understand that the .net framework has garbagecollectors which run
automatically and release memory.
But in my application in C#, i have an object which should never be
released.
Can I achieve this in .NET ?
An urgent response is neede, as I am struck up with my development wo... more >>
override
Posted by naveen at 1/19/2004 9:46:24 AM
Hi
why there are 2 diffrenet types in heritence of defining methods
1. one redefining method of base class using new keyword
2.customizing method using virtual and override keywords
is any one has more advantage then other or does it help compiler in any way
Regards
Naveen
... more >>
Application.DoEvents
Posted by Bob lazarchik at 1/19/2004 9:40:21 AM
Hello:
I have created a component in which I need to do a timeout operation. What
is the equivalent to Application.DoEvents() in a Component.
public virtual bool ReceiveResponse( out string aResponseString, int
aTimeoutInterval )
{
bool aTimeout = false
while ( ( Response... more >>
How to scroll axWebBrowser
Posted by WRH at 1/19/2004 9:21:12 AM
Hello
For my first C# program I have an axWebBrowser window.
I set it to Navigate to a particular site when the program
starts. Works fine. What I would like to do now, once
the navigation is complete, is to scroll the window to a
particular region. I can trap the NavigateComplete message
but ... more >>
How to create .html help files?
Posted by Anand Ganesh at 1/19/2004 9:15:15 AM
Hi ,
I have developed an Application in visual C#.NET. I want to write html help
files. How will I do this?
Any suggestions please?
Thanks for your help.
Regards
Anand Ganesh
... more >>
printing in .net
Posted by jharris NO[at]SPAM securitytrustco.com at 1/19/2004 8:39:12 AM
I have been searching newsgroups for solid answers on good printing
practices in .net, and have not found an answer. Obviously, .net
provides the PrintDocument/PrinterSettings objects, that from the
examples are great for printing lines with the graphics object. But
this is not very useful- ho... more >>
Reading a file that is already open by another process
Posted by trellow at 1/19/2004 7:46:41 AM
Hello,
I am writing an application that needs to read a file that is already open by another process for writing.
When I do the following:
FileStream fs = new FileStream(fileName, FileMode.Open, FileAccess.Read);
BinaryReader br = new BinaryReader(fs);
I get the following exception:
... more >>
StreamReader
Posted by Mike at 1/19/2004 7:06:15 AM
This object works great with "files".
but I have a Virtual web Site under my main site that points to my file share.
Since this is secure, I'd like to open the file via its url.
I tried this but .net failed. Said URI formats are not supported!
string sFile = "https://myServer/Reports//1... more >>
StreamReader Object
Posted by Mike at 1/19/2004 7:01:15 AM
This object wokrs great with file and file shares.
But I have a virtual web site created that points to my file share where my files are located. Since this virtual web site is protected, I'd like to use the web site's file instead of the file share.
Is it possible to open a file (StreamRead... more >>
How to compile in a file....
Posted by Owatona at 1/19/2004 6:56:12 AM
Hi, to all...
I have a project that have 5 reference to com objects... How could generate an exe file that have all the dlls inside?
Thanks in advance.
Owatona.... more >>
Circular Reference - Command Line Compile?
Posted by deja NO[at]SPAM homerlex.mailshell.com at 1/19/2004 6:35:15 AM
How can I compile two classes from the command line that reference each other?
Class A referenced Class B and Class B references Class A.
Regards... more >>
Circular Reference - Command Line Compile?
Posted by deja NO[at]SPAM homerlex.mailshell.com at 1/19/2004 6:22:18 AM
How can I compile two classes from the command line that reference each other?
Class A referenced Class B and Class B references Class A.
Regards... more >>
Advice
Posted by josema at 1/19/2004 6:21:25 AM
Hi to all
What is the best way call methods with parameters or create properties to store values?
Thanks in advance.
Josema.... more >>
color_dialog
Posted by josema at 1/19/2004 3:21:12 AM
Hi,
What its the event that shows to me that the user has choose a color in a color dialog??
for example in the openfiledialog there is one that is File_Ok, but the color dialog class i dont see an event like this...
Thanks in advance.
Josema.... more >>
File Transfer Problem in c#
Posted by Abhishek at 1/19/2004 3:15:46 AM
I have a problem transfering files using sockets from pocket pc(.net compact
c#) to desktop(not using .net just mfc and sockets 2 API). The socket
communication is not a issue and I am able to transfer data across.On the
serve I am using Socket 2 API (recv function to read bytes)and not using
... more >>
C# Application Structure (Threading???)
Posted by lltaylor2000 NO[at]SPAM yahoo.com at 1/19/2004 3:03:51 AM
Hello All,
I have a coding structure question.
I my attempt to get upto speed with creating C# applications.
I taken one of our excel sheets and written it as a C# app.
It is a mortgage calc type program and performs numerous calculations
based on user input, I am experiencing a minor pe... more >>
problem with SQL server 2000 connection in C#.net
Posted by anant.aggarwal NO[at]SPAM thedetail.info at 1/19/2004 2:51:19 AM
Hi
I am having a problem with the SQL server connected in VC#.net
I am using the SQLDataAdaptors to access and fill the data to the
DataSets.
There are certain pages in sequence which run one after the another as
a process based on the user interaction. All the pages (even pages
before ... more >>
return multiple values
Posted by Aaron at 1/19/2004 12:36:49 AM
can a method return multiple values?
pseudo code
public string method1()
{
//db pull
select col1, col2, from tb1
s1 = col1;
s2 = col2;
return s1, s2?
}
string1 = method1[s1]
string2 = method1[s2]
... more >>
|