all groups > c# > march 2007 > threads for wednesday march 21
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
[Q]Custom data types in C#
Posted by shofu_au NO[at]SPAM yahoo.com.au at 3/21/2007 11:59:20 PM
Hi Readers,
I am Pascal programmer who is converting a program to C#.
I would like know how to define the following data types in C#.
Q1. A data type that can have a range 1..13
Q2. A data typ that is 40 bits - aka a five byte array.
I wish to be able to declare variables with these ... more >>
link radio button to textbox
Posted by Peted at 3/21/2007 10:32:39 PM
I have 6 radio buttons in a column with a single line text box next to
each rb.
is there a general straightforward way to link a radio button to the
textbox next to it.
I want to be able to click on any of the rb in the column and from
that click derive the contents of the textbox next to i... more >>
Send SMS from .net application (API)
Posted by itarunachalam NO[at]SPAM gmail.com at 3/21/2007 10:20:00 PM
Dear Friends,
I am doing a new project in vb.net to send sms.
Could anyone have any idea to send SMS in VB.NET using developer API.
If you have any Idea , pls share. It will be very helpful to me.
Thanks in advance,
Arun
... more >>
Calling the function in one cs from another cs file
Posted by yasodhai NO[at]SPAM gmail.com at 3/21/2007 9:47:19 PM
Hi,
I have to call a function from one cs file to another. Kindly
provide me the link where I can go and search for the material
regarding this.
Regards,
Yasodhai
... more >>
Install directory
Posted by Johnny at 3/21/2007 9:09:38 PM
Hi all:
I just finished building a little test app, and now I am messing with the
"click-once" stuff to deploy the app. Does anyone know where I can set the
target directory for the deployment? I.e. where do I set the value to get
the app to install to C:\Program Files\My App (or whatever) ... more >>
Extrct image form Word
Posted by Ivo at 3/21/2007 8:57:53 PM
Hi,
can anybody tell me how to extract images from a word document?
thx
... more >>
Splitter control question.
Posted by JDeats at 3/21/2007 8:32:28 PM
I have a WinForm with three Splitter controls on it. The form divides
up in this order: Tab Control (docked to the left): Splitter1:
RichTextBox (docked to the left): Splitter2
After Splliter2 there is some empty space on the form where I have a
few button controls.
When the app starts the ... more >>
Reading method parameters
Posted by Edward at 3/21/2007 8:25:53 PM
Hi there,
The task is to log everything that comes to a single method and what
goes out. It has to by generic in the way that this thing should by
pluggable to every method no matcher what kind of in out parameters does
this method have. I want to by able to log parameter name, parameter
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Word & C#
Posted by Bllich at 3/21/2007 6:17:31 PM
hello,
I have winForm app and I have some text and pictures that I
want to save into a word file when I read it from a database.
I don't know how many text or pictures do I have for one
value in a database, it varies from record to record..
I've seen some classes on the net, but I want to u... more >>
ArrayList.Sort not sorting properly
Posted by djp at 3/21/2007 5:38:25 PM
Hi
I have to sort arraylist. I tried to do this using this page as a reference:
http://www.java2s.com/Code/CSharp/Collections-Data-Structure/UseIComparer.htm
I did it exactly the same way but unfortunately in opposite to the example
from this link here it does not sort.
I Create Nodes ( colo... more >>
Are multiple events expensive?
Posted by Bob at 3/21/2007 5:31:31 PM
Hi,
I have a newbie question on event listening. I have a form that is
monitoring progress in an application. The application consists of
many classes, multithreaded, etc. The form listens for events on the
main executing class, which in turn listens for events on classes it
uses, etc, so that... more >>
Fonts Folder
Posted by news.microsoft.com at 3/21/2007 4:59:27 PM
Hi,
Is there any way to get the Windows Fonts folder from C#?
Regards,
Mystique
... more >>
Topmost Form, but INSIDE the application ?
Posted by TheSteph at 3/21/2007 4:44:53 PM
Hi,
I would like to show a "CustomDialog" Form on top of any other forms INSIDE
my MDI application. BUT this "CustomDialog" Form should NOT be on top of
other applications. So "TopMost=true" is not what I want, because when the
application is minimized or send in background my "CustomDial... more >>
Bizarre C# behavior
Posted by BA at 3/21/2007 4:41:36 PM
Hello,
I have a very strange code behavior that I cannot make heads or tails of:
I have c# code being executed in BizTalk assemblies which is acting very
strangely.
In my BizTalk process I call a static method:
public static string ValidateMessage(params...)
When I call this metho... more >>
Howto: Programmatically serialization Entry Method Parameters ( their values ) ?
Posted by Pawel at 3/21/2007 4:10:01 PM
Howto: Programmatically serialization Entry Method Parameters ( their
values ) ?
See example below:
public static void C(string Code, string Name) {
// i will dynamic (programmatically) serialization method entry parameters -
( their values )
StackTrace t = new StackTrace(tru... more >>
"Error with resources file needs to be fixed"
Posted by sklett at 3/21/2007 3:14:41 PM
I've got an application that has been installed and operating for over a
year at an offsite location. The source code has since been lost (building
fire). I wrote the application and I don't ever remember creating a message
like "Error with resources file needs to be fixed" - This message is... more >>
Data Formatting Expression
Posted by RitaG at 3/21/2007 2:58:23 PM
Hello.
I could not find a Web discussion group (only saw Web Services) so am
posting my question here. I have a C# Web application that has a form with a
datagrid. One of the columns of the data grid is filled with a column from a
table that is varChar(500). I only want to display the first... more >>
DataTable.Select strings
Posted by Arlyn_L at 3/21/2007 2:49:00 PM
Is it possible to select with a string value containing an embedded ' (single
quote)?
Is there an escape cahracter for this situation?
How can the escape character be inserted?
such as: string filter = "Field = 'John's dog'"
--
Arlyn_L... more >>
Object Argument
Posted by Alex Sauceda at 3/21/2007 2:47:37 PM
Hi,
I'm trying to create a procedure like this one:
protected Boolean test(object C, string id) {
if (C.FindControl(id) is Label)
{
return true;
}
}
I'm getting this error "Error 1 'object' does not contain a definition for
'FindControl' "
T... more >>
managed c++ calling c#: how to delegate?
Posted by Andreas Reiff at 3/21/2007 2:46:42 PM
Hey!
I have a managed c++ app (actually, the app is mixed managed/unmanaged, but
this happens in the managed part) that dynamically generates some program in
c# (with CSharpCodeProvider).
The problem now is that somehow I get runtime errors when trying to pass a
function (via delegates) ... more >>
Process
Posted by Chris at 3/21/2007 1:53:10 PM
I am using the following code to see if a process is currently running. I
want to do something if it is NOT running. I am having trouble testing the
array when no process is runing. Null won't work. Any ideas?
// is process currently running in case someone closed it manually
... more >>
Class construction
Posted by fredd00 at 3/21/2007 1:34:03 PM
Hi
I would like to create a class that could give me a null item from the
contructor.
let me explain
let's say i want a foo object of id 123 from the database
public foo(int 123)
{
// look in database
item found, assign values to private variables, return object
// not ... more >>
Determining Debug vs Release Mode at compile time
Posted by WizyDig at 3/21/2007 1:29:18 PM
We have been trying to detirmine if a dll is compiled in Release or Debug
mode after it is compiled. I found serveral methods using reflection but
when test they all seemed to fail. Is there a way to detirmine if a compiled
assembly was compiled in Debug or release mode. We would like to ad... more >>
control's Dock property = Fill: fills entire form regardless of other 'Dock's.
Posted by Zytan at 3/21/2007 12:27:48 PM
I just wanted a little practice with the WebBrowser control, so I did
the VB guided tour example here in C#:
http://msdn2.microsoft.com/en-us/library/a08t4ke7(VS.80).aspx
The tutorial asks to put a Panel with a Button and TextBox in it, and
a WebBrowser below it. Then, it sets the Panel's Dock ... more >>
StreamWriter loses format of existing text?
Posted by Duckwon at 3/21/2007 12:25:31 PM
Hello,
My code is suppose to write to an existing file. But after my C# code
appends the file, the previous text loses all the endline characters,
becoming one long line. How can I retain the formating of the pre-existing
text?
FileStream stream = new FileStream(strFileName, FileMode.App... more >>
Watch hundreds of TV channels online!
Posted by Vinster at 3/21/2007 12:13:30 PM
http://www.online-television.tv
If you go to genre you will find all sorts of goodies like films,
there is a good selection. Also Webcams, watch different cities
highway cams, all sorts of interesting stuff there including Loch
Ness,,, you might even see the loch ness
enjoy have fun.
... more >>
Computing Platform!
Posted by Vai2000 at 3/21/2007 11:42:21 AM
Guys needed real life feedbacks?
Intel over AMD...Just bought an Inspiron 1501, AMD Turion 64 x 2 TL-50
(1.6GHz/512KB) for experiencing the Vista Development...esp. 3D Aero, 64
bit development WCF etc...
Should I get an Intel instead?
TIA
... more >>
How to associate an object with an unbound DataGridView row?
Posted by Richard Lewis Haggard at 3/21/2007 11:41:38 AM
How can an object be associated with an unbound DataGridView row? I want to
be able to always get from a row to an object and from an object to a row
but it is not obvious to me how such an association can be forged.
--
Richard Lewis Haggard
www.Haggard-And-Associates.com
... more >>
Creating an MTP application
Posted by Samuel Pickard at 3/21/2007 11:26:16 AM
Morning,
I'm writing an application in C# (VS2003 currently) and I've got a new
requirement to sync files to an MTP device. I can't seem to find a
component (either COM or .NET) which I can use for MTP. Can someone
push me in the right direction?
Thanks... more >>
Constructor chaining order
Posted by Deckarep at 3/21/2007 11:12:29 AM
Hey everyone,
I like using the technique of constructor chaining in other
languages. But something that tricks me up is the fact the whatever
constructor you specifiy to call from one constructor always gets
called first.
So for example:
private int myPrivateInt = 0;
public Construc... more >>
Smooth scroll of a DataGridView cell with large amount of data
Posted by Richard Lewis Haggard at 3/21/2007 11:04:13 AM
I have an unbound DataGridView control that has some cells that may contain
more multi-line text than can be completely displayed in the available
screen space. When the height of its row to exceeds the DataGridView's
height, it becomes impossible to view the out of sight portion of the row.
... more >>
Can't find a parameter?
Posted by Constantine at 3/21/2007 10:38:50 AM
Hello,
I have developed an application to run on windows mobile 5.0 handheld units.
I have a hosting platform that runs in a .NET environment. The application
is written in C#. It interfaces with Siebel's CRM OnDemand System.
I exchange data with another server via SOAP requests via Web Servi... more >>
C# CSharp Reset Struct Class Memory
Posted by Sheikko at 3/21/2007 10:27:41 AM
Hi,
I have a class, cerated like a struc for some reasons, and I want to
reset all values in it.
public class MyClass
{
public byte Channel;
public byte SatelliteID;
public byte SyncFlags;
public byte PhaseErrorCount;
}
After filling the ... more >>
Exception when databinding object with date to a datetimepicker.value
Posted by Kevin at 3/21/2007 8:46:07 AM
I have put a VS2005 sample project up here:
http://www.kevinandkiran.com/CSharpApplication.zip (its only 50k)
Basically I have a class that contains a date property, which is
initialised to 1/1/1970. I create a project datasource from this and
then drag my class onto my form which binds my pr... more >>
Problem calling XML (non-SOAP) web service with C#
Posted by jumpinjavabean at 3/21/2007 8:38:26 AM
I am trying to call an XML (non-SOAP) web service with C#.
I was provided with a request schema by our web services team, and I
generated a CLR class for it using XSD.exe.
When I instantiate this schema class and try to set a property on it,
however, I get the following error:
Object refere... more >>
problem in raising privilege level using manifest resource
Posted by erajaysharma NO[at]SPAM gmail.com at 3/21/2007 8:31:32 AM
This issue is in Vista.
I used XML files(one for DLLs, other for EXEs) ane embeded them in my
EXEs and all DLLs ....actually i want to spawn a third party setup
from found new hardware...but an error message is shown "illegel
value: requestedrunlevel"
and setup failed to spawn... Someone pleas... more >>
what exceptions do abstract classes (WebRequest) throw?
Posted by Zytan at 3/21/2007 8:21:20 AM
I know that WebRequest.GetResponse can throw WebException from
internet tutorials. However in the MSDN docs:
http://msdn2.microsoft.com/en-us/library/system.net.webrequest.getresponse.aspx
It only lists NotImplementedException in the Exceptions section.
(Note that it does mention WebException i... more >>
Enumerating user from remote computer
Posted by Tracid83 at 3/21/2007 8:13:04 AM
Hi, I would like to enumerate user from remote computer connected to
network. I don't use wmi service because all service necessary don't
start. I just know IP address and Netbios name.
Do you know to find them?
Thanks for your help.
... more >>
SQL problem: scope_identity() returning dbnull in insert statement.
Posted by Martin Z at 3/21/2007 8:07:30 AM
INSERT INTO dbo.Transmission
(TransmissionDate, TransmissionDirection,
Filename, TransmittedData)
VALUES
(@TransmissionDate,@TransmissionDirection,@Filename,@TransmittedData);
SELECT @retVal = SCOPE_IDENTITY();
Pretty simple. There is an additional TransmissionID colum... more >>
property for an array field
Posted by Zytan at 3/21/2007 7:51:48 AM
Classes should have private fields, and they should be accessed
through properties. But what if the field is an array? I know you
can use an indexer to use [] syntax on the entire class itself, but
what about using the [] syntax for a property that hides a field that
is an array?
Is this po... more >>
Dynamically changing the ID of a control
Posted by Dunc at 3/21/2007 7:32:14 AM
I've got a c# app, and in the HTML in front I have a <div> tag around
some navigation controls, and I want to dynamically change it's ID so
the CSS kicks in and highlights the currently selected option.
Problem is - when you set an ID, it prefixes it with ctl0_ on IIS 5.1
(Windows XP - our dev... more >>
Dictate Packet Routing
Posted by jgretz NO[at]SPAM gmail.com at 3/21/2007 7:03:06 AM
Background:
My program connects to an external web service. Normally this is done
over a high speed lan connection, but in the event that the lan is
down, it supports using 1 or many dial up connections to connect to
the web as well. As a side note, the machine is on a network, so the
lan wil... more >>
Inherited ToolStripMenuItem/WinForms Form Designer problem
Posted by F5F5F5 at 3/21/2007 6:50:38 AM
I have created a control by inheriting ToolStripMenuItem that has an image
property called LargeImage.
------
public class EventSubMenuItem : ToolStripMenuItem
{
private Image _largeImage = null;
[DefaultValue(null)]
[Localizable(true)]
public ... more >>
List of enumerators?
Posted by A.B. at 3/21/2007 6:39:30 AM
Hi,
I have various lists I want to go through, at different paces and I
want to control that with a list of enumerators.
I have the following:
List<List<DataEntry>> mydata = new List<List<Data>>();
List<List<DataEntry>.Enumerator> myenums = news
List<List<Data>.Enumertor>();
I do
myenu... more >>
string copying
Posted by dani kotlar at 3/21/2007 4:10:00 AM
Is there a function that copies between string (or stringbuilder)
objects, while filtering out certain types or designated characters,
or leaving a certain typa of designates\d characters? For example, I
want to copy only the alphanumeric characters, or I want to copy a
string without the spaces... more >>
BinaryWriter not converting strings to binary
Posted by testrasbath NO[at]SPAM gmail.com at 3/21/2007 4:07:17 AM
Why strings are not getting converted to binary form, even if we use
BinaryWriter for writing to a file?
Which is the similar technique in c# as ifstream(filename,
ios::binary) in C++?
My Code:
int version =3D 1024;
string loginname =3D "test";
string password =3... more >>
ThreadStart parameters
Posted by Mike P at 3/21/2007 2:18:38 AM
How do you pass your parameters to the method you have specified for the
threadstart?
System.Threading.ThreadStart thdStart = new
System.Threading.ThreadStart(MoveMail(new object[] { progress, oItems,
destfolder, objConn });
Where MoveMail has the following parameters :
... more >>
IPropertyChanged implementation, best practice
Posted by TEK at 3/21/2007 1:53:02 AM
Hello
I'm having some questions regarding the implementation of
IPropertyChanged interface.
Status:
I have the basic stuff up and running, and on every property change I
get a call to my OnPropertyChanged method with the correct property
name.
Now I have two situations I'm interested in... more >>
How to invoke external application through ASP.Net web application
Posted by sandy at 3/21/2007 1:31:38 AM
Hi,
I am trying to invoke an external email management
program from my ASP.NET web application. For testing
purposes I created a very simple webform that has a
single button. The code behind has the following:
Sub btnGo_Click(ByVal sender as System.Object, ByVal e as
System.EventArgs) Ha... more >>
A question
Posted by robert khaldar at 3/21/2007 12:35:27 AM
Iwant to record my voice through Line-In Microphone
by C#.Net.
please help me thx alot
*** Sent via Developersdex http://www.developersdex.com ***... more >>
threading in winforms and the timer control
Posted by Peted at 3/21/2007 12:00:00 AM
Just some threading questions
1. in a MDI app if you have multiple child forms, does each child
form run in its own thread ? Eg do you get error trying to update one
control on form1 from form 2
2. if you have a timer control running on a childform, and you either
a. minimize or
b. ... more >>
DROPDOWN SELECTEDINDEX PROBLEM
Posted by in da club at 3/21/2007 12:00:00 AM
I have a datagrid and a dropdown in my page. I want to fill dropdown with my
pagenumbers. When a user change the dropdown selected index i wnt to display
the result on label1. Anytime i change the dropdown index it returns zero ..
What is the problem ?
private void Page_Load(object sender, ... more >>
|