all groups > c# > january 2005 > threads for wednesday january 5
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
Obtain textbox control in combobox
Posted by Quan Nguyen at 1/5/2005 11:43:03 PM
How can I obtain the textbox (editing field) control of the combobox? I tried
combobox.Controls to obtain the collection of controls that the combobox
contains but it turned out to be empty. Thanks.... more >>
Custom file DeSerialization
Posted by Nadav at 1/5/2005 10:53:01 PM
Hi,
Introduction:
****************
I am trying to DeSerialize a file that was created by an unmanaged
application by the binary formatter, to achieve that I am implementing the
following ISerializable methods:
1. GetObjectData(SerializationInfo info, StreamingContext context)
2. construct... more >>
4million db record how to display ?
Posted by Tom Gao at 1/5/2005 10:33:43 PM
Hi guys I have 4 million records in a table in one database...
I want to display it in a datagrid... how can I do this efficiently ?
please be specific should I do it in sql server or in .net ?
Thanks
Tom
... more >>
Socket receiving too slowly
Posted by (tantiboh NO[at]SPAM hotmail.com) at 1/5/2005 10:29:49 PM
I'm not a new programmer, but this one's got me stymied; hopefully it's a fairly trivial problem.
I'm using a socket connection to receive communication from a server. Normally, the entire message is received before the program moves on with its next instructions. However, at times when the proce... more >>
Code Generation
Posted by rajeev at 1/5/2005 10:09:02 PM
Can code be automatically generated for the functionalities for Implementing
Interface for Class in C# as it happens in vb.net
Thanks n regards
Rajeev... more >>
How to find the appropriate "using" for a variable declararion?
Posted by Geri Reshef at 1/5/2005 10:03:11 PM
Many times I find code examples in the internet which don't have the =
"using" statements needed to run them, and without it the compilation =
fails.
Is there a way to find the correct "using" statement given the variable =
declaration?... more >>
Disappearing buttons
Posted by timm.wong NO[at]SPAM gmail.com at 1/5/2005 9:54:30 PM
Hi,
I have a form where i have a thread working in the background that
tests a connection to a server. If the connection is not
successful,then I want it to display 2 buttons on the form. I have
tried doing this so far by simply setting the buttons Visible property
to true (since they will ... more >>
Selecting Items in ListView
Posted by Greg Horwood at 1/5/2005 9:53:07 PM
Dear All,
Could anyone shed some light on a method which returns the 'index' of a
selected item in a listview control, set to 'list' only.
Is this possible?
Thanks
Greg... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
maximize forms
Posted by Thomas at 1/5/2005 9:31:43 PM
I can set the maximizeBox property. But I didn't find a method to maximize a
MDI child form.
So I must do a duoble click at the maximize box.
Anybody know a maximize function or method?
Thank in advance
Thomas
... more >>
DataGrid
Posted by Geoff Jones at 1/5/2005 9:19:06 PM
Hiya
Is there an easy way to determine the cell size of a datagrid i.e. its pixel
size?
Thanks in advance
Geoff
... more >>
Using C DLL libaries in C#
Posted by Marcohp at 1/5/2005 8:05:02 PM
I am migrating my C++ numerical routines to C#.
In C++ I use pre-built C DLL libraries (fft.dll, fft.lib), so in Visual
Studio
I specify the path to include and library files and in the linker the
additional dependencies (fft.lib). In my programs I declare “fft.h†and use
the
corr... more >>
XMLDOCUMENT: Any good online references to understand and use?
Posted by David at 1/5/2005 7:51:39 PM
I need to find a good online resource which teaches the use of the
XmlDocument framework in more depth than is covered in MS's online
doc. I need to create a multi-level XML document like the one listed
below. Using XmlDocument, I can create the <books> and the individual
<name> and <price> el... more >>
create toolbar
Posted by gal20 at 1/5/2005 7:33:01 PM
I am using C# language and a web application to create a web page. For this
project, i need a onscreen keyboard. How to I creat a toolbar?... more >>
How to check a given string is float-point in (c#) ?thanx
Posted by zjut at 1/5/2005 7:27:01 PM
I need to implement the method : round(String name, int index)
The given string maybe the every type of float type, ( the msdn given the
regax is that :
[ws][sign]integral-digits[.[fractional-digits]][e[sign]exponential-digits][ws])
and the index is the location after "." in name.
First, i ... more >>
Web-Services with a Collection of a custom object
Posted by hellrazor at 1/5/2005 7:26:28 PM
Hi there,
I'm trying to consume a web-service that is supposed to return a
collection of a custom object. The web-service was not created with C# or
VS.net. It was created with IBM VisualAge Smalltalk 6. I haven't had
problems consuming other web-services but c# seems to choke with
"Colle... more >>
Calling C# from unmanaged C++
Posted by Fernando Cacciola at 1/5/2005 6:19:56 PM
Calling C# from unmanaged C++:
Is there any way to do this without COM?
I have an unmanaged processing class and "all I want" is a way to give
progress feedback into the C# client code.
I basically just need to call an "Inc()" method into some managed progress
bar
(And to consult a "Is... more >>
Downloading a file from a webserver to local hard drive.
Posted by Trygve Lorentzen at 1/5/2005 6:11:25 PM
Hi,
I want to read a file from a http request (say, http://www.foo.com/test.exe)
to my local hard drive. How can I do that? I need specific code examples
here, not just "use HttpRequest and get a Stream and write that stream to
disc with BinaryWriter". This is what I have gotten to so far, it ... more >>
FileSystemWatcher problem - multiple hits
Posted by zfeld at 1/5/2005 5:09:38 PM
I am serializing an object to XML and writing it to disk. whenever a change
to my object occurs I call the save function to re-write to disk (see code
below). I am monitoring the directory where this write is being done using a
FileSystemWatcher.
My problem is that my Watcher.Changed callba... more >>
sorry is witten in c++
Posted by cato at 1/5/2005 4:35:31 PM
Someone knows if there is some tool to obtain of a dll the code
source(fountain)
If this està written in c++
... more >>
MVC pattern doubts
Posted by Santi at 1/5/2005 4:06:27 PM
Hi,
If I am correct the MVC basics are:
The primary goal is to decouple the model from the views and controller.
- Model: Holds data and business logic.
- View: represents data and queries the model.
- Controller: Responds to user input, sends change notifications to the
model and to the... more >>
IIS And DirectoryServices
Posted by Ram at 1/5/2005 4:01:12 PM
Hey,
How can I bind a DirectoryEntry to a IIsWebDirectory?
I tried the following code:
DirectoryEntry entry = new
DirectoryEntry("IIS://localhost/w3svc/1/root/webdirectory");
But the schematype of this entry is - IISObject and because of that - I cant
use the IIsWebDirectory's methods i.e - A... more >>
obtain of a dll the code source
Posted by cato at 1/5/2005 3:40:29 PM
Someone knows if there is some tool to obtain of a dll the code
source(fountain)
If this està written in c #
... more >>
C# compiler fails to optimize for loop same as foreach
Posted by Mike Lansdaal at 1/5/2005 3:11:02 PM
I came across a reference on a web site
(http://www.personalmicrocosms.com/html/dotnettips.html#richtextbox_lines )
that said to speed up access to a rich text box's lines that you needed to
use a "foreach" loop instead of a "for" loop. This made absolutely no sense
to me, but the author ha... more >>
right click to select listbox item...
Posted by Dan Bass at 1/5/2005 2:55:52 PM
If you look at explorer, right clicking on a file, first selects the file,
then throws up the context menu relating to that selection.
With a Windows ListBox control and a simple context menu, the default
behaviour seems to display the context menu on the listbox, but there is no
selection.... more >>
class design questions
Posted by John Lee at 1/5/2005 2:28:26 PM
Hi,
I was trying to find an elegant way of implementing/modelling the following
scenario:
student, borrower, reference and cosigner are all human beings - we would
think to create a person base class and then create one class for each of
the person type inheriting from person class - stu... more >>
Am I in a Service or an Application?
Posted by ToeKnee at 1/5/2005 2:05:09 PM
I have a C# component that can be used in various executables. I need a way
in the code of this component to determine if the executable that loaded it
is a Windows Service -or- a Console/Windows application? i.e. within the code
of this component how can I determine if the process that loaded... more >>
RegularExpression for finding word
Posted by Joe at 1/5/2005 1:58:37 PM
I have an expression where I need to replace words with values (#'s).
Take the following expression:
val1 *2/( val3 + val4*12/val1)
Given this example how could I replace val1 with the number 15?
Note: the spacing in the above expression was intentional. There may or may
not be spaces bet... more >>
Code Dom
Posted by Wayne at 1/5/2005 1:14:37 PM
I'm working on adding some Set Statements to a property, 1.1 frame work.
However, the Add allows for CodeExpression or CodeStatement, but the Insert
only allows for CodeStatement. I have a CodeExpresion that I need to make
the first line in the SetStatments. Other than clearing and re-adding
eve... more >>
Removing Columns From A DataView
Posted by John Smith at 1/5/2005 12:31:18 PM
Hey folks,
I have a Global DataSet which I use across my application. I use a DataView
to give me the data that I want in a certain instance.
Is there a way I can create the DataView so that it has only some of the
columns of the DataSet (i.e. not all of them)?
If not, can I reorder the ... more >>
c# include c++ and debugging
Posted by thomas at 1/5/2005 12:06:31 PM
I have an c# exe-application which referenced a managed c++ dll.
The managed c++ dll is an wrapper for some unmanaged c++ classes in a
separate dll.
That works fine but I can't debug in the unmanged c++ dll.
Is there anyone who know why I can't debug in the unmanged c++ dll?
Or is ther any w... more >>
Looking for a Visual Scripting Language written in C#
Posted by Cremoni at 1/5/2005 10:52:01 AM
I'm looking for a visual scripting language to write poker logic. There
must be several things out there, but I haven't been able to find
anything suitable. I've seen similar systems in the past. I recently
left Maxis, where I used to work on The Sims. It seems to be common
knowledge that we use... more >>
Post build event for the entire solution?
Posted by Julia at 1/5/2005 10:44:27 AM
Hi,
Is it possible to add post build event to copy several fiels
after all project have been compiled?
I don't want to put it in one of the project post build event
Thanks.
... more >>
Da.fill(ds); --error
Posted by freddy at 1/5/2005 10:31:06 AM
Here is my code
string Conn ="Provider=Microsoft.Jet.OLEDB.4.0;Data Source =
c:\\\\G_Drive_Entitlements_STM_2005.xls;" +
"Extended Properties=Excel 8.0;";
OleDbConnection dbConn = new OleDbConnection(Conn);
dbConn.Open ();
OleDbCommand Cmd = new OleDbCommand("Select * From [Sh... more >>
Namespace Qualification a Smell?
Posted by carl.manaster NO[at]SPAM gmail.com at 1/5/2005 10:26:17 AM
Hi, Group,
I know it says not to mess with the "code required for Designer
support" that the IDE generates when I work with things in the layout
editor, but I nevertheless find myself making changes along these
lines:
this.bMagnifier = new System.Windows.Forms.Button();
this.bMagnet.Anchor... more >>
Option to turn off brace placement enforcement in IDE?
Posted by carl.manaster NO[at]SPAM gmail.com at 1/5/2005 10:14:11 AM
Hi, Group,
I prefer indenting braces with their block, thus:
public int Foo()
.....{
.....Bar();
.....}
[using dots because I know newsreaders tend to mess up whitespace]
But when I copy and paste such code in the IDE, it "fixes" the brace
placement for me, thus:
public int Foo()
... more >>
SQL Debugging
Posted by CD at 1/5/2005 9:53:07 AM
Hi,
I'm very new to C# and am working on using a stored procedure to MSSQL with
two date parameters. The first problem I'm having is that SQL appears to be
throwing an exception (or my parameters are not being passed thru as I think
they are).
1. How can I see exactly what C# (ADO) is sendi... more >>
Monitor Other Applications Status
Posted by Admin East at 1/5/2005 9:43:25 AM
I want to create an application which monitor other applications
status. It is same as Windows Task Manager's Application Tab. Status
would be RUNNING or NOT RESPONDING.
Thanks.
... more >>
How to update data from DataSet to Excel
Posted by JacksonYin at 1/5/2005 9:22:14 AM
1. I can fill data from Excel to DataSet like this:
OleDbConnection connection = new
OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=../../Book1.xls;Extended Properties=Excel 8.0;");
connection.Open();
OleDbCommand command =new OleDbCommand("SELECT * FROM myRange1",
con... more >>
Screen capture
Posted by Per at 1/5/2005 8:40:44 AM
Hi all,
This may be a newbie question, but I can't find the answer anywhere.
I want to make a capture of the screen, or a part of the screen, that
contains the main portion of the form.
Detecting the screen that contain the main portion of the form is pretty
straight forward, but how do I captu... more >>
Deserializing after class has been modified.
Posted by tham at 1/5/2005 8:09:07 AM
Hi
am trying to find a way to backward support serialized files of older version
Example:
Given a class
class MyClass
{
int a;
int b;
}
Serialize MyClass using SoapFormatter to myclass.bin
add int c; to MyClass
class MyClass
{
int a;
int b;
int c;//newly ad... more >>
Retrieve all AD objects within a OU
Posted by R=E9my_Samulski at 1/5/2005 7:21:07 AM
Dear readers,
How can I obtain all AD Objects within a OU? I can find all AD Objects
in the root of my Active Directory when I use the DirectorySearcher and
passing the DirectoryEntry I find using the defaultNamingContext
property of the RootDSE DirectoryEntry. However when I try to pass
anot... more >>
Error provider problems
Posted by hplloyd at 1/5/2005 6:51:08 AM
I am writing a windows application based on a set of generic user controls
that I have developed.
I have a user control called "ctlInputText" that has a label, textbox and
error provider. The error provider is used to ensure that the text box is
completed. There is a property that can be se... more >>
Need help on Raising Events on Remote Objects
Posted by cider123 NO[at]SPAM hotmail.com at 1/5/2005 6:40:29 AM
I'm coding a project using the following article as reference:
http://www.codeproject.com/csharp/DynamicPluginManager.asp
In this type of project, plugins are loaded dynamically into a Plugin
Manager.
Your main application then hooks into the Plugin Manager.
What I'm trying to figure ou... more >>
Email application
Posted by John S at 1/5/2005 5:56:20 AM
Does anyone have an example of how to send an email using MailMessage
and SmtpMail objects
... more >>
SmallDateTime.MinValue??
Posted by Marc Pelletier at 1/5/2005 4:25:07 AM
Hello all,
I have a library of datetime routines that make things simpler for me.
Before I discovered DateTime.MinValue I had a function that looked like
public static DateTime DayZero { get { return new DateTime( 0,0,0); } }
I use it to compare for nonvalid datimes in some code, for e... more >>
Getting remote Logon User
Posted by Alexander Wehrli at 1/5/2005 4:01:02 AM
Hello,
I'd like to write an application that finds out for every machine in my
network that it is running and if yes, which user is logged on this machine.
I'm asking myself if this is possible at all (security...), even if I am
Administrator on the remote machine!
Regards Alexander... more >>
MSXML or .NET
Posted by JohnArgost at 1/5/2005 2:04:52 AM
I try to learn how to parser XML files. Should I learn MSXML or .NET
(system.xml) or both. Is MSXML an old technology which is replaced by .NET?
Thanks in advance.
... more >>
threading question
Posted by CK at 1/5/2005 12:12:28 AM
I have the following code in a windows service, when I start the windows
service process1 and process2 work fine ,When process 1) and 2) get
completed process 3) starts and sofar so good. the problem is if the files
in process 1) are all processed and we are in the middle of process 2) , at
... more >>
Expression parser
Posted by Joe at 1/5/2005 12:05:08 AM
I have a screen which allows the user to create mathematical expressions
using a combination of literal values, other expressions and field values.
For example if I have the following:
// fields
string val1 = "2";
string val2 = "1";
string val3 = "4.5";
//expressions
string expr1 = "... more >>
|