all groups > c# > march 2004 > threads for saturday march 13
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
MainMenu in MDI form
Posted by Mark Rae at 3/13/2004 11:10:35 PM
Hi,
I have an MDI Windows app, and have created a menu for the MDI Container
form to open child windows etc. I used the MainMenu Designer from the
Toolbox to create the menu. I have attached it to the MDI Container form by
setting the Menu property in its Properties window. The menu displays
... more >>
Multilingaul support
Posted by faktujaa at 3/13/2004 10:31:05 PM
I want to make our application support multiple languages. I have gone through many articles which only describes about making ur application display user interface data in different languages using Globalization, and Rsources namespaces
But my main problem is how to handle the user input data. If ... more >>
How do you perform a Printer setup procedure and a Print?
Posted by Harry J. Smith at 3/13/2004 9:44:28 PM
My last post had a wrong From field. Should have been Harry J. Smith, not
news.west.earthlink.net, So I will repeat my lead-in.
I have been studying the book "Microsoft Visual C# .NET Step by Step" and am
now trying to develop a program in C#. I have some questions partially
because I do not h... more >>
How to convert numeric fields in an input line?
Posted by news.west.earthlink.net at 3/13/2004 8:56:35 PM
I have been studying the book "Microsoft Visual C# .NET Step by Step" and am
now trying to develop a program in C#. I have some questions partially
because I do not have the MSDN Library with the help files.
How do you convert numeric fields in an input line like
string line = "123 456 7... more >>
problem with if-clause and a problem with response.redirect
Posted by Roel at 3/13/2004 8:10:17 PM
Hello
I'm having two strange errors in a webapplication I'm developping.
Error one:
If have an IF-clause. When the expression is true, the program does not only
executes the if-part, it also executes a part of the else clause...
Error two:
When the if clause is true, I redirect the user ... more >>
pocket pc game
Posted by Jessica Yeoh at 3/13/2004 6:52:01 PM
Hello,
I'm a beginner,and i would like to develop a game for pocket pc devices.What
language is suitable to develop such an application?Does anyone have the
tutorial or source code on game for beginner?
Thank You
... more >>
Process RedirectStandardInput
Posted by Joe at 3/13/2004 6:31:06 PM
i still dont understand i
i read it in the msdn &i steped into the cod
what i didnt understand is the
myStreamWriter.Close()
statmen
Can anyone give another tutorial or sample? or explain the logic part in here
Thanks Professional
:)... more >>
Please help compiling nested try/catch blocks
Posted by Manfred Braun at 3/13/2004 6:24:29 PM
Hello All,
I am trying to find out some error conditions in writing to the eventlog
remotely. To check the possible errors, I wrote a simple class which uses
nested try/catch-blocks which compiles fine until I add the
EventLog.CreateEventSource("test", "Application", "m1"}; [marked in t... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Iterating through file
Posted by Jerry S at 3/13/2004 5:40:18 PM
Hi
I've got a text file which is a list of names (one name per line). I
don't know in advance how many names (lines) there are in the file.
What's the easiest way to iterate through the file, doing something
with each name?
Is there a "while file not ended" type command? (I understand abo... more >>
Beginner TabControl question
Posted by Trevor at 3/13/2004 5:03:44 PM
I am making a "switchbar" similar to mIRC & Visual Studio .NET. It is
basically a TabControl docked at the top of a MDI container. There is a
corresponding button for each MDI child form in the MDI container. The user
can click on a tab in the TabControl to activate that MDI window. I hav... more >>
converting data-access type long to ???
Posted by G.Esmeijer at 3/13/2004 4:29:25 PM
Friends,
I would like to read an Access database with somefields of type long.
I know that reading an integer goes fine with:
modelcode = sdrSC.GetInt32(sdrSC.GetOrdinal("MODELCODE"));
But what if the modelcode is of type long?
Regards Gerrit Esmeijer
... more >>
Substract enum
Posted by Robin Theilade at 3/13/2004 4:08:36 PM
Hi,
I am having trouble substracting an enum "value" from an enum instance eg.:
Keys keyStates = new Keys();
keyStates |= Keys.Left;
keyStates |= Keys.Right
keyStates -= Keys.Left // here is the problem
I know that it doesn't work with -= but it does illustrate what it is that... more >>
Form border style and Windows taskbar
Posted by glvs NO[at]SPAM hotmail-dot-com.no-spam.invalid at 3/13/2004 3:30:19 PM
I changed the form border style to FixedToolWindow. According to MDSN
document, this will prevent creating an entry in Windows taskbar but
it still creates it. How can I make pop-up forms (dialogs) display
without entries in Windows taskbar.
Thanks,
Glenn
Posted Via Usenet.com Premium U... more >>
Get The Outlook Sender address
Posted by James at 3/13/2004 3:22:41 PM
Hi there, I'm using c# to retrieve mail messages from outlook. However, i
have a problem of getting the sender's e-mail address. At present i can get
the sender's name but not e-mail address.
below is the code i'm using. can somebody please explain how to get the
sender's address?
Thanks
... more >>
TextBox scrolling
Posted by Vanessa at 3/13/2004 3:19:46 PM
Is it possible to display text in a textBox
scrolled to the end, as and when it is displayed,
so the user always sees the last text first?
If so, please tell me how to do that.
... more >>
Update Statment what am i doing wrong
Posted by Ivan Sammut at 3/13/2004 2:49:58 PM
I have the following code but I cannot get it to work. there is no =
problem with the database connection.
String sLabel =3D "Ivan"
oConn.Open();
OleDbCommand oCmd =3D new OleDbCommand("Update category set =
category.desc=3D@label where category.code=3D@code",oConn);
oCmd.Parameter... more >>
read/enter text based on cursor position
Posted by molivier NO[at]SPAM caregroup.harvard.edu at 3/13/2004 2:39:03 PM
Greetings.
Would anyone know the right direction to point me on this one?
I need to read text from a Windows Application based on cursor
position.
And enter text based on what is read.
Example:(the interface of the windows application would look something
like this.)
-----------------... more >>
Finding Directory of Project
Posted by Keith La Force at 3/13/2004 1:51:09 PM
Hi, is there a way to get the directory of the current C# Project to be used for by an addin. When I do the Directory.getCurrentDirectory(), it sends back a reference to the IDE (C:\Program Files\Microsoft Visual Studio.NET 2003\), but I want the path to the current project, such as D:\VS.NET Proje... more >>
appSetting Parameter
Posted by Grey at 3/13/2004 12:53:00 PM
I want to set an entry in the application configuration file to set the =
DB path ConnectiongString. What is the configuration file of windows =
application of C#..and how to set it??
Also, how to retrieve the value in C#... more >>
asserting an assembly's strong name
Posted by Rea Peleg at 3/13/2004 12:46:18 PM
Hi All
My application need's to check its assemblies strong name, prior to using
them.
Is there a way to get an assembly 's name,culture,version and key attributes
without loading it first??
I know this information can be retrived from a web application configuration
file,
but I would like ... more >>
format date
Posted by Selen at 3/13/2004 12:43:20 PM
I use Calendar asp.net(c#).It gives me Calendar.SelectedDate.Date is string
I convert it to datetime with Convert.toDateTime but Sql server give me
error...
The conversion of a char data type to a datetime data type resulted in an
out-of-range datetime value. The statement has been terminated.
... more >>
GetFolderPath Problem
Posted by Bryan Tang at 3/13/2004 12:17:49 PM
Dear all professional,
I have problem. the 1st statement can return the path of Windows system
folder however the 2nd statement doesn't return the path of "Favorites". Why
this will happen? Any solution?
public string myFavorites =
Environment.GetFolderPath(Environment.SpecialFolder.System)... more >>
GC (programming style question)
Posted by Vladimir at 3/13/2004 11:22:21 AM
SGVsbG8sIEFsbCENCg0KV2hlbiBJIHNob3VsZCBjYWxsIEdDLkNvbGxlY3QoKSB0byBmb3JjZSBn
YXJiYWdlIGNvbGxlY3Rpb24/DQoNClJlZ2FyZHMsDQpWbGFkaW1pci4NCg0KV2luYW1wIDUuMCAo
bm90IGFjdGl2ZSk=
... more >>
Condition Compilation
Posted by Vladimir at 3/13/2004 11:21:07 AM
SGVsbG8sIEFsbCENCg0KQXJlIHRoZXJlIGFueSBjb25kaXRpb24gY29tcGlsYXRpb24gZGlyZWN0
aXZlcyBpbiBDIz8NCg0KUmVnYXJkcywNClZsYWRpbWlyLg0KDQpXaW5hbXAgNS4wIChub3QgYWN0
aXZlKQ==
... more >>
converting long in Access to ????
Posted by G.Esmeijer at 3/13/2004 11:14:21 AM
Friends,
I have an existing access database with fields of type long.
How do I read these into my application
Reading an field Modelcode of type integer works fine with the following
line of code
modelcode = sdrSC.GetInt32(sdrSC.GetOrdinal("MODELCODE"));
How to handle if if the type is n... more >>
How do I set the hourglass?
Posted by BoomBoom at 3/13/2004 7:01:57 AM
I can't seem to locate the property for setting/resetting the cursor
hourglass. Can someone tell me what it is?
... more >>
Listview subitem sorting..
Posted by Per Rollvang at 3/13/2004 6:07:48 AM
Hi All!
Why have subitem sorting been removed? Or maybe not? Am I missing something?
Anyone?
------------
Per Rollvang
... more >>
java and C# dll
Posted by Ching-Lung at 3/13/2004 4:41:06 AM
Hi
Does anyone know how to load C# dll (or .NET dll) in Java
Thanks
-CL... more >>
static class members and LNK2001 error
Posted by Jiaxin Deng at 3/13/2004 3:29:56 AM
Who can tell me why? I am trying to declare a static class memeber of a
CDialog object. The purpose is to store the input data in a static
Vector object and therefore make it independent of the dialog object.
The program compiles without problem, but VC6 compiler reports a link
error during the ... more >>
byte[] to int
Posted by J M at 3/13/2004 2:57:17 AM
How do i convert following fixed byte array:
byte[] b = new byte[]{ 00, 00, 00, 09}
to integer 9????
I tring BitConverter.ToInt16(b, 0) but does not work
Also I tried following but does not work:
byte[] c = new byte[] { 00, 64}
I am not able to get 100 as output.
TIA!
... more >>
|