all groups > c# > december 2004 > threads for thursday december 9
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
VS 2005
Posted by Just D. at 12/9/2004 11:41:10 PM
What's the current situation with VS 2005? I've heard about prerelease and
even downloaded something. What about release, how soon we can expect it?
Just D.
... more >>
Strong Type Class Generator
Posted by John Mark Howell at 12/9/2004 10:21:53 PM
Does anyone know if there is a utility that VS uses to generate the Strongly
Typed Dataset classes for C#? Right now, it blows when you try to have a
default on a DateTime column because a DateTime is not CLS compliant.
BTW, what date / time type are we supposed to use if we need CLS
compl... more >>
Converting Keystrokes in upper case
Posted by Manish at 12/9/2004 9:55:57 PM
In my application there is need for only upper case chars..
Currently I am making entry to upper case when user leaves focus of the
text control.
I want to do some modification here...When user enters any char in
small case...during that entry it should convert in upper case...
It is very easy ... more >>
Custom Collection Types
Posted by Adam Dockter at 12/9/2004 8:41:39 PM
Okay something has been driving me crazy.
I see in the MSDN documentation that ToolBar.ToolBarButtonCollection
implements the IList interface.
The I look at members in the ToolBars.Buttons collection like:
public void Add(ToolBarButton button);
public ToolBarButton this[int index];
which... more >>
Insert New Row into Existing DataTable Big Problem Again .. Please help !!!
Posted by kelvinweb NO[at]SPAM gmail.com at 12/9/2004 8:32:20 PM
Hi All,
Please advised. Thanks alot.
y = myTable.Rows.Count;
for (i=0; y > i ; i++ )
{
DataRow dataRow = myTable.Rows[i]; <----If using this syntax, Error
Message: Exception Details: System.ArgumentException: This row already
belongs to this table.
DataRow dataRow = new DataRo... more >>
looking for best skining control like activeskin for vb6
Posted by // chall3ng3r // at 12/9/2004 8:26:58 PM
hi guys,
im looking for activeskin like skining control fot my winform app.
i want my users to be able to change the app theme/skin at runtime in
my .net app. plz suggest best solution.
tia.
regards,
// chall3ng3r //
... more >>
static method in interface?
Posted by bauscharln at 12/9/2004 8:26:33 PM
hoi,
I just wanted to add a static method to my interface, but that's not
allowed!
Is there a reason for this???
(Yes, I could make an abstract base class, but that's not what I want,
since I don't need an implementation.)
thank you in advance,
bauscharln... more >>
How to use an XML config file in Windows Service
Posted by SP at 12/9/2004 8:04:14 PM
Please advice. I am not familiar with the concepts of windows service.
I am trying to access a xml configuration file from windows service. But it
is failing. configuration file is in the same directory from where I install
windows service. I dont want to give an absolute path to the location o... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
is there any way to get to a unique build verion of an assembly at runtime? e.g. a version that is unique to the time that the assembly was built?
Posted by Daniel at 12/9/2004 7:05:39 PM
is there any way to get to a unique build verion of an assembly at runtime?
e.g. a version that is unique to the time that the assembly was built?
... more >>
Nunit and Windows Application
Posted by mychevworld NO[at]SPAM yahoo.com at 12/9/2004 6:59:35 PM
I'm a new user of Nunit and have done some testing against Class
Libraries, but haven't figured out how to test a Windows Application.
Do I have to include the Nunit test classes with the EXE project?
... more >>
IsFile and IsDirectory functions
Posted by Flix at 12/9/2004 6:52:38 PM
Is there any function to detect if a valid path is a file or a directory ?
I've tried with (System.IO.Path.GetExtension(path)==""), but it doesn't
work, since some files haven't any extension and some folders have some dots
inside their path.
Any suggestions?
... more >>
dropdown lists in asp.net
Posted by Lance at 12/9/2004 6:49:02 PM
I am trying to select the item in the dropdown list the matches a value
pulled from the database and set this matching item's selected property to
true so that it is the selected item in the combo box(dropdown list). How
would I do this in C#? It seems like it should be real easy but I can't... more >>
Add New Blank Row Into Existing DataTable While Looping Problem.
Posted by kelvinweb NO[at]SPAM gmail.com at 12/9/2004 4:59:38 PM
Hi All,
I wrote a program insert new row between rows while the datatable is
looping. It display the error message.
Exception Details: System.ArgumentException: This row already belongs
to this table.
[ArgumentException: This row already belongs to this table.]
System.Data.DataTable.Inser... more >>
DataConnector.Find
Posted by Jaga at 12/9/2004 4:57:36 PM
Hello,
I have a DataConnector (.NET 2.0) bounded on a DataTable.
I'd like to set the current Item to the DataRow wich contains "XY" in the
column "Name". How can I do that?
I could use the method Find(PropertyDescriptor prop, object key), if I would
know, how to get the PropertyDescriptor f... more >>
C#, Outlook, and a nasty error
Posted by techprot-google04 at 12/9/2004 4:56:20 PM
Who's asking this question:
1. A newbie.
2. This is my second C# program.
3. I've done VB programming in the past.
4. I'm rusty on OOP - usually where I trip up.
Here's what I want to do:
1. Create a task in Outlook from within my program.
I'm using this as a reference:
http://msdn.micro... more >>
Insert New Row into Existing DataTable Big Problem .. Please help !!!
Posted by kelvinweb NO[at]SPAM gmail.com at 12/9/2004 4:50:21 PM
Hi,
Need I Create New DataTable ? Looping Existing Datable, and Move
Existing DataRow Into New DataRow ? If need, How to do that ? Thanks... more >>
how can i make a background thread ??
Posted by jam at 12/9/2004 4:25:53 PM
dear all,
could anyone help me about telling me how can i make a background thread
displaying loading... when I cam calling a console application??
thanks..
jam
... more >>
XP Login-ID authentication
Posted by Avi at 12/9/2004 4:25:04 PM
Folks,
1 How can I retrieve the current-user's XP login-id and display it in a
win-form
2 How can I retireve that same login-id and display it in a web-form.
Many thanks,
Avi
avi_farah@hotmail.com... more >>
console application send email error
Posted by jam at 12/9/2004 4:01:26 PM
Dear All,
I am writing a console and it send a email out when it hits error
it calls this
static void SendErrorEmail(string error)
{
System.Web.Mail.MailMessage mail = new System.Web.Mail.MailMessage();
System.Web.Mail.SmtpMail.SmtpServer = smtpServer;
mail.To = emailaddres... more >>
how to follow cursor in text box
Posted by ofry NO[at]SPAM myrealbox-dot-com.no-spam.invalid at 12/9/2004 3:56:20 PM
Hi
I am writing an application very similar to notepad and I have to
implement the status bar feature, which mean that I have to follow
after the cursor
is there any event that raised when cursor location change ?
I have tryed the text change and the click event on text box but its
not... more >>
Is there a way to access code run when an assemble is loaded?
Posted by David T. at 12/9/2004 3:55:03 PM
Is there such a thing as a static constructor of an assembly? In other
words is there code that is called when the assembly is loaded? There must
be. Is there a way to customize this code? Is there a "DllMain" that is
called that code can be written to (i.e. customized)?
I am trying to ha... more >>
Using different colors in List Boxes
Posted by (tantiboh NO[at]SPAM hotmail.com) at 12/9/2004 3:51:03 PM
I'd like to affect specific items in a List Box. In other words, I'd like to take any one (or more) elements of the List Box Collection and, say, turn it red, or turn it bold.
Anybody know how to do this?
**********************************************************************
Sent via Fuzzy So... more >>
ASP.NET C# Newbie
Posted by Craig at 12/9/2004 3:50:55 PM
How do I get the datagrid to page using C# in ASP.NET???
I have always used vb and to make a datagrid page the vb code that works
is..........
Private Sub DataGrid1_PageIndexChanged(ByVal source As Object, ByVal e
As System.Web.UI.WebControls.DataGridPageChangedEventArgs) Handles
DataGr... more >>
Events Sink Question
Posted by Zoury at 12/9/2004 3:35:15 PM
Hi folks! :O)
We'll be sending emails automatically to our users and would like trap all
the "failure notice" email type that might get back.
We've decided to use Events Sink to do this.
The exchange server isn't on my computer... and according to this sample :
http://www.codeproject.com/cs... more >>
C# 2005 Beta, Crystal Repots 9, & Dynamically Setting Images at Runtime
Posted by Glen Richards at 12/9/2004 3:31:55 PM
I've had no success in trying to dynamically set images at runtime in a
Crystal Reports 9 report using C# 2005 Beta.
I've been doing research along these lines & all the posts I've read
say this can't be done.
I was wondering if I've missed anything or if Crystal Reports 10 has
added this f... more >>
VB 6 -> C# Classes technical note...
Posted by SpotNet at 12/9/2004 3:11:25 PM
Hello NewsGroupies,
Not a problem nor a show stopper, just want to ask whether a public not
creatable class in VB6 equates to a class of static members in C# (or static
class in the new C# to come). Just built a whole lot of interface classes in
C# and want to allocate the interface to th... more >>
Console application process question
Posted by jam at 12/9/2004 3:09:04 PM
Dear All,
I have a command process running xcopy in console, and now I want to execute
the program Rsync After the files are copied...how could i do??
Process p10=new Process();
p10.StartInfo.FileName = "cmd.exe";
p10.StartInfo.UseShellExecute = false;
// p.StartInfo.Crea... more >>
Exception handlig article
Posted by ORC at 12/9/2004 2:55:03 PM
I'm looking for a good article that explains how exception handling should
be implemented in an application. It's not only the tecnical implementation
(try-catch-final thing) but a good general rule to follow I wanted. Are you
aware of one you would recommend?
Thanks,
Ole
... more >>
Help me with this odd mouse click problem
Posted by MrNobody at 12/9/2004 2:35:06 PM
I have a DataGrid which I added a MouseUp event:
datagrid.MouseUp += new MouseEventHandler(onMouseUp);
which simply does:
if (e.Button == MouseButtons.Right) {
if(hti.Type == DataGrid.HitTestType.ColumnHeader) {
main_dg.ContextMenu = columnHeaderMenu;
} else if (hti.Type ... more >>
convert this vb to C#
Posted by jj at 12/9/2004 2:16:04 PM
Howo do you convert this vb to c#? Asc and Mid functions are not in c#.
any help is appreciated.
If Asc(Mid$(Text, i, 1)) < 128 Then
strTempChar = CType(Asc(Mid$(Text, i, 1)) - 49, String)
ElseIf Asc(Mid$(Text, i, 1)) > 128 Then
strTempChar = CType(Asc(Mid$(Text, i, 1)) + 49, String)
E... more >>
SqlDataReader problem...
Posted by Franck Diastein at 12/9/2004 2:09:06 PM
Hi, when I call ExportData I have this error:
Invalid attempt to Read when reader is closed.
Telling me that there's a problem with this line:
while(_dataR.Read()){
Code:
*************************************************
public void Export2CSV(){
SqlDataReader _dataR = ExportData();
... more >>
Microsoft Data Access Block and static methods
Posted by Clint at 12/9/2004 1:48:02 PM
Hey all -
Excuse the cross-post ... I'm not sure what the appropriate newsgroup
would be for this question.
I have a question that I'm not quite sure how to ask. For all I know, I
have the verbaige completely wrong, but here goes nothing ...
I'm currently using the MS Data Access Block fo... more >>
Strings Strings Strings from sql ds.
Posted by Christopher at 12/9/2004 1:39:26 PM
New to C#. Ive got my data coming out in the form of a datagrid. I want to
take my data which comes from a "text" field inside sql server 2000.
Ive tried forcing the data into a string as:
string xyz= ds.Tables.["news"].Columns.["article"].ToString();
and
richTextBox1.DataBindings.Add( ne... more >>
not all code paths return a value
Posted by Esteban404 at 12/9/2004 1:23:07 PM
I have a Winform news kiosk app which connects to a SQL database. When the
main form is running, it reaches a threshold time or number of sequential
operations and then loads another instance with a different dataset. The
datasets are based on local settings which I'm determining from IP space... more >>
check if a apllication is already running?
Posted by jam at 12/9/2004 12:52:23 PM
Dear all
Process [] checkpro = Process.GetProcessesByName("abc");
Console.WriteLine(checkpro [0]);
correct ma?? how should i do??
jam
... more >>
Marshal by value
Posted by ALI-R at 12/9/2004 12:31:42 PM
Is there somebody who can guid me to an example of marshal by value
implementation of remote object?.
I have read a lot of docs but they are mostly focused on marshal by ref and
there is no complete implementation of marshal by value.
Thanks for your help.
ALI
... more >>
Embed xsd in C# project
Posted by David at 12/9/2004 12:19:56 PM
Hello,
I'm using an xml schema (xsd file) to validate input xml. This xsd is
used by the C# dll and must be distributed with it. The xsd isn't
modified. So I would like to embed it in the DLL so that I don't have to
worry about the path where the file is stored... How do I embed the xsd
file in... more >>
String Comparison
Posted by MaSTeR at 12/9/2004 12:18:48 PM
Can anyone provide a practical short example of why in C# I shouldn't
compare two strings with == ?
If I write this in JAVA
String string1 = "Widget";
if (string1 == "Widget")
System.Console.WriteLine("String1 Equal.");
String string2 = new String("Widget");
if (string2 == "Widget")... more >>
Open new browser window in C# dotnet
Posted by Eric van der Niet at 12/9/2004 11:57:38 AM
Hello all,
What i want to do is the following.
I want to call a c#.net file from an html page. this htm send some
parameters to the C# (asp) file. In Vstudio2003 what kind of file should
this be? don't think its a webservice.... And from that point... i would
like to open a new page that... more >>
Manage Web Browser or control that render HTML
Posted by Champika Nirosh at 12/9/2004 11:43:19 AM
Hi All,
Do any of you know a pure manage control, that render html pages. I know
microsoft web browser com, but it is not a manage one.
Thanks,
Nirosh.
... more >>
Self terminating windows service
Posted by SP at 12/9/2004 11:41:34 AM
Hi All,
I wrote a windows service which is supposed to stop after specified amount
of time. I am calling OnStop() after specified time. OnStop() methods
executed but I dont see the service stopping.
Please advise how to stop the service.
Thanks,
SP
... more >>
Cannot access Columns and Rows of some Strong-Typed Dataset's DataTables
Posted by Kyle at 12/9/2004 11:26:15 AM
I am having a major issue with strongly typed datasets. I have been
using the Server Explorer in VS.net 2003 to add tables from the
database into a DataSet. I cannot access the rows or columns of some
of the DataTables. What can I do to fix this, or why can I not do
this? I cannot find any i... more >>
How can i get rigtht base64Encode for Russian Language use C#?
Posted by qushui_chen at 12/9/2004 11:16:04 AM
Dear friend,Now ,i am writing a Smtp Client. but there have problem
bother me that it is send Russian Language Html ,Mail is found identify code
like "??" in mailBody.
Mail source content,that it is Russian language HTML Page:
---------------------------------------------------------------... more >>
Populate a list box with multiple columns
Posted by John Sutor at 12/9/2004 11:04:21 AM
Does anyone know how to populate a listbox from an arraylist with
delimited values.
Either that or with just two values.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!... more >>
C# and Wininet.dll question
Posted by Rich at 12/9/2004 10:33:25 AM
Greetings,
I have a VB6 app that uses API's from wininet.dll for FTP-
ing textfiles to and from Mainframe computers and doing
directory searches on the mainframe from a windows desktop
computer, etc. I want to migrate this app to C#. So
before I start re-inventing the wheel (with
Inter... more >>
Arrays in C# - indexed by an Enum, and two-dimensional as a property....
Posted by Marc Scheuner [MVP ADSI] at 12/9/2004 10:27:44 AM
Folks,
I was trying to achieve the following thing: I have a "structure" that
basically is a two-dimensional array of numeric values. Both
dimensions are handled by enumeration types in C#:
public enum Level = { low, medium, high };
public enum Foo = { bar, subbar, superbar };
Now my id... more >>
Visual Studio 2003 Designer
Posted by pascal NO[at]SPAM go.ro at 12/9/2004 10:21:09 AM
Hi,
I have created some complex form design using Visual Studio 2003 in a
C# Windows Form Project. On the form I have aligned the controls using
pixel precision.
After that I save and then reopened the form, now the controls are not
in the same position.
Is the Designer not able to save the ... more >>
Waiting for busy file to become available
Posted by marc.gibian NO[at]SPAM ACM.ORG at 12/9/2004 10:13:39 AM
I am writing a simple C# application to read some files in an FTP drop
directory. Occasionally the program will attempt to open a file that is
in the process of being written. FileStream will throw an exception if
the file is busy while its constructor is attempting to open it. I
would prefer to... more >>
Interesting .NET Framework Behaviour
Posted by pascal NO[at]SPAM go.ro at 12/9/2004 10:06:33 AM
Hi,
If I remove from a C# program the line
Application.Run(new Form)
with the line
(new Form).ShowDialog()
the program runs without any changes.
Why is that?
The form shouldn't process any messages, but it does!
Where is the message loop?
Thanks,
Diablo
... more >>
Regular expressions
Posted by ìÅÂÅÄÉÎÓËÉÊ áÌÅËÓÁÎÄÒ at 12/9/2004 9:56:01 AM
Good day!
i have a little problem, which I can't undestand. In VS.NET 2003 create
emply VC# project, add empty code file, and write next simple code:
////////////
using System.Text.RegularExpressions;
class Test
{
static void Main()
{
}
}
////////////
While building, I got er... more >>
Creating an ArrayList of Objects c#
Posted by Netmonster at 12/9/2004 8:23:51 AM
Hello,
Does any one have an example of how to create an ArrayList of objects?
i.e. ArrayList of ArrayLists or an ArrayList of Hashtables?
Thanks in advance
KC
... more >>
Will this code work with an NT domain?
Posted by Peter Steele at 12/9/2004 8:11:55 AM
I have code to add a domain user to a local group but I'm not sure if it
will work with NT domains or whether it will only work with Active Directory
based systems. Here's the code:
public void AddDomainUserToLocalGroup(string computerName, string groupName,
string domainName, string userNa... more >>
Sound recording
Posted by Michael at 12/9/2004 7:51:07 AM
Hello, I want to create a program that records a sound track from the
microphone, and save it into a file.
Can anybody tell me please how do I get the audio from the microphone?
thanks for your help... more >>
reading file permissions
Posted by HateBSOD at 12/9/2004 7:24:02 AM
Is there a way to read check file permissions on groups of files, via
xml. I am just looking for a sample of how to read a file /and/or files
and get the file permissions , same goes for registry, anyone know of
any good tuts or have any pointers / books for me to look at or
reccomend
... more >>
Named mutex and cpu time
Posted by le_khan NO[at]SPAM yahoo.fr at 12/9/2004 7:09:51 AM
Hello NG
I'm using a named mutex to protect shared data between 3 processes.
I've noticed that each process that waits for the mutex uses 50% of CPU usage...
Can someone tell me what to do to minimize the CPU usage in the waiting processes?
thanks
patrice... more >>
Caller ID
Posted by The Bear at 12/9/2004 7:02:25 AM
Does anyone know how to get the Caller ID from a phone and make use of it in
a computer?
T.B.
... more >>
How to get data from a SQL server and put it into a comobox
Posted by Stijn Goris at 12/9/2004 6:37:04 AM
Hi all,
I 'm trying to do some pretty simple stuff but can't get it to work.
I want to get some data from a database (on sql server) and show a column
from the table in a combobox. I can copy the data from the database (an
actual table) into a DataTable but at this point I'm stuck. The DataT... more >>
Outlook Email Item
Posted by W Akthar at 12/9/2004 6:13:25 AM
Hi,
Can anyone point the way to some examples which show you
how to read Outlook email items in C# ?
I need to be able to read Outlook items stored in a
folder.
Cheers
... more >>
sound recording
Posted by Michael at 12/9/2004 6:11:03 AM
Hello, I want to create a program that records a sound track from the
microphone, and save it into a file, but I don't know how and where to begin,
Please give me any piece of information about this issue.
Thanks ... more >>
Unsafe code: Converting "byte *" to "[] byte"
Posted by _BNC at 12/9/2004 4:59:08 AM
I've converted "[] byte" to "byte *" at times, using 'unsafe' and
fixed { .... }, but the reverse does not seem to work.
In this case, a C++ DLL returns a byte * and a length. What is the best
way to convert these to straight C#-compatible straight "[] byte" arrays?
PS: The C++ DLL is a... more >>
Extermely nasty bug with the way .NET handles references
Posted by Andrew Baker at 12/9/2004 4:17:16 AM
If you have every had the following error when trying to use load a
form in the IDE then read on!!!
An exception occurred while trying to create an instance of
GSL.Windows.Forms.BrowserFormBase. The exception was "Method Validate
in type GSL.Shared.GridFilters.GridFilter from assembly GSL.Shar... more >>
Downloading file from remote server with 'Save As' dialogue
Posted by kennedyk78 NO[at]SPAM hotmail.com at 12/9/2004 3:36:48 AM
Hi,
Any help with this would be really appreciated!
I'm trying to download a file from a remote server. The access
permissions is okay but the problem I'm facing is that the file is
getting downloaded before the Save As dialogue appears. As we will be
downloading some large files, it's un... more >>
Insert New Row into Existing DataTable Big Problem .. Please help !!!
Posted by kelvinweb NO[at]SPAM gmail.com at 12/9/2004 1:56:39 AM
Hi All,
I have to the following problem on add new row into existing DataTable
while the DataTable Looping.
for (i=0; myTable.Rows.Count > i ; i++ )
{
DataRow dataRow = myTable.Rows[i];
dataRow["Stockroom"] = "";
dataRow["CurrencyCode"] = "";
dataRow["TotalPrice"] ... more >>
thread frozen
Posted by droopytoon NO[at]SPAM hotmail.com at 12/9/2004 1:43:15 AM
Hi,
I start a new thread (previous one was "thread timing") because I have
isolated my problem.
It has nothing to do with calling unmanaged C++ code (I removed it in a
test application).
I have a thread "_itTaskThread" running.
The application is listening on a TCP port.
It accepts 2 connec... more >>
get data from Dataset
Posted by Tarscher at 12/9/2004 1:41:03 AM
hi all,
I have executed a query and put the result in a dataset. How can I get data
from this dataset? Can I alter it directly or do I have to convert it into a
new type to get the data from the dataset.
Regards
Stijn... more >>
c# sql update question
Posted by Starbuck at 12/9/2004 12:36:06 AM
Hi
The code below saves data from my edit screen, it shows no errors and seems
to run but nothing is written back to the table,
Can anyone spot my mistake
Thanks
private void updateRec()
{
try
{
SqlConnection con = new SqlConnection("Data Source=10.0.0.3;Initial
Catalog=map... more >>
|