all groups > c# > february 2004 > threads for monday february 2
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
Need help for serial Port programming
Posted by pei_world at 2/2/2004 11:56:44 PM
Hi there,
I have search the web for serial port programming for age. I found some
example codes. but I don't know how to test then. I don't have any idea how
such program what undernearth.
Can anyone give me some help?
please add me on msn: pei_world@hotmail.com
thanks in advanced
... more >>
moving columns in datagrid
Posted by Christiaan at 2/2/2004 10:13:37 PM
What do I have to do to make it possible to move columns around in a
Datagrid with my mouse?
Christiaan
... more >>
how to pass interface pointer to a method in a DLL
Posted by Rui Mota at 2/2/2004 6:47:22 PM
hello there!
I've been trying to translate some code in C++ into C#.
I've an object in a DLL wich has a Method that recieves an Interface pointer
as parameter.
something like this:
HRESULT _stdcall MyMethod([out] unsigned long* nElem, [out] IMyData**
aData);
In C++ I simply do this:
... more >>
Build dll w/ Personal Edition?
Posted by Chuck Conlow at 2/2/2004 6:41:18 PM
Greetings.
I'm using the Personal (I think that's what it's called) edition of VS C#
and I want to build a .dll, which is not an option presented in the IDE.
I *think* I can build one from the command line, but am unsure of the
syntax. Any pointers? Assume only one .cs file (library.cs).
... more >>
OOP/Design question
Posted by codymanix at 2/2/2004 6:37:34 PM
Hi!
I have a class Bank and a Class BankAccount. A Bank can contains multiple
BankAccounts (logical, isn't it?). The central Bank object contains a
datatable which holds the data of all bankaccounts.
This means, the class BankAccount must have access rights to the datatable
in Bank, but I d... more >>
Changing height of Font
Posted by Michael Dorrian at 2/2/2004 6:32:56 PM
I want to change the height of the font to fit a textbox. I want to know
the ways to do this in C#.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!... more >>
repeater? any one?
Posted by matt (Ziba) at 2/2/2004 6:04:45 PM
is there any way i can user a repeater with in my c# .NET
application?
apparently there is not one within c# does any one no of
a repeater in any other .Net Language?
or does any one know of a company producing a repeater
component.
are ther any plans for microsoft to include a repeat... more >>
searching in a DataGrid
Posted by Bamse at 2/2/2004 6:00:44 PM
hi!
i need to search in a datagrid after more than one column
any ideas, something already in .NET Framework?
the DataView can only search upon one column only, the primary key column
Thank you,
Daniel
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
C# exceptions not showing filename/line numbers (PDB issue?)
Posted by Arun Bhalla at 2/2/2004 5:55:07 PM
Hi,
I'm developing an Explorer bar using VS.NET 2003 (C#) on Windows XP. For
some time, I've noticed that I don't have filenames and line numbers
appearing in my exceptions' stack traces. On the other hand, debugging with
breakpoints, etc. seems to work fine in VS.NET 2003. I can't understa... more >>
Capture value in datagrid
Posted by Dave Petersen at 2/2/2004 5:46:58 PM
In my C# winforms datagrid, how do I get the value of the selected cell? In
asp.net I can use:
dataGrid1.SelectedIndex
but SelectedIndex is not available in windows forms apps. HitTestInfo will
return the cell number and row number, but I need to get the actual contents
of the cell.
Th... more >>
creating com+ in vs.net?
Posted by Lasse Edsvik at 2/2/2004 5:45:03 PM
Hello
I was wondering if you guys know of any tutorials on how to create com+
components in vs.net?
/Lasse
... more >>
DataGridTableStyle Problem
Posted by Carlos at 2/2/2004 5:14:53 PM
Does DataGridTableStyle work in ASP.net ? any time I'm tring to define a
varibale lke
DataGridTableStyle MyStyle = new DataGridTableStyle();
it give me "The Type or name sapce 'DataGridTableStyle 'could not be found"
also I have the following at the begining of the program..
using Syst... more >>
TextBox Question
Posted by Ygnacio DurĂ¡n at 2/2/2004 5:09:46 PM
Hi there, I'm new in c# and need to know how to get the position of the
cursor in a textbox control.
For example, let be the text : "My text", if the cursor position is behind
the "x", then the position is 5.
Thanks a lot.
--
*** Ygnacio Durán ***
... more >>
simple text file question
Posted by suzy at 2/2/2004 4:59:54 PM
hello,
i want to search a text file for an occurrence of a string and replace some
text after the match, then save the file.
eg: if the file is:
<start>
Hello my name is tony, I am 22.
Hello, my name is sonia, I am 18.
Hello, my name is debbie, I am 8.
<end>
I would like to pass in... more >>
Single Dataset object for all processes
Posted by Prabhu Shastry at 2/2/2004 4:31:35 PM
Hello group,
I have a Windows Service and an application (C#). Both processes need access
to a single dataset object (created and modified by the service and
application will only read the dataset). I thought this was possible with
..Net remoting, but not able to figure out a way to make this po... more >>
UDP Client Problem
Posted by Cory Nemelka at 2/2/2004 4:26:07 PM
Can anyone tell my what is wrong with this snippet of code?
//Creates a UdpClient for reading incoming data.
UdpClient receivingUdpClient = new UdpClient();
//Creates an IPEndPoint to record the IP Address and port number of the sender.
// The IPEndPoint will allow you to read d... more >>
Invoking a web service through reflection
Posted by Rodrigo Meneses at 2/2/2004 4:18:26 PM
Hello.
Does somebody know how to invoke a web service using reflection in c#?
Thanks in advance
-Rodrigo Meneses Pinillos
... more >>
Heap/Stack Allocations - Are my assumptions correct?
Posted by Nick McCamy at 2/2/2004 4:08:27 PM
I have a question related to allocating on the stack.
In this program below, are my following assumptions true?
- variable a is allocated on the heap since it's static
- variable b is allocated on the stack since it's a value type variable
- variable d is allocated on the stack since it's a ... more >>
Prevent navigating to child table in Data Grid
Posted by muesliflakes NO[at]SPAM yahoo.com.au at 2/2/2004 4:03:49 PM
I have a Data Set with parent / child related tables and wish to
show the parent rows in one data grid and the child rows in another
data grid.
The problem is that the parent datagrid has the ability to drill down
to the child records with its own grid. How can I suppress this ability.
I o... more >>
how to close port?
Posted by wobbles at 2/2/2004 4:00:57 PM
Hi Everyone,
The remoting NG seems to be very quiet lately, so I hope you don't mind if I ask
this question here.
My server application listens to client requests on a port (say 50,000).
When my client remotely calls (async one-way) it remains connected to the server
until it (the client) s... more >>
39 - 32.2 = 7.799999999999 - why?
Posted by Joel Barsotti at 2/2/2004 3:23:24 PM
In the current application I'm working on I'm using floating point variables
to store price information in a shopping cart.
When I go to do % based discounts I make sure to round and truncate my
numbers to 2 decimal points of precision.
But when I go to do more arithmetic on the numbers I'm ... more >>
Object Serialization
Posted by Keshav at 2/2/2004 3:18:30 PM
Hi All,
I have a class by name "Participant" and it has properties such as
"Id" ,"Name",Type". Type is of type enum.
I am using xmlserializer to serialize. When i serialize
I should get
<?xml version="1.0" encoding="utf-8"?>
<Participant xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:... more >>
Passing a MailMessage object to a web service
Posted by Mark Rae at 2/2/2004 3:17:57 PM
Hi,
Can anyone please tell me if it's possible to pass a
System.Web.Mail.MailMessage object to a ASP.NET Web Service? Maybe using XML
Serialization / Deserialization? I've been asked to investigate the
possibility of building a front-end web page which captures MailMessage
properties such To,... more >>
How would I find out to which control a given control is docked against...
Posted by Yasutaka Ito at 2/2/2004 3:01:42 PM
Hi,
Is there a way to find to which control the current control is docked
against?
For example, let's say I have panel1 and panel2 docked to left within a
form. The panel1 is the first one on the left and the panel2 is the second
one docked against panel1. I want to be able to find out to w... more >>
Data source on change
Posted by Tamir Khason at 2/2/2004 2:47:46 PM
I want to be able to fire event when the data source was changed
The data source is data objects in array list (which does not know to
notify)
Is it possible to use control's functionality (e.g. DataGrid) to catch the
update of data source (DG updates with add to data source)
... more >>
Missing conversion functionality
Posted by stpatrickjr at 2/2/2004 2:46:08 PM
It seems that Microsoft always leaves out a peice of functionality that logically belongs somewhere. (I am new to this language.
In the integer object there are many methods that are always needed, such as hashing, typeing, and converting into a string
In the string object there are many method... more >>
Moving cursor
Posted by Ramsin Savra at 2/2/2004 2:43:01 PM
Hi
How to move the cursor to line 6 (or any line) in a TextBox control ?
thx
... more >>
Process.Start in a windows service
Posted by Daniel Reber at 2/2/2004 2:38:10 PM
I am trying to start a process from a windows service but when the process
starts the command window that the process runs in never shows. Is this
because I am calling it from a windows service? Is there something else
that I need to do?
Here is my code:
System.Diagnostics.ProcessStartInf... more >>
change datagrid column color
Posted by Dave Petersen at 2/2/2004 2:34:11 PM
How do I set the color of a particular column in my C# winforms datagrid?
Thanks,
Dave
... more >>
Help with GetFiles
Posted by EL OSO at 2/2/2004 2:30:42 PM
Hi! I am about to create a small application that needs to process some
files stored in a directory.
GetFiles() returns a string array, OK, but I'm expecting to find MANY (over
150.000) files in the directory and I'm worried about getting a memory
overflow, since I expect something like... 15 ... more >>
TextBox
Posted by Ramsin Savra at 2/2/2004 2:22:18 PM
how can I send cursor to a line n in a textbox ? is there any method for
that ?
... more >>
Class not registered
Posted by rua17 at 2/2/2004 2:09:29 PM
I add tow Com libraries to my project, I can see their content with
intellisense, but when I instantiate a class contained in the library:
PDDirectLib.PDDatabaseQuery pDbQuery = new PDDirectLib.PDDatabaseQuery();
It raises an unhandled exception "Class not registered"
any idea???
... more >>
FileSystemWatcher: problems with event-catching
Posted by Andreas at 2/2/2004 2:07:16 PM
Hi,
we have some problems with the following situation:
A remote application A writes files to a directory monitored by a
FileSystemWatcher-instance in application B. A creates the file
with the initial ending "COPY_IN_PROGRESS" and only after
successful copying the file gets renamed to its f... more >>
Right Clicking Listbox with select
Posted by chess76 NO[at]SPAM hotmail.com at 2/2/2004 2:04:26 PM
I'm able to add a context menu to the right click on a listbox but it
does not select the item in the listbox. I would like the context
menu before it pops up to select the item that the mouse was over when
the right click occurred. Is this possible?
Thanks,
Cristov... more >>
Accessing COM Component arguments defined by "ref", after it raise COM+ error
Posted by Dmitry at 2/2/2004 1:58:57 PM
Hi,
I have defined interface for COM components which inludes an argument being
filled with additional error info, if such occurs. If inside I raise COM
Error, I populate that parameter.
In COM environment this architecture works beautifully -- caller application
gets negative HRESULT and er... more >>
Bitmap.MakeTransparent OutOfMemoryException
Posted by Jax at 2/2/2004 1:16:12 PM
Whenever I use this method I get out of memory exception, even when using tiny bitmaps (100X100)
Does anyone know why this is
From what I remember OutOfMemory Exception is a default for other exceptions, does anyone know what it might be
I am of course using try catch and finally blocks to ensure... more >>
Enumerations in a strongly typed DataSet
Posted by Oleg Ogurok at 2/2/2004 1:15:13 PM
Hi all,
I've added a new DataSet (xsd file) to my project in VS.NET 2003.
There I create a simple type as an enumeration of values.
<xs:simpleType name="MyCustomType">
<xs:restriction base="xs:string">
<xs:enumeration value="Apple" />
<xs:enumeration value="Orange" />
</xs:rest... more >>
how to move a cursor to a specific line in a text box?
Posted by Ramsin Savra at 2/2/2004 1:07:48 PM
Hi, I have below code, to move the cursor to a specific line in a text-box
control (I don't want to use RichTextBox) but doesn't work! any suggestions?
int charIndex = 1;
for (int i = 0; i < snpObject.edtTextBody.Lines.Length && i <
iRequestedLineNumber - 1; ++i)
{
charIndex += snpObje... more >>
How to make dll library in C# for C++ program
Posted by winthux at 2/2/2004 12:54:58 PM
The program is written in C++ and uses dll library. I want to write plugin
in C#, but inside library should be some functions ( ActionProc, etc.). How
to write it?
(Sorry about my english)
Thanks,
Winthux
... more >>
Intellisense for assemblies in VS.NET
Posted by Mark at 2/2/2004 12:18:48 PM
When developing C# applications in VS.NET, you get intellisense descriptions
for all methods in the .NET class libraries. I've created my own .NET
assembly and included /// C# documentation of all my methods, classes, etc..
The intellisense works great when this .NET assembly project is included... more >>
Complete path name?
Posted by Hubert Hermanutz at 2/2/2004 11:54:15 AM
Hello,
I use an initialized "System.IO.FileInfo" class. The properties
"myFileInfo.FullName" or "myFileInfo.DirectoryName" deliver the directory
with MS-DOS convention.
Example: "c:\docume~1\...".
How can i get the full Path.
Example: "c:\documents\..."
Thanks in advance,
Huber... more >>
File Compare between MD5 hash and Regular File
Posted by ntuyen01 NO[at]SPAM yahoo.com at 2/2/2004 11:48:19 AM
Hi All,
This is what I want to do.
Support I have two file name abc.txt, xyz.txt
I did created md5 hash for abc.txt and store it some directory
Here is how I create md5 for the abc.txt
FileStream file1 = new FileStream(abc.txt, FileMode.Open, FileAccess.Read);
MD5CryptoServiceProvider m... more >>
about inherited
Posted by Owen at 2/2/2004 11:18:05 AM
Hello:
How I can know the class of some object?. Like in Object Pascal with this
sentence TObject.ClassType = SomeClass?
Best Regards.
... more >>
Class's Scope
Posted by JJ at 2/2/2004 11:16:53 AM
Hi,
I am trying to understand the lifetime or scope of a
class in this project.
Here is the code that I am talking about:
private void PopulateCategoryCombo()
{
ListItem objListItem;
while (drSQL.Read())
{
objListItem = new ListItem(drSQL["CategoryName"].ToStri... more >>
Making a Application (.NET/C#) truely platform independant
Posted by Champika Nirosh at 2/2/2004 11:09:02 AM
Hi All,
We have a windows from application written in C#, there we have used Browser
COM and other basic libraries present in standard .NET/C# SDK. So the next
part is to make this appliaction available to Unix and Mac platform. I have
couple of questions here
1. What are the possibilities ... more >>
is it possible to use MySQL as the database instead of SQL Server?
Posted by Flip at 2/2/2004 11:04:24 AM
Is it possible to use another DB instead of SQL Server? I don't have SQL
Server, but I do have IIS, FP Extensions as well as MySQL and would like to
use that. Is it possible?
Thanks.
... more >>
How do I test serial port application
Posted by pei_world at 2/2/2004 10:25:57 AM
Hi there;
I found a sample program with serial port programming. but I don't know
how to test how the program work. Can any one test it and tell me how to use
it? I transmit something, but on received window, I don't have anything. how
to test this program?
thanks
pei
... more >>
SQL interface controls
Posted by Martin Dew at 2/2/2004 10:08:43 AM
I have the task of creating a wizard type sql interface for our application.
I have already built an sql/report mechanism into the app that works by just
passing an sql statement through our middle tier then responding with the
resultset.
My next task is to create some form of wizard that enab... more >>
coming from j2ee and starting c#, wondering about custom tags?
Posted by Flip at 2/2/2004 9:21:27 AM
Does c#/.net support custom tags like j2ee does? I don't mean to start a
flaming war, I'm just honestly looking to find out. From what I've
seen/google'd it doesn't, so I just thought I would ask here, maybe I was
missing something?
And while I'm at it, does c#/.net have something similar to... more >>
Weird crash after "dragging" NotifyIcon - NullReferenceException
Posted by d0wsdkn02 NO[at]SPAM sneakemail.com at 2/2/2004 8:52:07 AM
I'm getting a NullReferenceException in Unknown Module when I follow
the below steps to create a simple NotifyIcon app that creates the
context menu on the fly(see a little analysis after the steps).
1. Create a new Windows Forms C# solution (I called mine DBChanger).
2. Replace Form1.cs code ... more >>
PropertyGrid with ComboBox containing dynamic data
Posted by ms_crack NO[at]SPAM yahoo.com at 2/2/2004 8:45:41 AM
Hello,
I am using a propertygrid to allow users to edit\create objects at
runtime, that can update records in a database. There are certain
properties (fields) that I wish to display as comboboxs. Currently I
can create an enum, which the propertygrid displays as a combobox.
However since the... more >>
Enumerating non-ui components from the given form instance
Posted by Yasutaka Ito at 2/2/2004 8:37:27 AM
Hi,
As you know, all the non-ui components (like Timer control, etc.) that sit
on the form are contained in its private variable 'components'.
How can I enumerate such components from any form instance given to me? I
have no access to the source of the given form instance, but I can impose
... more >>
How to do large builds for C# projects?
Posted by bleedledeep NO[at]SPAM yahoo.com at 2/2/2004 7:13:33 AM
Ok, newbie to .NET, C# here.
I have multiple solutions/projects. How do I do a "build" across
these?
Also, I have some .resx files that must be converted to .resources
files, and I have been unable to find a mechanism inside of the .NET
build mechanism to do this. (been doing it by hand wi... more >>
How to parse XML in C# (tooltips)
Posted by nm NO[at]SPAM sondagsavisen.dk at 2/2/2004 7:11:18 AM
Hi
<..I'm useing c# asp.net, and it's webapplications..>
I have a content.xml file with some content id's, and a text
(fx.: <content Id = bla bla bla bla></content id>
The text in content.xml is used in some tooltips. My problem is now
that in some of tooltips the text from the conten... more >>
How To: Read Joystick with DirectX using C#
Posted by bleedledeep NO[at]SPAM yahoo.com at 2/2/2004 7:07:26 AM
I am new to C#/.NET/DirectX, and could not find a simple example of
how to read the X/Y location of the joystick.
< YIKES!!! The DirectX.DirectInput is one serious pile of API! >
After some futzing around, I came up with the following - which seems
to work just fine. I'm looking for a sanit... more >>
Get the MACHINE domain, not the user domain.
Posted by simon.pearson NO[at]SPAM herbertsmith.com at 2/2/2004 6:33:55 AM
Hi,
I'm writing an app that needs to get the domain the machine running it
belongs to. I know that you can do a Environment.UserDomainName, but
this returns the domain the user has logged onto.
What I have is a machine that sits on a resource domain called ***Res,
and a trusted domain the ... more >>
Getting a db Schema and changing it
Posted by Eric at 2/2/2004 6:26:07 AM
I have an application that uses an Access db. I would like to be able to programmatically change the column names in one of the tables. I know how to get the Schema of the database but how can I change it?... more >>
Tooltip in a webpage
Posted by nm NO[at]SPAM sondagsavisen.dk at 2/2/2004 5:55:32 AM
Hi
I have a webapplication in c# using asp.net.
I have several tooltips wich gets their content from a content.xml
file. My quistion is now: Can't I use AutoPopDelay, InitialDelay etc.
on tooltips in a webapplication?
And if I can what do I have to write?
Nat.... more >>
DiaplayMember = 2 Fields concatenated
Posted by Tim Jarvis at 2/2/2004 5:47:03 AM
Hi,
I posted this earlier in the databinding group, but that group appears
to be pretty dead.
Is it possible to bind a combo box to a table, but have a DisplayMember
that is a concatenation of 2 fields? i.e. I have FirstName and LastName
columns but want to display Firstname <space> LastNam... more >>
Class or Struct, and archive to binary data
Posted by Moger at 2/2/2004 5:16:09 AM
This is a two parte
1. What to the performance differnace between a Class and a struct. I have a handler class which has a list containing a lot of instances of a class which purely holds data, All the operations are caried out within the handler, would I be better to use a strut instead
2. I ... more >>
Outlook Redemption
Posted by v_anushya NO[at]SPAM hotmail.com at 2/2/2004 5:15:21 AM
Which headers would exactly trigger security alert when i access a
mailitem? Heard that accessing mail item using redemption will be slow
and its better to read only headers that trigger security alert thru
redemption. Pls let me know which headers will trigger security
warning????
Anushya... more >>
How to open CD doors
Posted by midnighthell at 2/2/2004 2:42:30 AM
I'm looking for one sample (code) , how to make that doors of cdrom
(recorder, never mind) to be open on button press.
thanks...
... more >>
xml & xsl transform
Posted by Danny Lesnik at 2/2/2004 1:21:07 AM
Hi i have my XML file c:\prd.xm
<?xml-stylesheet type="text/xsl" href="prd.xsl"?><products><product><a>2</a><b>3</b></product><product><a>4</a><b>2</b></product></products
This is my XSL file
<?xml version="1.0" encoding="windows-1255" ?><xsl:transform
xmlns:xsl="http://www.w3.org/1999/XSL/Tr... more >>
Array question
Posted by Arjen at 2/2/2004 12:45:34 AM
Hello,
I want to make an array but I don't know the future size.
This can be 10 but also 100 elements.
How can I make an array... and just put in what I need?
After that I want to loop throug my array.
How can I do that?
Thanks!
... more >>
Alternative loop
Posted by Arjen at 2/2/2004 12:18:37 AM
Hello,
I'm doing the following.
IDictionaryEnumerator iter = Persons.GetEnumerator();
while ( iter.MoveNext() ) {
Person person = ( Persons ) iter.Value;
if ( person.SameAge( Age ) ) {
Persons.Remove( person.GetHashCode() );
}
}
Now I get an error.
The error says that I have c... more >>
|