all groups > c# > january 2006 > threads for thursday 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
Query data via SMS
Posted by Jonathan Woods at 1/5/2006 11:42:08 PM
Hi there,
I would like to query data from SQL Server 2000 by using SMS.
Conceptually, For example, I send the following SMS
Message "TK1234GPS" to SQL Server. Then SQL Server will respond to my
mobile phone the following info: "TK1234Lat203.345Long35.5050". How do
I implement that scenario? W... more >>
Aborting a thread ?
Posted by jmd.msdn at 1/5/2006 11:20:43 PM
Hello.
I want to abort a thread whose thread function contains something like :
void threadfunc ()
{
while ( 1 )
{
... some code
udpClient.Receive(...); // instance to read network
data
.... more >>
Getting OS Info via WMI
Posted by Primera at 1/5/2006 9:32:59 PM
Could someone please review my method below. I'm trying to return the type
of the OS on the local machine using the below. My concern is that there
could be a flaw in the if statement and the return statement with variable
scope on osName. I originally had the return statement inside the fo... more >>
Infragistics, ComponentOne, DevExpress, other?
Posted by Ronald S. Cook at 1/5/2006 8:57:15 PM
Hi everyone,
We're needing to pick a suite of components for our C#/VS 2005 development.
Top on our list is a treeview that integrates with a datagrid. I think all
the big goes provide that.
Does anyone know which suite is the "best" or are they (Infragistics,
ComponentOne, DevExpress, ... more >>
AutoCompleteStringCollection for text box in DataGridView 2.0
Posted by Scott S. at 1/5/2006 8:28:02 PM
I have been searching for a way to have autocomplete in a DataGridTextBox
object. There does not appear to be an obvious way to do this like you would
for a TextBox outside of a grid using the AutoCompleteCustomSource. Any
thoughts on how I can add this collection? :)... more >>
Copy Protection / Trialware Software that works with .NET
Posted by Peter Olcott at 1/5/2006 7:15:06 PM
Does anyone know any really good products?
... more >>
Other Forums that have C# and .NET discussion groups?
Posted by Eddie H at 1/5/2006 6:39:34 PM
Do you other sites, forums or discussion groups where you can change
knowledge, opinions etc. considering C# programming and .NET?
-- like to get answers sometimes too --
... more >>
Generic list from C++ to C#
Posted by Nicolas Fleury at 1/5/2006 5:38:30 PM
Hi,
I have a field named "BaseClasses" in C++ as in the following simplified
code:
using Collections::Generic::List;
namespace A2M { namespace LipIntrospection {
public ref class BaseClassInfo
{
...
};
public ref class ClassInfo
{
public:
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Instantiating types (with internal constructors) using a generic factory
Posted by Anders Borum at 1/5/2006 5:15:58 PM
Hello!
Whilst refactoring an application, I was looking at optimizing a
ModelFactory with generics. Unfortunately, the business objects created by
the ModelFactory doesn't provide public constructors (because we do not
allow developers to instantiate them directly).
Because our business ... more >>
Design question...
Posted by craig at 1/5/2006 5:06:12 PM
I have am working on an app that has many forms. I would like to make each
of these forms capable of interacting with the Windows Clipboard. I did
some research and found out how to do this using the Windows API, which
involves overriding one of the Form methods.
Am I correct in thinking ... more >>
Printing in Landscape
Posted by BlueSky at 1/5/2006 4:38:19 PM
Will I able to print documents from a web page using the
System.Drawing.Printing class to a client computer?
Thanks for any info.
... more >>
C# Conversion
Posted by jignasuk NO[at]SPAM gmail.com at 1/5/2006 4:18:46 PM
How would I convert something like below to C# or VB.Net?
unsigned char ar[] = "AB";
unsigned int i = 0;
i = *(unsigned int *)ar;
Thanks
JK
... more >>
Storing Generic collection in a field
Posted by dcew at 1/5/2006 3:40:02 PM
Here's what I'm trying to understand; how can you store a generic collection
in a variable/field?
If I have an abstract generic collection class as follows...
public abstract class BizCollection<T> : Collection<T> where T : BizBase
{
// Collection Implementation
override void Inse... more >>
output box (cmd)
Posted by scottmac at 1/5/2006 3:39:02 PM
when a class is compiled and run,(simple hello world for example) the command
box flashes up with whatever the program did, then disapears! so never able
to see for more than a fraction of a second what program output was.
visual studio 2005 express.
any setting for keeping command prompt box ... more >>
Is it possible to have a static field of a struct type of its type
Posted by PIEBALD at 1/5/2006 3:29:03 PM
That didn't come out right, but what I mean is something like:
struct X
{
private int x ;
public readonly X MinValue ;
static X() { MinValue = new X ( 0 ) ; }
public X
(
int x
)
... more >>
Outputting a double number with three decimal places
Posted by Andy at 1/5/2006 3:21:01 PM
Hi
I'm really stuck outputting a double number to the console with three
decimal places if the furthest right value is a zero.
I can coutput the number 4.546 as 4.546 but then if I output 0.220 it comes
out as 0.22 and drops the zero. Also, outputting 1.000 outputs as 1.
How can I forma... more >>
Plugins architecture
Posted by Luis Arvayo at 1/5/2006 2:52:10 PM
I need to implement plugins in my application. That is to say, DLLs that
communicate with my application data.
Does someone have a link to the best explain of how to accomplish the above
?
Thanks a lot
Luis Arvayo
... more >>
Aggregate Functions in DataTable.Select
Posted by Marcel Hug at 1/5/2006 2:52:10 PM
Hi NG!
With a Inner-Join SQL I get my datas in a DataSet.
In the table are the column Entry and Version.
Like this:
Entry Version
1 1
1 2
1 3
2 1
3 1
Now i would like to have just the newest version o... more >>
nested struct array
Posted by symbol at 1/5/2006 2:47:02 PM
I am having this problem in a managed c++ DLL which mixes managed and
unmanaged C/C++ code. I tried to assign value to a struct array nested in
another struct. but I can only write to the first element in array, not the
others.
struct struct2{
int a;
int b;
};
struct struct1 ... more >>
Urgent need: HTTP-Auth from C#
Posted by Zeya at 1/5/2006 2:39:26 PM
A third party site requires all request to have HTTP-Auth.
I have an application running in ASP.net and C# from which I need to
send a request to this site. How can I do this? Meaning HTTP-Auth.
Example will be great help.
Thanks.
... more >>
key value pair with a list
Posted by Someone at 1/5/2006 2:32:15 PM
I wish to use a sorted list to store lists of strings. I am unsure as to
how things work. I want to do something like:
SortedList list = new SortedList();
for(...loop for string...) {
if( ! list.contains(key)) {
list.add("keyval", new ArrayList(string));
else
list.GetValue().add(st... more >>
Search for Quote inside a string
Posted by temp at 1/5/2006 1:59:57 PM
Hi,
completeString = "<p><a href="http://www.google.com"> ..... "
Now I want to extract the link pointed out by href so I try to find the
position of first the href tag and then try to see where the quotes begin.
pos_tag = completeString.IndexOf("href", 0, completeString.Length);
pos_t... more >>
Mouse Event
Posted by Dave at 1/5/2006 1:55:16 PM
Is there a way to receive a message any time the mouse is clicked
anywhere on the screen? I would be kind of like a clicke event handler
for the entire screen.
... more >>
Building a Document Web site in C#.Net.
Posted by Jason Huang at 1/5/2006 1:35:02 PM
Hi,
We would like to build a Web site based on C#.Net.
The purpose of building this web site is to post our Documents for our
employee only.
Since we have many Documents(e.g., ISO9000, ISO14001),
we would like to have them published on our web.
Would some one give us some advice?
Thanks fo... more >>
Asynchronous programming
Posted by rsanan NO[at]SPAM gmail.com at 1/5/2006 12:50:26 PM
I am looking for a simple example to open a window with a message
"Processing Request"
while i do some export / writing data to a text file.
Do I need to use Async programming ? any examples?
Thanks
... more >>
How do I compare 2 objects which reference COM objects?
Posted by Uzi at 1/5/2006 12:41:22 PM
Hi,
I have 2 references to COM objects (through interop). How do I compare
the tow to know if they are pointing to the same COM object?
The Object.Equals doesn't work in this case...
Thanks!
Uzi
... more >>
Using keyword
Posted by INeedADip at 1/5/2006 12:33:48 PM
Can anyone here confirm for sure that reader.Close() and Dispose() will
get called using the following routine:
using(SqlDataReader reader = GetOpenReaderFunction())
{
while(reader.Read()) doSomething(reader);
}
I have seen examples here and there with mixed assumptions.
... more >>
Implement "loosely coupled events"
Posted by Jonathan at 1/5/2006 11:52:01 AM
Hi
I need implement loosely coupled events to raise events in a Classibrary
project from one Windows Application project, and hanlde these from other
Windows Application project.
I found this article in MSDN, but I don't know how to implement.
http://msdn.microsoft.com/library/default.asp?url=... more >>
How to make a non square Sys Tray Icon?
Posted by Benny Raymond at 1/5/2006 11:50:22 AM
I searched for a couple hours lastnight on example code of how to go
about making an item in the System Tray (notification area) not be
square. I've found several programs that do this but I can't seem to
find any documentation on how to actually get this to work.
I checked out some system... more >>
System.Diagnostics.Process not working !! please help
Posted by Nurit N at 1/5/2006 11:37:47 AM
This is the third newsgroup that I'm posting my problem.
I'm sorry for the multiple posts but the matter becoming urgent.
I hope this is the right place for it...
I have created a very simple batch file (echo hello world) and was trying to
retrieve the standard output but every time I ru... more >>
thread calling methods
Posted by Pohihihi at 1/5/2006 11:36:15 AM
When a thread calls a method (and/or that method calls another method), =
are they thread safe if the first method is controlled on access?... more >>
Windows forms and user controls
Posted by Maya at 1/5/2006 11:31:35 AM
Hello everyone,
I have a windows form that has 2 child usercontrols i created and added
inside, control1 has a label that displays some text based on
activities i do in control2, my question is how do i update the label
text inside control1 from control2? previously i got around this issue
by... more >>
Monitor status
Posted by Dave at 1/5/2006 11:16:52 AM
Is there a way to query the monitor status, to know if it is on or off
in C#? I found that WM_SYSCOMMAND is sent to WndProc when the monitor
goes on and off but im not sure to find out if that message is always
just about the monitor.
Thanks for any help.
... more >>
Removing Items in ListView
Posted by Curious at 1/5/2006 11:01:12 AM
Hi,
I am removing problems but I am having a problem. The code below is
the code being used to remove items from the listview.
ListViewItem oldItem = listViewAllStates.SelectedItems[0];
listViewNextStateSelected.Items.Remove(oldItem);
My problem occurs in the following scenario (example)... more >>
Stop a RichTextBox control from scrolling when it has focus
Posted by D. Yates at 1/5/2006 10:55:50 AM
Hi,
When a RichTextBox control doesn't have focus, it DOES NOT scroll to the
last line that is added; however, if it does have focus, it WILL scroll to
the last line added. I want to stop and start this behavior at will. When
I stop the behavior, this will give users a chance to examine t... more >>
Ambiguity with ContextID in entprise services.
Posted by Michael Nemtsev at 1/5/2006 10:00:26 AM
Can't ace in how client and server component contexts correspons with
each other.
Server-side (entperiseServices) component is always created in context.
But I'd like to create serverside component in *client context*, and
therefore contextID of the client and server should be the same. For
unk... more >>
!!! Updating data in Datagrid second by second. !!!
Posted by Rahul Goel at 1/5/2006 9:39:53 AM
Hi,
I am developing an application which will listen the server at one port and
retrieves new data or the same data for the given parameters the thing, I
want is, I want to update the datagrid without clearing the table and
refilling the new rows in it.
So if the data is in less than the g... more >>
Master pages and content holders
Posted by Rik Brooks at 1/5/2006 9:33:03 AM
I am creating a Master page and I need to put 3 different content holders on
it. When I put the content holder on the master page I am not able to resize
it. I can move it around but not resize it. I grab the handles and nothing
happens. I tried putting the content holder inside it's own div b... more >>
Help with NaN handling in IL conditionals
Posted by Leon Lambert at 1/5/2006 9:05:31 AM
I would appreciate it if someone could help me understand NaN handling
with respect to conditionals in IL code. I am playing with a small IL
interpreter and having a little problem with it. Following is a small
piece of C# code that gets compiled by VS2005 to simulate my problem.
static void ... more >>
Making either either a webbrowser object or shockwave object react to a mouse click.
Posted by UJ at 1/5/2006 8:37:51 AM
I have both a webbrowser object and a shockwave object on a window's form. I
want to make it so that if a person clicks on either of them, something
happens. But they both look like they don't have an onclick event. How do I
add that. I was thinking of putting an object (like a label) in front... more >>
Background color of transparent on a label shows form not what's underneath it.
Posted by UJ at 1/5/2006 8:33:36 AM
I have a browser object on a form with a label in front of it. I want the
label to be transparent so that you can see what's going on in the browser
behind it. When I make the label transparent (backcolor = color.transparent)
what it shows is the window, not the control behind it.
What am I... more >>
C# and certification
Posted by GrahamJWalsh NO[at]SPAM gmail.com at 1/5/2006 8:33:26 AM
Hi,
I'm about to embark on .NET/C# certification (after 6 weeks intensive
training). I'm actually heading off to India as it's cheaper....sign of
the times. The goal is to compliment my existing c++/java skills and
to enhance my employability (I contract in finance at the moment...I
have wor... more >>
How do you store a list of Objects ?
Posted by Craig Lister at 1/5/2006 8:32:34 AM
I'm a newbie..
I'm trying to list all files in a directory, and store them in a aFile
object. As I iterate through each file, I store the size, name, path, date
etc...
How do I store them once the object is created? I thought they would simply
be added to an ArrayList, but this doesn't s... more >>
Help with C# events in native C++ COM
Posted by Scythen at 1/5/2006 8:10:05 AM
I’m developing script system based on C# script for a game engine.
Scripts are written in C# and compiled at run time by a C# class library.
The native C++ game code accesses the script compiler class library through
a COM interface. Compile scripts are passed back to the native C++ game code ... more >>
Var/Object Access
Posted by Christopher at 1/5/2006 7:25:04 AM
Cant access a object that is in the same class it seems...
With a new c# win. app. project in vis studio 2k5, if I want to access a
richTextBox that was defined in Form1.Designer.cs. (richTextBox1).
I write a simple line in program.cs
richTextBox1.Text="Test 1.1";
Essentially richTextBo... more >>
Problem with byte array....
Posted by sridev at 1/5/2006 6:40:38 AM
hi all,
i have a byte array which has length of 10,000.I have to break this
byte array into smaller parts of length 512 and save this values into
another byte array.
I am doing this because i want to send the large byte array thro' the
socket connection.Plz help me....with example ...... more >>
IDE: vs2k5 partial class
Posted by Christopher at 1/5/2006 6:32:02 AM
Greetings,
By default Visual Studio 2005 starts each new project up with the code in
partial class form. Is there anyway I can change this behavior so that the
code is not split amongst different source files?
Im using the professional edition for c#.
Thanks,
Christopher... more >>
synchronize Access Database!!
Posted by taleran58 NO[at]SPAM gmail.com at 1/5/2006 6:29:06 AM
Hi all.
I'm writting a multithreading program that will update a loacal Access
database.
I'm using OleDB connection to get access to the database from each
thread and my question is: how do I synchronize between threads\ how do
I lock the database so no clashes between threads occurs.
do I hav... more >>
Run time decision on type of new object
Posted by Paulustrious at 1/5/2006 4:04:01 AM
Is it possible to decide on the type of an object at run time. So in
pseudo-code I am looking for one (or preferably both) of the following....
string s = "SomeExistingClass"
ClassTypeInString(s) MyThing = new ClassTypeInString(s) ;
....or....
SomeClass myVar = new SomeClass() // an... more >>
Error, how to resolve problem.
Posted by Jesper at 1/5/2006 4:02:02 AM
Hi,
In visual studio 2003 I made an application that ran without problems on a
number of 50+ machines (all running .Net 1.1). Now I've recompiled the
program using Visual studio 2005, .Net 2.0 has been installed on all
machines, completely updated from windowsupdate.com. On two mahines how... more >>
unhandled exeption of type 'System.Runtime.InteropServices.COMException' in system directoryservices.dll
Posted by cgian31 at 1/5/2006 3:28:04 AM
I am browsing the ActiveDirectory with the code below and I get the
error message in the subject, with Additional Information: Unspecified
error.
Any ideas?
string s=GetDomain;
DirectoryEntry de=new DirectoryEntry(s);
string sFilter = "(&(objectCategory=person)(objectClass=use... more >>
System.Net.HttpListener
Posted by Antimon at 1/5/2006 12:31:23 AM
Hi,
Anyone using the new System.Net.HttpListener class included in 2.0? How
about the performance?
And can it register for example "http://host:80/app" to use with iis
running website on "http://host:80/" ? I cannot register same port
prefix when iis is running on winxp sp2. But it might be wor... more >>
|