all groups > c# > july 2004 > threads for thursday july 1
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
Changing the text of another program's form's title bar tex.
Posted by prelugejunk NO[at]SPAM hotmail-dot-com.no-spam.invalid at 7/1/2004 11:01:40 PM
I'de like to know how to change the title bar text of a window that my
program does not own. I remember doing this a long time ago in C++ and
the Windows API calls were ugly, I hope its gotten easier.
I'de also like to simulate a keypress in a window that I do not own,
any help is appreciate... more >>
DateTime / TimeSpan Greater Than 23:59:59
Posted by Jeff Shantz at 7/1/2004 11:00:02 PM
Hello,
I'm developing a large statistics application for a call center. It often needs to calculate time spanning over months. For example, an agent's total talk time within 30 days. Since an agent talks about 5 hours per day, this comes out to about 150 hours of talk time per month. Fine.
... more >>
need some assistance on c#
Posted by superbsoda NO[at]SPAM yahoo.com.sg at 7/1/2004 10:41:50 PM
Recently i have encounter some problem with C# programming. The
application of mine can't seem to run well with sql server 2000 and i
think the reason for this is the connection between this two things is
incorrect. So i was hoping that someone out there can help me out with
this problem. When i... more >>
Async sockets
Posted by Frane Roje at 7/1/2004 10:37:57 PM
I'm trying to connect to a server using non-blocking sockets with the method
Socket.BeginConnect(). Since I don't know the Ip address of my server I
can't get the IPEndPpoint parameter for the BeginConnect() method. Could
someone tell me how to get the IP address of server if you know it's
name(... more >>
socket programming
Posted by zbcong at 7/1/2004 10:19:01 PM
hello
i found there are three socket programming architectures from dotnet:synchronized socket,asynchronized socket and TcpListener.
i know that the asynchronized socket is non-blocking socket.i can use it implementing non-blocking socket communication.
but i don't know how to determine when i ... more >>
Problem calling .focu() when in worker thread.
Posted by Dean Bortell at 7/1/2004 10:06:01 PM
I am writing a multi-threaded program with a worker thread. I want the rich text box to auto scroll down as the text is added.
Here is what I want to happen:
From the worker thread:
1. Add the text to a richtextbox named txtMessageBody.
2. Make sure that the scroll is to the bottom of the box... more >>
LPT in C#
Posted by rozrabiak at 7/1/2004 7:39:21 PM
Hi everybody
How can I use LPT port in C#?
In google I don't find anything...
Best regards.... more >>
Static forms - object created at runtime?
Posted by The Real Andy at 7/1/2004 6:30:35 PM
If I make a windows form static, does the object get instantiated at
runtime, or is a null reference made to the object? I do apologise in
advance if this is a tad ambiguous. I dont think I really understand
what a static object is.... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Rotate screen
Posted by steve at 7/1/2004 6:24:02 PM
I have a tablet PC and I write a application on this tablet PC, I would like to rotate the screen from portrait<->landscape mode(or 90/180/270 degree), what should I do?
I only find the code for pocket PC 2003 upgrade.
private void SetOrientation(ScreenOrientation so)
{
... more >>
Performance is bad
Posted by steve at 7/1/2004 6:06:01 PM
I create a circle image form, drag and drop this image on the screen, if I drag
this circle fast to the right, the left part of the image is cut, looks to me the performance is not good as I expected, another issue is if I only create a windows form, then goto task manager, the memory usage is more... more >>
TreeNode location
Posted by nevin at 7/1/2004 5:58:24 PM
Hi,
If I have a TreeView with loads of Nodes and they all have children etc, how
do I find the index of a given node when I only know the Text value?
If I use TreeView.Nodes.IndexOf(new TreeNode(textvalueofname)) it always
returns -1 and a TreeView.Nodes.Contains(etc.. always is false.
I expe... more >>
Word Automation
Posted by Bill Cooter at 7/1/2004 5:43:37 PM
I am attempting to insert an existing document into another existing
document. When I insert the section break where I want the file insertion to
take place, no matter what type of section break I use;
wdSectionBreakContinuous; wdSectionBreakOddPage; wdSectionBreakEvenPage; or
wdSectionBreakNext... more >>
Bluetooth
Posted by Henrik Dahl at 7/1/2004 5:43:23 PM
Hello!
I have a notebook with Bluetooth. If I use a cellular phone with camera and
bluetooth to send a picture to the notebook is it then possible to receive
it using my .NET application. Probably the question is if it's possible to
receive OBEX bluetooth messages using the .NET Framework?
... more >>
Connection to the DataBase
Posted by Alberto at 7/1/2004 5:39:15 PM
I have an object SqlConnection and I changed the connection string property
in the properties windows. The object works fine but if I do the same
declaring the object connection by code and with the same connection string
property, doesn't work. It can't connect to the database.
What's happeni... more >>
XmlSerializationWriter - Specified cast is not valid
Posted by Tamir Khason at 7/1/2004 4:40:12 PM
Code
public class RootSerialized
{
[XmlElement("SomeCollection")]
public SomeCollection SomeThings;
}
public class SomeCollection: BaseCollection ,ITypedList ,IBindingList
{
public SomeCollection() : base()
{
}
[XmlElement("Something")]
public Something this[int inde... more >>
Tabs in a TabControl
Posted by Alberto at 7/1/2004 4:39:28 PM
How can I do to show the tabs in a TabControl in the botton of the control?
Thank you.
... more >>
Newbie Please help
Posted by CQL90 at 7/1/2004 4:32:19 PM
Hi All,
First, I would like to thanks you all in advance.
My first question is: How can I call VB code and/or C++ code from C#( .cs ).
Any help is deeply appreciated. Thanks you...
Kate
... more >>
Eliminate adding rows to grid...
Posted by VM at 7/1/2004 4:11:11 PM
In the Windows datagrid (if read-only is false), a user can add another row
to the grid if the Tab key is pressed when the cursor's in the last row and
last column. Is there any way to eliminate this without making the grid
read-only? I need to be able to modify the data in the grid and to add mo... more >>
IComparable.CompareTo not being called on Array.Reverse
Posted by Brian W at 7/1/2004 3:47:30 PM
Because of the upcoming US holiday I'll probably have to ask this again next
week, but just on the off-chance, I'll ask anyway
I have a class defined something like this...
public class Item : IComparable
{
private string _name;
// ... more stuff here
public int CompareTo(ob... more >>
Embeded resource
Posted by Viorel Ghilas at 7/1/2004 3:42:44 PM
Hi all,
I have an assembly, that contain some embeded resources,
How can I add in runtime, data to my embeded resources. is it posible
with best regard
Viorel Ghilas
... more >>
populate a comboBox from DataSet
Posted by Marc Jennings at 7/1/2004 3:04:11 PM
Hi there,
I'm new to C#, and I have a small problem.
I have created a new DataSet using the code below, and I would like to
be able to populat a drop-down list with the results of the "name"
field. Can anyone help me, please?
*************************************************
string m... more >>
system.timer not firing
Posted by caulker at 7/1/2004 2:50:23 PM
I have a simple Windows Service with a timer (system.timer).
The service seems to run just fine when I have the Timer = 1 minute, but
when I set the Timer = 15 minutes it only fires once ... then appears to
stop.
any help is greatly appreciated...
... more >>
Repost: Cannot create an instance of the abstract class datagridColumn
Posted by Andrew at 7/1/2004 2:40:53 PM
I am trying to set the column information - which ones I want displayed and
how with the web grid control. The interface has some big differences when
compared to the winform.
Is this possible without having the dataset match ? I think yes... but ...
here's how I approached it: ( create ne... more >>
User Control
Posted by Greg Oetker at 7/1/2004 1:53:51 PM
Hi All,
I'm looking for a good example for writing a User Control that does not
expose the properties of the User Control itself (ie. Tab Stop, Password,
Colors, etc.). I only want to expose the Properties and Methods I created.
Also, I would like to make it invisible at runtime (this.visible ... more >>
Serialization debugging
Posted by Tamir Khason at 7/1/2004 1:49:27 PM
Any ideas how to debug Serialization when there are complicated hierarcical
objects and collections involved to prevent
There was an error reflecting type error?
--
Tamir Khason
You want dot.NET? Just ask:
"Please, www.dotnet.us "
... more >>
Interop.VBA Problem with Collections from C# app
Posted by jimdandy NO[at]SPAM shaw.ca at 7/1/2004 1:38:07 PM
I have a VB 6 dll with the following method signature:
Public Sub ParseImageTags(ByRef InputLinksField As String _
, ByRef KeyWordCollection As Collection)
From a Visual Studio 2003 ASP.Net C# project I added a reference to
this DLL.
I have this line of code in the... more >>
Thread and object scope
Posted by R.A. at 7/1/2004 1:01:18 PM
private void ArchiveTimer_Elapsed(object sender,
System.Timers.ElapsedEventArgs e)
{
Thread thethread = new Thread (new ThreadStart
(processFile.ClearArchiveFilesThreadProc));
thethread.Start ();
}
Is this code ok, or will there be some issues after ArchiveTimer_Elapsed... more >>
Getting date in .NET
Posted by Baz at 7/1/2004 12:53:50 PM
How can I get yesterday's date in a program? I tried using the following,
but it fails on the first day of the month
dtnow = new DateTime(Year, Month, Date-1);
Thanks for any help!
... more >>
Using static methods in apotentially multithreaded environment
Posted by Simon Harvey at 7/1/2004 12:47:17 PM
Hi all,
In my project I have made a number of helper methods static. As I understand
it, this will create the problem that multiple threads could access the
static method at the same time and interfere with one another.
My question is, for each static method, do I need to lock access to only... more >>
Sending A Page From An Application
Posted by Greg Smith at 7/1/2004 12:04:56 PM
Does anybody know of any way/product that would allow you to send a pager
message from an application?
Any help is greatly appreciated.
... more >>
HowTo find out the number of references to a reference type?
Posted by Klaus Drechsel at 7/1/2004 11:56:42 AM
My Problem:
The Function Dispose on a IDisposable shuld be called on the last reference
to this instance. Can I get the number of references. to an object?
Klaus Drechsel
... more >>
Updateable GUI (A new verion is available .... )
Posted by rawCoder at 7/1/2004 11:43:37 AM
Hi All,
I need initial ideas for how to develop a GUI that is Updateable.
Like the user can check for updates or be informed when a new update is
available.
Then he can download the GUI transparently and then run the new GUI.
This is just like Messengers ,, like MSN informs you of new c... more >>
Datagrid fill from XML File
Posted by Thejus at 7/1/2004 11:33:44 AM
Hi,
When I read from a XML Document and assign -
DataSet.ReadXml(@"C:\Abc.Xml",XmlReadMode.Auto);
DataGrid.DataSource = DataSet;
I get the DataGrid showing the Data table name, but the data is not
displayed in the datagrid. It
shows Table Name as a link, on clicking of which the grid is... more >>
Self intializaed class
Posted by Tamir Khason at 7/1/2004 10:40:20 AM
Questing:
Following program. I want on request of property of some class if the class
not initialized - do it, but the following returns exception (...not set to
the instance of the object...) Why?
SomeClass class = GetThisClass.SomeClass();
//Class
class SomeClass
{
public SomeClass()... more >>
Image resources file *.res extension
Posted by D. Yates at 7/1/2004 10:35:30 AM
Hi,
I am looking for an example of how to extract bitmap images from an embedded
resource file (a file with *.res extension, which can be viewed inside of
the ide and can hold bitmaps, icons, string tables, etc.) and place them
into a imagelist.
I have found examples using the resource mana... more >>
get an integer from a text box.
Posted by owyn at 7/1/2004 10:24:02 AM
Is there some way to convert a string which consists of a number(eg. 24) to an integer type? I am trying to get the value from the text property of a text box.
... more >>
Exception Details: System.InvalidCastException: QueryInterface for interface MyObject._MyCls failed
Posted by Ram at 7/1/2004 9:59:13 AM
I am running a test web site on my own Win2k professional computer. I
have a VB6 COM component (running on COM+) on a seperate application runnint
as "Server".
When running an ASP.NET page calling this component, it works fine, but When
I try and debug the Com+ process using the VB6.0 IDE, I get... more >>
ShowDialog with parameters
Posted by carmen at 7/1/2004 9:58:47 AM
Is it possible to use ShowDialog with some parameters? How could I redefine
this method?
Thank you
Carmen
... more >>
Page.User.Identity.Name
Posted by Brian Conway at 7/1/2004 9:13:44 AM
Does anyone know how I can assign a Session variable to this? so that I can
pull it back out on another page?
... more >>
ListBox DoubleClick -> Form.Close error
Posted by JoeHenrich at 7/1/2004 9:02:05 AM
I am using VS.NET 2003 and am having an interesting issue with a Listbox control. Essentially, I have a form with a listbox on it. In the listbox doubleclick event I would like to do some processing and then close the form. However, I receive an error (Cannot access a disposed object named "ListB... more >>
WndProc method
Posted by John S at 7/1/2004 8:57:03 AM
I am trying to use this method to capture a user pressing the "X" in the
upper right-hand corner. I tried using the following code, but anytime I
exit the program it gets hit no matter what I press.
if(m.Msg == 0x0010) { //X button location
MessageBox.Show("Yeah i am close button here");
... more >>
Call a Click event
Posted by John S at 7/1/2004 8:24:33 AM
Is it possible to call the click event of a control from another method or
class?
... more >>
Data passing between projects in a solution
Posted by Aku at 7/1/2004 8:17:00 AM
Hi,
I have a solution with two projects in it.
ProjectA has data which is needed in ProjectB.
How do I pass this data to ProjectB?
Thank you!
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!... more >>
Adding Controls within a Thread?
Posted by avivgur at 7/1/2004 4:59:01 AM
Hello,
I am writing a program in Visual C# and I have encountered a problem.
In my program I want to dynamically create a multitude of controls (thousands) on a form. The problem is that calling the Controls.Add() method several times or even calling the Controls.AddRange() method once can take a... more >>
C# Learning Woes
Posted by David Cuffee at 7/1/2004 4:14:56 AM
I am a VB6 programmer learning C#. I probably would have been better off
being totally new to programming learning C# because of my knowledge of VB6
is totally making this harder for me to grasp.
What I am trying to do is I have a form (lets call it Form1) with a button
called Browse. When the... more >>
Operator overloading suprise
Posted by Peter at 7/1/2004 3:59:25 AM
The Operator overloading in C# has one limitation which I
have not seen stated explicitly anywhere.
Take the following example
public class A
{
int m_A;
public A(int a)
{
m_A = a;
}
public static bool operator==(A left, A right)
{
return left.m_A == right.m_A;
}
public ... more >>
[Q] MeasureString results and mono-space fonts
Posted by stuie_norris NO[at]SPAM yahoo.com.au at 7/1/2004 3:53:29 AM
Dear Group,
I have a question about the result from ‘graphics.MeasureString' when
using a mono-spaced font. Firstly I assume that Courier New font is
mono-spaced, ie each character takes up the same space when drawn on
the screen.
I am working on a program that requires displaying data in ... more >>
Hex Class
Posted by BuddyWork at 7/1/2004 1:59:45 AM
Hello,
Does anyone know where the class Hex is in the framework.
According to articles that I read it should be in
System.Security.Util, but I cannot find the Util
namespace.
Here is the link that shows this.
http://dotnet.di.unipi.it/Content/sscli/docs/doxygen/fx/bc
l/hex_8cs-source.h... more >>
Showing Caret
Posted by Sean at 7/1/2004 1:19:25 AM
Hi,
I have an application that will pop up a listboxwindow
(containing words that users can choose from)
when I type certain characters on a richtextbox.
Now I have a problem of maintaining the caret at the
richtextbox, because once the listboxwindow pops up, the
input focus will move t... more >>
ListView label edit question
Posted by Michael C at 7/1/2004 1:16:45 AM
In a ListView control with LabelEdit set to true, you have to click and hold
the mouse button longer than I would like to actually edit the label. Is
there a way to make it so that you can click the label once, quickly, and go
into edit mode?
Thanks,
Michael C.
... more >>
ActiveX and C# Interop
Posted by craigc79 NO[at]SPAM yahoo.co.uk at 7/1/2004 1:13:04 AM
I am having problems getting an ActiveX DLL written in VB6 to call a
method in a C# class library component.
My C# DLL is called CSharpProject.dll and contains a public class
called CSharpClass. In this class is a single public method that
returns the string "Hello
from C sharp".
My VB6 ... more >>
Value of Windows API Notification
Posted by Sean at 7/1/2004 1:12:38 AM
Hi,
I would like to know where I can get the value for
Windows API Notification?
For example:
private const int WM_ACTIVATEAPP = 0x01C;
private const int WM_NCACTIVATE = 0x086;
I couldn't find it in the Windows API documentation.
How can I know the value of other Notification like
WM... more >>
New namespace
Posted by Jay at 7/1/2004 12:42:53 AM
If I create a new namespace, where do I locate it so it doesn't have to be
part of the project or solution?
using mynewnamespace;
... more >>
Is there a difference of this two ways?
Posted by Chua Wen Ching at 7/1/2004 12:21:02 AM
I believe each ways below will produce the same results. But may i know which one will be better and encourage to be used.
Sample1:
class Animal
{
public void GetWeight()
{
}
}
class ClientApp
{
Animal anim = new Animal();
anim.GetWeight();
}
Sample2:
class Animal
{
priva... more >>
|