all groups > c# > may 2004 > threads for monday may 24
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
ToolType
Posted by Amiran at 5/24/2004 11:36:03 PM
I wanted if posible set to control tooltipe but my control not text
or pop up window like tooltyp
with user control . if exists eny examples . I wil read
thenks
... more >>
How to create an object which can be shared between process
Posted by Ashura at 5/24/2004 10:46:02 PM
Hi
I need to create this proces
X starts, if there is no object AA (where is stored Data) I create A
Y starts, it tryes to retrieve AA to obtain Dat
When Y or X stops, AA is still alive (because there is always 1 object who use AA
X and Y can be switched (Y can be started before X
I don't ... more >>
(Urgent) unable to start debugging on web server
Posted by das at 5/24/2004 10:21:02 PM
Hi
I have started a new asp.Net application. I have places some components on the form. but when I run the application i get the following error.
Error while trying to run project: unable to start debugging on the web server. The server does not support debugging of ASP.Net or ATL Server applicat... more >>
Why Do I Get a Compile Error Here?
Posted by C# Learner at 5/24/2004 10:09:32 PM
My class has a member variable declared as:
string address;
Here is a method of my class:
/// <remarks>
/// This is run in a seperate thread.
/// </remarks>
void DoListen()
{
1: listener = new TcpListener(IPAddress.Parse(address), port);
2: listener.St... more >>
.NET method NOT intended to be used in developer's code
Posted by TomTom at 5/24/2004 10:06:18 PM
Hello. I am trying to find how I can call the method below.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemWindowsFormsAccessibleObjectClassIAccessibleget_accNameTopic.asp
I cannot call this method by simply creating the AccessibleObject object. If
I cr... more >>
Setting System DateTime Now to be valid with XML
Posted by andrewcw at 5/24/2004 10:06:05 PM
I save date time into my XML files like this:
MesObj.theTime=System.DateTime.Now;
"5/4/2004 8:50:30 AM"
BUT that string is NOT recognizable as a valid
dateTime when the data is read back from file ( i.e. schema strong data type dateTime
It seems to follow this test protocal : DateTime transa... more >>
High speed string processing
Posted by Alexander Muylaert at 5/24/2004 9:58:24 PM
Hi
I've made this small routine that performs a case insensitive
String.IndexOf().
It is badly coded, but still it is 30% faster than the "ToUpper" equivalent.
Perhaps someone can give me some more tips. I'm pretty new on C#. It is
only my second day. I think major performance is gained ... more >>
Please Convert this function VB.Net to C# .NET
Posted by Karunakararao at 5/24/2004 8:25:52 PM
Hi all
Please Convert the VB.Net to C# .NET
Sub CustomPager(ByVal STCPagerGrid As Object)
Dim intCtr As Integer
Static intLastItem As Integer
Static intCount As Integer
Static intTotalPage, lintCurrentPage As Integer
For intCt... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
configuration file custom section handler - a slightly complex XML parsing challenge.
Posted by Hazzard at 5/24/2004 8:06:14 PM
I am trying to create a custom section and section handler in my config
file.
The custom section should be something like;
<appSecurity>
<method name = "Protect the Ice Cream">
<allow group = "admin"/>
<allow group = "ice cream eaters"/>
<deny group= "weightwa... more >>
How does an object in a form add items to form's listview control?
Posted by Richard Lewis Haggard at 5/24/2004 7:31:21 PM
I have a form. The form owns a listview control and an object that is acting
as a remoting server. I'd like to display information as it is received by
the server in the listview control that is owned by the server object's
owning form. I know how I'd do this in VC++6 and MFC but I'm trying very
... more >>
TreeView control
Posted by Reza Alirezaei at 5/24/2004 6:58:11 PM
why can't I find TreeView control in Toolbox?where is this useful control?
... more >>
OOD Question
Posted by Alok Jain at 5/24/2004 6:51:44 PM
This is a design / inheritance qus.
I have class Task.
This is a base class for some specific tasks
Say
WorkOrderTask : Task
TimeSheetTask : Task
Now Task has a function GetDetails() which gets all info about task. This
makes a database call.
I override this in the derived class. For... more >>
typeof vs. <object>.GetType() ?
Posted by Claus Konrad at 5/24/2004 6:22:32 PM
Hi
Any thoughtfull insight at to whether a difference exists between the two
functions mentioned above?
I am just wondering when to use the one over the other...??
Thanks!
/Claus
... more >>
App domains
Posted by Murray Foxcroft at 5/24/2004 6:18:10 PM
Manoman, what a headache,
I am trying to run some code in a separate Application Domain (in C#)
I need to load an assembly (.DLL) and run it in a separate memory area
(Appdomain) as I have a service that calls some rather unreliable code. If
this code fails, I want it cleaned up as extensi... more >>
check if treeview's treenode with a specified text exists
Posted by Sérgio_Almeida at 5/24/2004 5:59:35 PM
greetings
how can i check if a treeview contains a treenode with a specified text?
i'm trying with the Nodes.Contains() method but doesn't work. Any ideas?
Thanks
Almeida... more >>
Leading characters in C#
Posted by Pedro Henrique at 5/24/2004 5:42:03 PM
Hi,
how can I lead characters in C# into a string?
In Visual Basic I do that by this way:
Dim myString as String
myString = String(50," ")
How can I do this in C#?????
Thanks,
Pedro Henrique
... more >>
Convert
Posted by msnews.microsoft.com at 5/24/2004 5:39:01 PM
How can I convert string to int?
... more >>
best way to define global constants
Posted by Amadelle at 5/24/2004 5:37:45 PM
Hi all and thanks again in advance,
What is the best way of defining global constants in a C# application? (A
windows application with no windows forms - basically a set of classes).
Would it be a wise idea to create a clsCommonApp and let all other classes
to be derived from that class? and d... more >>
Text Data, checksum or key to detect user modification?
Posted by Derrick at 5/24/2004 5:18:04 PM
I've written a read-only application, reads from tab delimited text files.
I want to be able to stick some sort of identification in the text file, so
that the app can determine if a user has edited the text data, or, has
prepared data of their own that we do not want running inside our app.
T... more >>
Problem with base constructor
Posted by Paul E Collins at 5/24/2004 5:05:08 PM
I want to create a class that inherits from Menu and whose constructor
calls the parameterless Menu constructor.
Why does this code produce CS1501 ("No overload for 'Menu' takes '0'
arguments")? How can I correct it?
public class DerivedMenu : System.Windows.Forms.Menu
{
public Derived... more >>
Cange namespace in compiled Class Library
Posted by Tamir Khason at 5/24/2004 4:59:12 PM
I have a couple of class libraries wich I built about a year ago. I want to
add it no other project, but I want to change their namespaces without
recompliation ('cos I'm not sure that I have all nessesery libraries).
Is it possible anyhow change namespace of compiled .NET DLL ?
TNX
... more >>
C# app as Service - Causing Memory leak..
Posted by SPG at 5/24/2004 4:52:35 PM
Hi,
We have a C# app that uis running as a service.
It uses a third party activeX dll that we us to capture events.
Because it is an activeX dll, we have to create our own message pump on a
thread (I Quite simple call application.run() on a new thread just after
creatign eh activeX component)..... more >>
Basic Object Copy Question
Posted by Matthew Sajdera at 5/24/2004 4:30:53 PM
All -
I want to be able to set one generic variable to the instance of another...
So lets say I have an object named objFoo that is initialized as a generic
object of type Object. Now I get returned to me a TreeView Node object
called objNode. How do I set my generic objFoo to objNode? ob... more >>
XML
Posted by msnews.microsoft.com at 5/24/2004 4:25:27 PM
Hello.
How can I load xml inti XmlDocument from string not from file?
... more >>
How To Write the external Iterator?
Posted by apex at 5/24/2004 4:24:49 PM
Hi all:
I want to write an iterator class for GHashTable which belongs to GNU
glib[ c library ] .Access function of GHashTable now only support internal
iterator and define
struct _GHashNode
{
gpointer key;
gpointer value;
GHashNode *next;
};
and
struct _GHashTable
{
gi... more >>
MemoryStream deserialized
Posted by M D at 5/24/2004 3:37:06 PM
Please tell me why this:
static void Main(string[] args) {
Bid bid1 = new Bid(23,10.0F,3,0,DateTime.Now);
BinaryFormatter formatter = new BinaryFormatter();
Stream depot = new MemoryStream();
formatter.Serialize(depot, bid1);
Console.WriteLi... more >>
ASP->ASP.NET conversion of window.open - C# newbie.
Posted by Frank Nero at 5/24/2004 2:26:50 PM
In my ASP HTML code I have:
<a
href="javascript:popupWin=window.open('Start.asp','StartFromBeg','resizable'
);location.reload();">Click here to start.</a>
How to acomplish the same (creation of the new browser instance) inside C#
code-behind
LinkButton1_Click(object sender, System.EventArg... more >>
launch an external executable
Posted by keith at 5/24/2004 2:16:03 PM
in VB6.0, it is easy to launch an external executable by shell command.
How to do it in C# and VB.NET?
Thanks
Keith... more >>
Test for a number
Posted by john sutor at 5/24/2004 2:03:55 PM
When getting input from a user in a text box, how can you test to see that
they entered a numeric set of charactyers ( 0 to .....)
... more >>
Concatenating txtBoxes
Posted by Brian Conway at 5/24/2004 2:01:32 PM
How do I make 3 text boxes into one?
txtBox1
txtBox2
txtBox3 = txtBox1txtBox2txtBox3
... more >>
EventHandler and sender object
Posted by Christoph Boget at 5/24/2004 1:47:46 PM
Please forgive my ignorance as I'm still new to developing w/C#
(and in windows in general). So if I use the wrong terms, please
bear with me.
I'm using VS.NET and defining the events have been really simple.
Just double-click on the event and the definition for that event (along
with the me... more >>
Datatable updates taking too long...
Posted by VM at 5/24/2004 1:33:55 PM
Why is the third line of code in the loop take so long? W/o that line, the
execution (35,000 loops) runs in 3 secs. With the line, it goes up to over 5
mins.
dataGrid_auditAddress.DataSource = null;
for(int i=0;i<table_rowNums.Rows.Count; i++)
{
iRowNum = Convert.ToInt32(table_rowNums.Ro... more >>
finding opened window based on its handle ( C# )
Posted by Daniel H. at 5/24/2004 1:31:07 PM
Hi! When I create a new form programatically, I can save its handle in a collection of some type
Later, I need to find that form based on a handle I saved and call one of its functions. The newly create
form can be a child of an MDI form but it very well may not be, so I can not use MDIChildren
... more >>
Find user by SID
Posted by Will Bailey at 5/24/2004 1:11:00 PM
I have a string version of a sid (ex...S-20-220) I need to be able to take
this sid and transfer it over to a name. My question is how do I do this.
I know that in order to search with
System.DirectoryServices.DirectorySearcher I need to have the binary version
of the SID. I've tried to use C... more >>
Inserting strings in a multiline TextBox control
Posted by Peter Nagel at 5/24/2004 12:29:09 PM
I would like to insert some strings in a multiline TextBox. At the time of
inserting the TextBox already contains some strings each in a separate line.
The new lines should be inserted somewhere in the middle of the existing
lines moving some line to higher indices of the Lines property.
What ... more >>
Replicating datagrid column header click?
Posted by VM at 5/24/2004 12:16:32 PM
How can I replicate the process of clicking on a column header in order to
sort by that column? I tried getting the grid datasource, converting it to a
view, sorting, and then attaching it to the grid, but it's not the same
thing. And the process that modifies the underlying table of the grid is
... more >>
Could C# and MSCOMM work together to support serial port commnication?
Posted by dalewz NO[at]SPAM yahoo.com at 5/24/2004 12:10:41 PM
Hi,
I am thinking to use C# and MSCOMM in MS VS.net to support GUI and
serial port communication. Is this possible?
I know that VB and C++ can.
Thanks. -Dale... more >>
Strange error
Posted by John J. Hughes II at 5/24/2004 12:07:34 PM
I have an application with MDI windows. The following code generates an
error on some tables on "ad.Fill(ds);" if the table has data and needs to be
cleared the first time. The second time the table is cleared there is no
error. This problem only occurs if the MDI window is maximized and does ... more >>
Interacting with a C++ DLL - (new attempt)
Posted by Saya at 5/24/2004 11:26:02 AM
Hi, I posted this twice but didn't get any response
Can somebody please help me out of this situation
Unsolved problem ...
I'm new to C# and having a problem with interaction between a (legacy) C++ dll and functions in my C# module. I'm using a third party C++ DLL, no source available (so, not ... more >>
Character color
Posted by Randy at 5/24/2004 11:12:46 AM
Hello all,
Is there a way to make chars in a line of text different colors? (maybe
using escape sequences). I'm talking about say in the text "Test" making the
T one color, and e another color and so on...
Thanks
Cheers :)
... more >>
Implementing a 'horn' sound.
Posted by Robert Gravereaux at 5/24/2004 11:07:50 AM
I'm putting together a C# .Net forms project on win2k. The application
requires some sort of horn sound. I've never implemented any audio in .Net,
so I'm not sure how best to accomplish this.
It's an application that works with a wireless barcode scanner, in a
warehouse environment. The user c... more >>
Hungarian notation and variable names
Posted by Denny at 5/24/2004 10:51:58 AM
For most of my variable names, I use Hungarian notation to determine between
one and the other. But what names can I use for public and private
variables? I was using prv_varName and pub_varName but that sounded really
strange. I've seen variable names that begin with _varName. Is that another
p... more >>
Interop component with strong name
Posted by Kimmo Laine at 5/24/2004 10:43:07 AM
Hi,
we are using COM server through interop, and would like to sign our assembly
with strong name. But when building, we get the following error: "Assembly
generation failed -- Referenced assembly 'Interop.MyComServer' does not have
a strong name."
How can is sign my COM server with strong ... more >>
OraOLEDB.Oracle Provider Not Registered
Posted by Brian Conway at 5/24/2004 10:41:09 AM
I have made an application on a development machine and it works just fine,
when I try to deploy it to production I am getting the following error
'OraOLEDB.Oracle.1' Provider Not Registered
I can't seem to find any information on how to correct this problem. Anyone
else have this issue?
... more >>
convert null value to 0
Posted by Vicky at 5/24/2004 10:31:59 AM
What is the best way of converting Null value in datatable numeric column to
0.
THanks
... more >>
dataset size
Posted by Amadelle at 5/24/2004 10:30:01 AM
Hi all and thanks in advance,
I am thinking of passing around a dataset as parameter to different methods
through my code ...my question is what is a reasonable size for a dataset in
order to avoid performance definiciencies? how many rows of data can a
dataset have before it becomes too larg... more >>
Passing a parameter into ShowDialog
Posted by carmen at 5/24/2004 10:29:44 AM
I need to pass a parameter to a class while calling Showdialog method, is
this possible?
Thanks,
Carmen
... more >>
interacting with an interactive cli program
Posted by Stephan Steiner at 5/24/2004 10:21:20 AM
Hi
I'm trying to write a program that interacts with an interactive cli
program, that is a program that does some processing but every now and then
requires some user input. My problem is that when I redirect stdin and
stdout of the program I launch, the program seems to run but I never get an... more >>
use of 'new' keyword in functions
Posted by Micus at 5/24/2004 10:09:12 AM
I was wondering what the thought behind the 'new' keyword was in C# when
applied to a function? For Example :
public class A
{ ...
public virtual void Func() { // impl_A}
.... }
public class B : A
{ ...
public override void Func() { // impl_B}
.... }
public class C : B
{ ...
p... more >>
database connection - ConnectionString window
Posted by rob_K at 5/24/2004 9:39:31 AM
Hello
How to execute (in code) standard "ConnectionString" window, used to create
connectionString
Regards
... more >>
Loop thru Resource Files ... ??
Posted by JezB at 5/24/2004 9:26:14 AM
Given a reference to an Assembly, is there any way to generically scan the
assembly for embedded resource files ?
... more >>
Share objects
Posted by Ashura at 5/24/2004 7:26:02 AM
H
I want to make a project where one or more object could be shared between 2 applications
For example : the first application create a connection to a web-service, this connection is stored in an object (through a service perhaps). A second application is launch and I want this application, use... more >>
String Function
Posted by Dave Bailey at 5/24/2004 6:46:02 AM
I need to read the contents of a dropdown listbox up to a space and then eliminate everything to the right of the space(including the space). How do I do this
Thanks
Dave... more >>
InvalidComObjectException, threaded db access
Posted by 2G at 5/24/2004 6:13:17 AM
Hi
From the moment I have threaded a function that loads data from the db , I
get the following error:
An unhandled exception of type
'System.Runtime.InteropServices.InvalidComObjectException' occurred in
system.data.dll
Additional information: COM object that has been separated from its
... more >>
C# Ctrl like the MFC HtmlView?
Posted by Jesper at 5/24/2004 5:31:03 AM
Hi
In MFC, there was a class that implemented an html view, is there an equivalent class for the .net framework
best regards Jesper.... more >>
Disable File Download Window
Posted by gb at 5/24/2004 5:30:34 AM
hi,
i placed System.Windows.Forms.WebBrowser in my
WinForm. When i tried loading word document, it opens
the File Download window. My question is how can i avoid
the File Download window from showing? My intented
default action is to always open Open file, just like if
i load image, ... more >>
Priting a full screen on text, character by character
Posted by jonny at 5/24/2004 4:57:23 AM
Everyone,
I am having a problem with perfromance and the drawing of strings on a
panel control and I am hoping you all can help or at least provide me
with some good reference material. Here is what I am doing:
I am using C# 2003 and reading into a file in real-time and as I scroll
a scroll... more >>
Interacting with a C++ DLL
Posted by Saya at 5/24/2004 3:01:03 AM
Unsolved problem ...
I'm new to C# and having a problem with interaction between a (legacy) C++ dll
and functions in my C# module. I'm using a third party C++ DLL, no source
available (so, not possible to rebuilt it with Managed extensions)
At a certain point in my C#-app I have to return the... more >>
Remote Copy using C# in ASp.net
Posted by PRM at 5/24/2004 2:21:02 AM
Hi
I have an ASp.net application using C#. I need to copy a file present on the web server machine to a remote machine on the network. Although this seems to be a trivial matter I am having difficulties copying the exe
I am Trying
string Source = @"c:\temp\test.exe"
string Destination =... more >>
if i use the filename as variable name
Posted by DotNetMania at 5/24/2004 1:32:23 AM
i use the filename as variable name such as...
Image of btnADD Button is btnADD.gif.......
splash logo Image of panel panLogo is panLogo...
i wonder if i use like above...what kind of problem would occur?
is it easy for hacker to debug my program?
i want to know general problem would ... more >>
How to start an exe from C#
Posted by Jesper at 5/24/2004 1:06:04 AM
How can I start an application like word from a C# program
Best regard
Jesper,... more >>
EnumDisplayDevices - second attempt
Posted by AlexS at 5/24/2004 12:56:30 AM
Hi, I posted this in m.p.d.f.interop but did not get any sensible response.
Maybe somebody will be able to point me to right direction here?
Hi,
I am having some issue with EnumDisplayDevices when called from C#.
When I use CharSet.Ansi (note - no unicode) for DISPLAY_DEVICE structure, I
ge... more >>
|