all groups > c# > november 2003 > threads for sunday november 23
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
launching ie from compact framework
Posted by Rustam Asgarov at 11/23/2003 11:14:37 PM
Hi.
There was a thread about launching ie from windows form.
people suggested using System.Diagnostics.Process.Start();
But how can i do the same from compact framework.
I have to lauch IE on PDA (Pocket PC).
Thanks...
... more >>
treeview identical to windows explorer tree
Posted by srichter NO[at]SPAM autocoder.com at 11/23/2003 10:13:55 PM
in windows explorer, the nodes immed under the "my computer" root node
appear with a minimum of indenting ( the +/- square is directly
underneath the root node ). In the .NET TreeView control the indent
is shifted one more indent level to the right, wasting valuable
horizontal space.
How can... more >>
catching exceptions throm in an imported DLL
Posted by Sagaert Johan at 11/23/2003 9:26:39 PM
How do i solve the issue of calling an MFC dll function that throws an
exeption ?
i call the dll from a c# app.
Now i use an empty catch but this way i can't get any more information about
the thrown exception.
Maybe i need to remove the exception from my dll function and replace it
with an ... more >>
Office Add-In Menu
Posted by Jacques at 11/23/2003 9:04:24 PM
Hello,
I am creating a menu for an Office Add-in.
The menu displays OK. But, each time I run
the Office App (Word) it adds another menu
item.
The Word menu bar looks like:
File | Edit | View |.. | My Menu | My Menu | My Menu |..
Do I have to "Find" the menu item first, to see if it
ex... more >>
string number format
Posted by LW Irving at 11/23/2003 8:53:56 PM
when I use the snippet below
price = "$" + reader["start_price"].ToString() + " to $" +
reader["end_price"].ToString();
the price is returned with 4 decimal places
I thought I could do; reader["start_price"].ToString("C") to format the
string as currency and do away "$" + from the line
... more >>
Capturing mouse wheel events
Posted by Evgeny Zoldin at 11/23/2003 8:45:13 PM
Hi, ALL
Does anybody know how to capture mouse wheel events in C# occured on the
control that natively does not suppot them (e.g. MS Flex Grid)? I have code
hooks windows messages in VB6. I've translated it into C#, but it does not
work :-(
Any another idea?
Thanks
Evgueny
... more >>
populate a droplist with active directory users
Posted by James at 11/23/2003 8:42:24 PM
I was wondering if there is a way to populate a drop down
list with the active directory user? So far I have found
the namespace System.DirectoryServices but I am not sure
how to access the users and attach them to a droplist.
Thanks in advace for the help.... more >>
Initialising objects in an array
Posted by Mike Windsor at 11/23/2003 8:22:22 PM
This seems like a fairly basic thing to want to to, but as far as I can
tell, it's not possible. Can anyone help?
I have a class 'Foo' and I want to call the constructor with a particular
(identical) value for each object in an array of 'Foo's:
public class Foo
{
public Foo(bool val)
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
controling UI of a class
Posted by Aung at 11/23/2003 7:25:40 PM
I have two classes under the same namespace. something like this:
class1
~~~~~
namespace myProject
{
class myUI
{
public System.Windows.Forms.Label lblStatus;
.
.
.
}
}
class2
~~~~
namespace myProject
{
class logicStuff
... more >>
Serialization and Inheritance/Overriding problem
Posted by Mark Sizer at 11/23/2003 7:15:17 PM
Hi people,
I'm having trouble trying to achieve something in C# and win forms, and am
looking for a little advice if anyone has a moment.
I've got two classes:
1) a base class
2) a derived class that inherits from it
The base class is designed to hold data and only data.
The derived... more >>
Strange Error
Posted by Tamir Khason at 11/23/2003 6:43:48 PM
I recieve the very strange error while compiling project:
"object reference net set to the instance of the object" in line 0 !!!
The first lines in this .cs are
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using Sys... more >>
Panels
Posted by JJ at 11/23/2003 6:26:09 PM
Hi All,
I have 2 panels that have controls on them in a win
form. On Init of app I hide panel2 and show panel1, no
problem. On button Click I hide panel 1 and show panel 2,
panel 1 disappears but no panel 2 with controls showing.
Any idea what I might be doing wrong ?
Thanks,
... more >>
Is there any way to read PDF file?
Posted by 2003et at 11/23/2003 5:38:11 PM
I need to read PDF Files... I actually need the text itself inside the PDF
File....
Is there any C# component or class?
Thanks,
E.T.
... more >>
convert int to string
Posted by djozy at 11/23/2003 4:11:06 PM
Please,I am begginer,can you tell me which function
converts integer to string in C# and can you give me
correct syntax of it?
Thank you
..
... more >>
How to 'set' an environment variable?
Posted by Bill Davidson at 11/23/2003 3:04:33 PM
All:
I've found the 'Environment.GetEnvironmentVariable()' method; but how do I
create and/or set an environment variable?
Thanks,
Bill
... more >>
dynamicly running methods.
Posted by matt at 11/23/2003 2:58:50 PM
can i say store a method name in a database & then bring
it back & run it?
sort of like using the eval() in javascript?
i would prefer not to have a masively big switch
statement & instead store the relevent method name in the
database with the relevent record.
thanks in advance for ... more >>
textbox text to int error
Posted by Dave at 11/23/2003 2:31:13 PM
I can't get a number out of my textbox. it keeps giving me an error and
saying that the input string was not in the correct format.
this.number = int.Parse((this.numberTextBox.Text.ToString());
How do I get the number out of the text box if I only entered small positive
integers?
dave
... more >>
get current EXE file name?
Posted by Reginald Blue at 11/23/2003 1:49:14 PM
stupid question:
RemotingConfiguration.Configure("MyProject.exe.config");
(where the actual EXE that's built is named "MyProject.exe", of course).
is there any way to do that without hard coding it?
I tried:
RemotingConfiguration.Configure(null);
but then it doesn't read the config... more >>
simple textbox question
Posted by Mike at 11/23/2003 1:29:13 PM
If I have an application which has 1 form and that form
has 1 textbox. How can I make the cursor appear in the
textbox when the form loads? So a user can just start
typing and doesn't have to click on the textbox first.
Thanks for the reply.
Mike... more >>
Office Add-In problem
Posted by Jacques at 11/23/2003 12:47:19 PM
Hello,
I created a simple add-in. The add-in displays OK.
But, every now and then I will make a change and
the add-in stops displaying. I would remove the
potential offending code, but the add-in never
displays again, no error messages - nothing.
It's like the add-in no longer exists.
I h... more >>
c# network configuration
Posted by rustam asgarov at 11/23/2003 12:24:28 PM
Hi.
I using c# to develop application for PDA.
I need to tell system to renew its ip address from dhcp
server, but can not find any function to do this.
In visual c++ it is possible with iprenewaddress() function
which uses "ip helper" library.
Thanks in advance....
Rustam.
... more >>
User control Click Event handling
Posted by Tamir Khason at 11/23/2003 10:17:29 AM
I build user control, consists of different things (e.g label, image, etc.)
I want to handle click (and other) events, however I can not do it until I
do not assign event handler for each control inside me user contol. Is there
way to do this "smart" just inherit all possible events from usercont... more >>
Console in Windows Application
Posted by Pengyu at 11/23/2003 7:24:10 AM
Hi,
How to add a console window to a Windows application?
Thank you very much in advance,
Pengyu... more >>
A Form won't close
Posted by yuriy_zubarev NO[at]SPAM yahoo.ca at 11/23/2003 7:06:28 AM
Hello everyone,
I have main application form (child of System.Windows.Forms.Form) that
hosts quite a number of different visual components. Some time after
working with those components, the form refuses to be closed - I click
menu item that invokes Form.Close() method, I click 'close' icon on... more >>
Indexer does not show
Posted by Vera at 11/23/2003 7:03:53 AM
Hi,
I built a user control myPanel derived from the Panel
class.
In myPanel I added code for an indexer which looks like
this:
private Color[] mColor = new Color[10];
[IndexerName("Colors")]
public Color this [int i]
{
get
{
if (i < 0 || i >= 10)
return ... more >>
Structure
Posted by ArtPedUK at 11/23/2003 5:14:57 AM
I want to know if is possible I use on enumerator as a
datatype in a structure and If some one can send to me an
example that will be great.
Thank's
Artur... more >>
Getting the form that hosts a control
Posted by PromisedOyster NO[at]SPAM hotmail.com at 11/23/2003 4:38:20 AM
I have developed a series of user defined controls. These have been
placed on a variety of different forms.
From within one of these controls, I want to show another dialog
directly to the right of the current form (that contains one of this
particular control).
Therefore, what I am after i... more >>
mshtml HTMLFormElement events
Posted by Sunny at 11/23/2003 4:17:16 AM
Hi all,
dev. env.: VS.Net2003/C#
I have a windows form application with web browser control. I need to
capture the onsubmit event of the forms in the document in order to get
the values and log them.
I have tried this:
1.
this.current_page = this.mydoc.Document as mshtml.HTMLDocumen... more >>
Comment Web Pages and private methods...
Posted by Gawelek at 11/23/2003 1:36:38 AM
1. How can I prevent this tool from including in HTML my private methods ?
2. Wherer can I find any example of usage of see and seealso ?
Gawel
... more >>
|