all groups > c# > march 2005 > threads for tuesday march 29
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
Anyone using a .NET OR mapping framework?
Posted by Mel at 3/29/2005 11:15:09 PM
Is anyone out there using a C#.NET OR mapping framework in a production
environment? I'm thinking of such frameworks as nHibernate, Gentle, etc..
I've looked at quite a few but none of them seem mature enough for serious
use. Looking for suggestions. Thanks.
... more >>
Binding two values to combobox display member property
Posted by Hanumanth Reddy at 3/29/2005 10:53:37 PM
Any one could help how to bind two table field values
into combobox display member property. I mean i have two
fields in a table. One is states description and another
is states codes.I want to add these two fields to
combobox display property.
Any body knows this solution, post it.
... more >>
RowFilter and DataColumn Named as Number
Posted by rawCoder at 3/29/2005 10:41:48 PM
Hi All,
I have a column in my datatable that is named like a number i.e. 45
I know its not good to have a column named as number, but...
Anyways, so when i set the DataView's RowFilter to some thing like
"45='blah'"
System.Data.EvaluateException is raised with message "Cannot perform '=... more >>
strange hashtable manipulation
Posted by El Ricoun at 3/29/2005 10:28:24 PM
Hi,
I'am trying to use several connections.
I have got a method to get connection string from a file into a hashtbable.
Then, I have got another method to get one connection string from this
hashtable
and get connection.
But when I get a connection string, open() failed with a beautifull me... more >>
javascript redirect in asp.net?
Posted by Dunc at 3/29/2005 10:00:48 PM
I've got a Web page written in C#, and when it runs and the user presses
enter, it submits the first button on the form. As you'd expect. I want
the system to redirect to a different page when a user pressed enter from a
second textbox. I've used the line of code in the Page_Load:
SearchStr... more >>
Constant expressions
Posted by Jon Shemitz at 3/29/2005 9:24:16 PM
How come
const string S = "string"; // valid
is valid but
const Type T = typeof(string); // invalid
is not? "C# Language Specification" chapter 7.15 defines a constant
expression as being of the string / char / numeric types that are
aliased to System.X types, but 7.15 certainly do... more >>
type casting with GetType
Posted by David Sobey at 3/29/2005 9:10:19 PM
hi
- I have a class Node, with a child class Num, that inherits from Node.
- I have a function "Evaluate" that takes two Nodes as an argument.
- I call this function by sending it two "Num"'s. When i use
GetType().ToSTring(), it seems to be aware that the arguments it recieved
are in fact Nu... more >>
C# book!
Posted by Balaji K at 3/29/2005 8:50:07 PM
Which is the best book for C# ?
Programming C# or Inside C# ? Any other suggestions?
Thank You.
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Open image with MS Paint
Posted by BC at 3/29/2005 8:12:07 PM
Hi all,
How can I open an image with MS Paint in a c# windows application?
Cheers,
Benny
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!... more >>
Data access
Posted by web1110 at 3/29/2005 7:15:19 PM
Hi Y'all,
I am inside a DataGrid control derived from a DataGridTextBoxColumn.
I am in the Enter event.
The DataGrid is sourced to a DataTable
How do I find the actual data from row within the associated DataTable
column to display in my derived control?
Thanx,
Bill
... more >>
Getting Method Arguements from a Comma-Delimited Text File
Posted by JeffM at 3/29/2005 6:30:11 PM
Hello all-
I'm pretty new here (and to C#) and am hoping you can help.
The title pretty much says it all...
I am doing some API testing would like to be able to pick up the
arguemnts for my method calls from a text file instead of putting them
in the code.
Here is an example of what I'm tr... more >>
Does this code Force Garbage Collector to Collect
Posted by LP at 3/29/2005 5:42:33 PM
Hi,
Considering code below. Will it make GC to actually collect. One application
creates new instances of a class from 3rd party assembly in a loop (it has
to). That class doesn't have .Dispose or any similar method. I want to make
sure GC keeps up with the loop. My reasoning if Thread.Sleep(10... more >>
can't find Add-In wizard
Posted by Digit24 at 3/29/2005 5:18:32 PM
I have got Visual c#.net but can't find the Add-in wizard that it talks
about in various articles.
All I have under 'Other Projects' is 'Database projects'
Should there be a folder for Extensibility projects? If so, how do I
install this?
Many Thanks
Graham
... more >>
Raising Events across forms
Posted by L at 3/29/2005 4:21:22 PM
Hi,
I have a windows form say "Form1" which has a menuitem "SetUp".
When I click this item, a new form "SetUpForm" opens up. When I change
the fields in the "SetUpForm" and click the "OK" button, SetUpForm
should validate the fields and if all the field values are right, it
should close a... more >>
How to show a form in new thread ?
Posted by cyshao at 3/29/2005 4:13:19 PM
How to show a form in new thread ?
My form will be shown when main form doing a large process.
Could you tell me how to create and control this new form?
Thanks
Charles Shao :-)
... more >>
TableAdapter Update
Posted by RobZ via DotNetMonster.com at 3/29/2005 3:55:39 PM
Hi all,
I am using a tableadapter to read data from a table - no problem,
I have configured the Tableadapter to add an InsertQuery.
My problem is when I first Call the InsertQuery and then re-load the data (
into a list ) the new row does not appear, however if I re-call the
InsertQuery a... more >>
Excluding some Public Classes in NDoc
Posted by Ash Moollan [InfoMaster] at 3/29/2005 3:36:25 PM
Hi there,
I am using NDOC to generate docs for one C# project which I wrote. My
assembly has some public classes that are not meant to be used by others and
I have not documented them. I would like NDOC not to generate documentation
for those public classes that do not have an XML documenta... more >>
SDL.NET -- Wicked Cool !
Posted by 14 7/8\ at 3/29/2005 3:07:33 PM
You guys should install SDL.NET.
I'm running the examples in monodevelop right now and they're /wicked/ !... more >>
debuging assemblies - source code
Posted by Craig at 3/29/2005 3:01:02 PM
I have an assembly that I compile on my machine with debugging symbols on.
So when I add a reference to it and call one of its method, I can "step into"
the assembly code. Now, I take the assembly and send it to my friend
sitting in the cube next to me, and when he tries to step into the as... more >>
Unmanaged C++ Dll / C# bool return problem
Posted by Mark Jerde at 3/29/2005 2:38:06 PM
I'm trying to learn the very basics of using an unmanaged C++ DLL from C#.
This morning I thought I was getting somewhere, successfully getting back
the correct answers to a C++ " int SumArray(int ray[], int count)"
Now I'm having problems with C++ "return(false)" being True in C#.
Here is t... more >>
Environment.GetLogicalDrives <- Distinguir entre los tipos
Posted by Francisco del Valle at 3/29/2005 1:46:23 PM
La función Environment.GetLogicalDrives() devuelve una lista con las letras
de las unidades lógicas que hay disponibles, pero me gustaría saber si se
puede distinguir de que tipo son (disco duro, cdrom etc)
Gracias
... more >>
store procedure
Posted by Hrvoje Voda at 3/29/2005 1:42:11 PM
I'm sending parameters into store procedure but when I send a null value it
gives me an error.
It only works if I put a null value directly into store procedure.
Why?
Hrcko
... more >>
Installing an application
Posted by Johnny at 3/29/2005 1:41:04 PM
I have created my first application and stepped through the deployment
walkthrough. I've created an deployment project which works very well.
However, I several stored procedures that need to be added to an existing
database but I'm not sure how to install the stored procedures through the
... more >>
Create 2 instance with the same name
Posted by Islam Elkhayat at 3/29/2005 1:28:14 PM
I have to 2 Data classes have the same methods with defferent implemention
which work with 2 tables in the database..
I want to chnge the instance referance depend on if condition or switch
case..
like this...
myclass.AddRow()
where my class can be instance of Categories or Employees so i ... more >>
if statements?
Posted by DEWright_CA at 3/29/2005 1:23:03 PM
I am having problems making a question work.
I have a vb6 function I am porting to C# (still very new to CSharp) and am
not able to make sense of this. Any feedback would be appreciated!
one is - how do I replicate this in C# I need to ask this service if this is
more than null then die
... more >>
Garbage collection in .net
Posted by Reshma Prabhu at 3/29/2005 12:21:02 PM
Hello,
I am using singleton class in my application. I want that the
singleton class object onc created should be alive as long as the appliation
is running.
But when I try running my application after say 24 hours, it doesn't work. I
think the object is being killed at some ins... more >>
Create Instance
Posted by Islam Elkhayat at 3/29/2005 12:18:23 PM
I have to 2 Data classes have the same methods with defferent implemention
which work with 2 tables in the database..
I want to chnge the instance referance depend on if condition or switch
case..
like this...
myclass.AddRow()
where my class can be instance of Categories or Employees so ... more >>
HasRows always true
Posted by gjtired at 3/29/2005 12:10:21 PM
Hi, I can't figure out why my HasRows code is always true. Below is a
snippet of my code.
sqlConnection1.Open();
//Check that quiz name is not a duplicate during the Create(0)task
string cmdCheckName="SELECT Count(Quiz_Name) FROM Quiz WHERE Quiz_Name
= '"+valName+"' ";
SqlCommand cmdCheck ... more >>
call function from class
Posted by Dave at 3/29/2005 12:07:05 PM
I have a program that I've written a class for. I need to call the function
in the program from the class. When I try to call the function I receive the
error, the name xxx does not exist in the class or namespace. Where xxx is
the function being called. How do I call the function?... more >>
MSFT Please Help
Posted by Vai2000 at 3/29/2005 11:36:11 AM
The example of KB 326080 doesn't work...especially the Join
TIA
... more >>
Create persistent instance of VisualStudio
Posted by g_yin NO[at]SPAM yahoo.com at 3/29/2005 11:14:18 AM
Hi,
I'm trying to create an instance of Visual Studio and open a file in
it, in a console C# application.
EnvDTE.DTE aDTE = (EnvDTE.DTE)
Microsoft.VisualBasic.Interaction.CreateObject(
"VisualStudio.DTE.7", "");
aDTE.ItemOperations.OpenFile("J:\\toto.hpp",
EnvDTE.Co... more >>
Object Security
Posted by Rodolfo at 3/29/2005 11:07:39 AM
Can I make that an object to destroy himself?
I want to put some code in the constructor of a class (call to my security
service). If it doesn't have the permissions I want to not let the object be
instantiaded.
TIA
... more >>
Virtual COM port.
Posted by Stuart at 3/29/2005 10:52:34 AM
I am writing software to mimic the actions of a device connected to the
serial port. I want my software to create a virtual COM port, so that
other applications can talk to it.
Is it possible to write a virtual device driver in c# for this?
S.... more >>
Best practice for windows form and database access.
Posted by AMeador at 3/29/2005 10:37:29 AM
I am doing a project where we need to read a write data to a
database (SQL Server 2K in this case). I have seen the use of data
binding to link a property of a control to a field in a record set from
a database. It seems like this can give some benefit like being able to
easily ignore all cha... more >>
Macro Substitution
Posted by Rodolfo at 3/29/2005 10:32:53 AM
Hello, there's another languages that can do a macro substitution, how can I
do this in Csharp.
This is an example of what I want to do
Dataset ds = new Dataset;
string a = "ds";
DataSet ds2 = &a;
This is a little more complex
int i = 6;
int j = 5;
string a = " i == j";
bo... more >>
Dynamic control creation in C#
Posted by DMP at 3/29/2005 10:31:01 AM
Hi,
How can i create control dynamically in C# (Window Application) whose
property value retrive from database ?
regards,
... more >>
USING XML IN C#.NET
Posted by ATLANTA PATNAIK via DotNetMonster.com at 3/29/2005 10:26:09 AM
Hi,
I am using the below code to search GATE=1 from the xml file but not
getting the output.How to do it?I want to display the contents of GATE=1
in my console application.How to query that particular gate in c#.net?
XPathDocument doc = new XPathDocument("C:\\gates.xml");
XPathNav... more >>
Freeware components?
Posted by Lizard at 3/29/2005 10:06:13 AM
One of the nicest things about Delphi was the wide range of freeware
components easily found on the net. Are there similair libraries for
C#? (Not looking for war3z -- only components which are legitimately
freeware or shareware.)
*----------------------------------------------------*
Evolution... more >>
Reflection, StackTrace, and Release Builds
Posted by brianlanning at 3/29/2005 10:01:11 AM
I'm trying to write a function that can reliably know the name of the
calling method. I've figured out how to do this:
string methodname = (new StackTrace()).GetFrame(1).GetMethod().Name;
This seems to get the name of the method that called the current
method. But there are two problems. ... more >>
How do I bind a dataset to a blob?
Posted by David P. Donahue at 3/29/2005 9:59:17 AM
When I bind a dataset to a SQL query that contains a blob field it comes
back as a byte array. Is there any way to have it interpreted as a
string or somehow convert it to a string? I'm using the blob field to
store large amounts of text and I need to be able to interpret it as such.
Re... more >>
Identity calling class?
Posted by Ole Hanson at 3/29/2005 9:54:18 AM
Hi
Having a system where I'm being called from clients (applications), I need
to identity the calling method and class as this class is decorated with
custom attributes I need to perform some logic dependant on this custom
attribute.
How do I in robust manner identify the calling methods... more >>
Current executed line
Posted by Freddy at 3/29/2005 9:23:42 AM
I need a really good logging system for an application. Is there a way to
programatically get the current line, in the ide, that has been executed.
That way, i can log the line at which the error or an event was fired.
Thanks,
... more >>
Expandable Properties
Posted by Barguast at 3/29/2005 9:23:09 AM
How can I create a class property such as the 'DockPadding' one from the
UserControl class? What I mean is a property which can be expanded and have
its own properties modified.
In the design view, the DockPadding property looks like this when expanded:
DockPadding
.. All
.. Left
.. T... more >>
Finding out number of subscribers to an event
Posted by Flack at 3/29/2005 9:19:14 AM
Hello,
Is it possible to find out how many methods are listening to a certain
event? For example, if a number of methods subscribed to a controls DragDrop
event using +=, can I find out how many methods in total are listening to the
DragDrop event of the control?
If I can't find out the ... more >>
DateTime
Posted by Jim Heavey at 3/29/2005 9:01:03 AM
I have a date and time field which looks like the following:
01/Oct/2004:13:49:19
I thought I could use the DateTime.Parse(myTextDate) method to convert this
into a date and time object, but it does not like my date value. Am I using
the wrong method? Is there an easy way to get this con... more >>
Reporting question...
Posted by AMeador at 3/29/2005 7:34:50 AM
I have, at one point in time, been a pretty good programmer, but
that was years ago. I can pass programming classes with and A with no
problem, but writting a business class application is a bit of a
struggle. I am relitively new to .NET and C#, but do have pretty strong
background in compute... more >>
Comparing Datasets
Posted by JamesWilce at 3/29/2005 5:13:02 AM
Hey,
I am stuck on this little problem, I have a database which I use to fill a
dataset when my application loads, however at certain intervals Im filling
another dataset using the same database. What i need to do is find any new
records added. Ive tried all kinds of thinks like DataSet.Mer... more >>
Start Thread at specifed time
Posted by Raed Sawalha at 3/29/2005 4:45:03 AM
I have an XML contains a time like 02:22:14 PM where it is read by windows
service i need to make a thread to start on a time specifed in the XML, how
can I achieve this?
... more >>
Add next line of text in textbox?
Posted by trint at 3/29/2005 4:39:24 AM
How can I add text to the next line of a textbox without disturbing the
previous line?
Thanks,
Trint
... more >>
DirectoryEntry
Posted by AbdSol at 3/29/2005 4:37:04 AM
I wanted to know why the output is different & also like to know if C# i can
get the user name using DirectoryEntry > find.
C#
String myADSPath = ("WinNT://"+
Environment.MachineName+",computer");
DirectoryEntry m_drentry = new DirectoryEntry(myADSPath);
// "admin" is user name
Directo... more >>
How to avoid flicker when drawing
Posted by mhansemann at 3/29/2005 4:27:04 AM
I'm a C# (but not programming in general) novice, but I couldn't find any
answer to this elsewhere.
I'm trying to make a text scroll on the form. I thought this was a good
example to get started with the encapsulated GDI+ functions.
So, I essentially have a Timer that raises a Tick event e... more >>
Data Access question
Posted by Nurchi BECHED at 3/29/2005 3:52:14 AM
Hello, everyone
I am a newbie in the data access in .NET environment.
I was trying to show something from an MDB file in the form,
but nothing seems to work.
In Visual FoxPro it would take me a couple lines of code to
do anything in the DBASE database or table.
A little more with other f... more >>
TcpClient buffer size limit?
Posted by Sharon at 3/29/2005 3:35:01 AM
I'm using TcpClient and getting the Stream by:
TcpClient tcpclnt = new TcpClient();
. . .
Stream stm = tcpclnt.GetStream();
Now, when I'm trying to send a big buffer via stm.Write(...) I get an
exception saying that the buffer is too big.
I tried to set the tcpclnt.ReceiveBufferSize to... more >>
INSERT without knowing database column order?
Posted by AdamM at 3/29/2005 2:34:20 AM
Currently, my code reads from a database without knowing the order of the
columns like this:
string name = (string)datarow["name"];
However, is there a way to write or do an INSERT back to a database without
getting caught up in the order of the columns?
Right now I do something like this... more >>
|