all groups > c# > february 2005 > threads for friday february 18
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
RichEdit with html
Posted by P at 2/18/2005 11:55:19 PM
Hi.
I am writting application and I need html richedit.
When I will use:
control_name.text="<img sroc=\"1.jpg\">" I wanna have image in richedit.
But I dont know where can I find that control.
... more >>
how can I get an array from another form
Posted by Tim Geiges at 2/18/2005 11:44:38 PM
I need to be able to read a listview of items from my main form into
another form
I am trying to make an image viewer(which works so far) but want to add
a way to right click and select "next image" and have it get the name
of the next item from the Main form, or maybe a slide-show
any help... more >>
Web & Email links in app
Posted by Paul Aspinall at 2/18/2005 11:14:36 PM
Hi
I want to put some links to the web, and e-mail in my app.
I want to have a 'Visit website' option on a menu. How can I force another
IE window to start, and go to a webpage?
Also, I want a 'Contact' option.... from here, I want the app to start a new
e-mail message (to work on any cli... more >>
creating drawing canvas with ruler
Posted by billy at 2/18/2005 10:34:29 PM
I'm working on a sort of paint program that has the usual canvas pane in the
middle of the main form. I'm working on that class and have a couple quick
questions.. actually more like I'm looking for opinions.
1) I want a ruler running along from top left to top right and from top left
to bo... more >>
number of decimal places
Posted by yo_mismo at 2/18/2005 9:03:10 PM
Hi all,
how can i get a number with only 3 decimals?
i'm trying this but doesn't work:
(number_1*number_2).ToString("####.000")
i don't know how to use very well 'ToString()'.
what's the diference between 'ToString("####.000")'(4 #'s) and
'ToString("#####.000")' (5 #'s)
thanks
... more >>
Problem installing Visual C# Express
Posted by Dave Hardenbrook at 2/18/2005 8:21:54 PM
Hello --
I have been learning C# using the open source IDE SharpDevelop, but I
felt I needed a source debugger... So I left my PC all night to download
Visual C# Express. This morning I restarted my system as it advised,
and after the hard drive chugged away for about half an hour, the set... more >>
DbManager Class
Posted by freddy at 2/18/2005 7:51:02 PM
I have a DbManager class that has all my connect stuff like connecting to the
bd and inserting data, but for some reason when I call the insert coammand
for the DbManager class I get A Method 'Network_Inventory.DbManager.Insert()'
referenced without parentheses
Here is my DbManager Class co... more >>
IspostBack Problem
Posted by Mathana g at 2/18/2005 6:17:47 PM
Hi,
I have snippet as follows
if(!IsPostBack)
LoadPreRequisites();
I am getting IsPostBack as true even the page loads first time. What might
be the problem
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Is there a upper bound limitation on ArrayList in C#?
Posted by Quentin Huo at 2/18/2005 6:11:20 PM
Hi:
I need make a calculation from database and the result may have 20,000,000
records which format is just a string. Can I add them into an ArrayList
object one by one? Is there any upper limitation on ArrayList object?
Even there is no limit, I don't think this is not a good solution. It... more >>
copy directory
Posted by Abhishek at 2/18/2005 6:10:15 PM
Hi!
I need to copy my directory (and all its sub directories ) a different
location.
Is there any simple way out to do it.
Presently i am doing it thru recursion and copying files one by one and
creating directories as and when necessary
I need to copy the files from one destination to another... more >>
Suspend ComboBox SelectedIndexChanged event
Posted by Joe at 2/18/2005 5:25:49 PM
I need to suspend this event while I change the SelectedItem property. I
can't have the event be fired in this case because the event will cause the
same method to be called again.
Is there anyway to do this without doing a -= to the event and resetting it
after?
... more >>
Method Name Expected Error
Posted by Jeff Johnson at 2/18/2005 4:49:44 PM
I'm getting a Method Name Expected error when I try to compile.
The error happens here:
imgImage.Click += new ImageClickEventHandler(updateColours("X"));
Can someone tell me what I'm doing wrong?
Thanks,
JJ
... more >>
Can I modify pointer to an Object which is passed into a class?
Posted by TZ at 2/18/2005 4:32:14 PM
I have two classes, UIHousehold and WIZEditHousehold (both are
winforms).
UIHousehold creates and shows the WIZEditHousehold (WIZEditHousehold
can't be modal, so UIHousehold doesn't know when WIZEditHousehold
closes).
A reference to a buffer within UIHousehold is supplied (passed by REF)
t... more >>
How to change mouse cursor of a process?
Posted by Tee at 2/18/2005 4:06:32 PM
Hi,
From my main form, I am executing another application using
System.Diagnostics.Process.Start.
The application has its own window displaying when the applicaiton is run.
I want to change the cursor to a hourglass. But I only can change my own
form's cursor using Cursor.Current, whenever ... more >>
Equivalent of the C++ "friend" class modifier
Posted by freddrick_flintstone NO[at]SPAM yahoo-dot-com.no-spam.invalid at 2/18/2005 3:41:36 PM
Is there such a thing in C#?
I know of the
internal
class modifier, but I want to grant "friend"-like access to a
particular class from a different assembly. The reasons why I need
this are long an involved, and the company I work for won't budge on
the issue, so I need to find a way to mak... more >>
DataGrid with Scroll Bar
Posted by Mathana g at 2/18/2005 3:32:21 PM
Hi ,
I need ur help to have a scroll bar in web datagrid.
... more >>
Generics and delegates
Posted by MP at 2/18/2005 3:32:17 PM
Hi,
I am using VS 2005 and I am trying to write a Generic class to fire
asynchronously the remoting events from a server.
I declare the generic like so...
public class AsyncEvent<Del> where Del : Delegate
and I get this error... 'Constraint cannot be special class
'... more >>
How to take advantage of managed newsgroups (like this one)
Posted by Daniel Billingsley at 2/18/2005 3:26:00 PM
I'm an MSDN universal subscriber. I previously had my email alias set up
such that I always got responses when I posted here. Apparently something
has changed. I went to the MSDN subscriber site and thought I had set up
what they're now calling the anti-spam address, but I'm still being ignore... more >>
declare variable in base class that must be set in dervied class?
Posted by John B at 2/18/2005 2:59:03 PM
I have a variable in a base class defined as:
protected Control validationControl;
How can I ensure that it is set is any dervied classes. I see that you
cannot set variables to abstract.
Thanks
----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://... more >>
Programming C# 4th Edition (for C# 2.0) now available
Posted by Jesse Liberty at 2/18/2005 2:58:45 PM
-- This is a one time announcement. I apologize in advance if it is an
inconvenience --
I am proud to announce that my best selling book Programming C# is now in
its 4th Edition, fully updated for C# 2.0, .NET 2.0 and Visual Studio .NET
2005.
You can read all about this new edition, see... more >>
.NET N-Tier development
Posted by Laxmikant Rashinkar at 2/18/2005 2:46:15 PM
Hi,
I would like to start learning about developing .NET N-Tier application
development.
can anyone give me any pointers on where to start?
Recommendation on Links, books to read etc would be very useful.
thanks a lot
LK
... more >>
send e-mail
Posted by Hrvoje Voda at 2/18/2005 2:45:35 PM
I would like to call Microsoft Outlook and put my e-mail address into To: .
All that through code.
Hrcko
... more >>
How can I use this method please (IBidiRequest)?
Posted by trint at 2/18/2005 2:28:04 PM
How do I get these to work in my c# applications?
I need to use all of the following methods:
SetSchema
SetInputData
GetResult
GetOutputData
GetEnumCount
Here is the msdn site that explains them:
http://whidbey.msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/prntspol_5hdg.asp... more >>
Beta 2 Release Date? When?
Posted by Dude at 2/18/2005 2:03:02 PM
Anyone have an idea when Beta 2 of C# Express 2005 will be out??... more >>
How to use: Microsoft MSDN Express Library 2005 Beta
Posted by JM at 2/18/2005 1:57:03 PM
I've installed the Microsoft MSDN Express Library 2005 Beta and it looks OK.
How does one access this library? I can't seem to figure that one out! It
has to be simple?... more >>
using in and as with a struct
Posted by Craig at 2/18/2005 1:13:04 PM
How can you get a custom struct to work with the "in" and "as" keywords, for
example, (myObject is myStruct).....see full code example below....
private void CreateArray(ArrayList myArray)
{
ArrayList newArray= new ArrayList();
foreach (object item in myArray... more >>
Reading the phone number of incoming call on ISDN modem
Posted by Jaroslaw Sos at 2/18/2005 12:27:08 PM
Hello,
I would like to implement a small program that shows me the phone number
(if sent by the provider) of the calling person. My computer is
connected to the phone through an ISDN card. It's the same feature
I already have on my phone display :-).Is there a way in c# to acomplish
this?
... more >>
Date Comparison Question
Posted by MarkAurit at 2/18/2005 12:19:02 PM
Im having difficulty coming up with a good algorithm to express the following
comparison:
"if <a given date> falls between the (current date - 5 days) and the
(current date)"
Obviously. DateTime.Now and something like (AddDays(DateTime.Now,-5) are used
for the inner and outer ranges, its how... more >>
Reading arrays from a stream
Posted by Stefan L at 2/18/2005 12:01:57 PM
Hi Everybody,
I want to read an array of doubles from a BinaryReader.
Therefore I have the following loop:
int size = r.ReadInt32();
double[] values = new double[size];
for (int i = 0; i < size; i++)
values[i] = r.ReadDouble();
But this is unbelievable slow compared to reading th... more >>
hDC lifetime
Posted by Chuck Bowling at 2/18/2005 11:50:58 AM
Does the device context handle for a graphics device change during the
lifetime of the underlying object?
I'm asking because I ran across some code that stores the hDC in the class
rather than call Graphics.GetHdc in the OnPaint method.
... more >>
static reference to a web hosted assembly in VS
Posted by Wiktor Zychla at 2/18/2005 11:44:58 AM
Hello,
I hope this is a simple issue.
Suppose I place an assembly under the IIS virtual directory. The
assembly is easily accessible via:
Assembly a = Assembly.LoadFrom(
http://hostname/virtualdirectory/myassembly.dll );
However, when I try to bring a Add Reference dialog in ... more >>
Finding Windows path?
Posted by VMI at 2/18/2005 11:40:45 AM
How can I find the Windows path? I tried using Environment.SystemDirectory
but it returns c:\windows\system32. Is there something that only returns
"C:\Windows"?
What I'm trying to do is copy a font to the Windows\Fonts directory so that
my application can use it.
Thanks.
... more >>
IDisposable with an abstract class?
Posted by bubby at 2/18/2005 11:40:00 AM
I have a database interface class (an abstract class) that has two
derived classes that work with two different types of databases. If
the dervied classes have managed, and unmanged resources and the base
(abstract) class doesn't, how do I implement the IDisposable interface?
Do I have the bas... more >>
OO question
Posted by Frank at 2/18/2005 11:33:24 AM
Hello,
how should I do this?
Class X
classes A, B and C inherit from X.
A,B and C are basically the same with the exception of 1 routine that is
different for each class and is used by several methods in the classes. The
only way I see is to put all methods from X in A,B and C. But then I do... more >>
regular expression
Posted by Frank at 2/18/2005 10:53:50 AM
Hi,
reg expressions are very handy but it's not my speciality. Can someone help
me constructing one for the next problem?
PxxyyPxxyyPxxyyy
Thats the string I have to split. The Pxx is always constructed like that, a
'P' and 2 numbers or letters.
The yy can be 1 or more numbers or letters.
... more >>
Threading question Sorry of this is repost
Posted by Phillip N Rounds at 2/18/2005 10:53:33 AM
Why is this using 50% of available CPU?
What I am trying to accomplish in this service is as follows: In the
main class (COS_Service) , int Main(), initializes a timer. Each OnTimer()
event is to create multiple threads to perform their assigned task. I also
want to do some checking o... more >>
Data Grid format
Posted by Peter at 2/18/2005 10:45:22 AM
Does anyone have an example of how to format VS 2003 Data Grid that =
looks like the example below?
I want the data to be grouped by the Date Field and display one date for =
each group of dates and the date to be the heading for each group.
--------------------------------------------------... more >>
Exception identifier
Posted by John at 2/18/2005 10:41:20 AM
Hi all, I have a question about capturing exception details in C#.
Is it possible to query the exception and get an id related to what caused
the exception??
e.g
1 = Tried to enter a row into a database but there was a Primary Key
conflict
Currently I am doing something like this
ca... more >>
C# Main Application Window
Posted by GingerDeafMan at 2/18/2005 10:34:50 AM
Hi all,
I am looking for sample code which shows how to create a main
application window in C#, preferably MDI with toolbars. Either across
the top, below the menus, or down the left side a la MS Outlook.
Basically a skeleton framework on which I can build our application.
TIA.
Cheer... more >>
Dynamic Assembly or Plugin???
Posted by Matt at 2/18/2005 10:21:54 AM
I'm hoping someone can steer me in the right direction to try to do the
following:
I am developing an application where we receive files from customers. Right
now we receive a variety of formats. I was looking at writing some type of
base application that would allow me to add-in either new ... more >>
Data binding and DBNULL
Posted by Adam Klobukowski at 2/18/2005 10:08:47 AM
Hello
I have an untyped DataSet that I'm binding data into my form controls.
Binding works well (ie. no this.controll.DataBindings.Add throws an
exception) but when form is shown and some fields of a current row of
the dataset are DBNNULLs I have an exception that I cannot cast DBNULL
to ... more >>
Newb question
Posted by Jo Segers at 2/18/2005 9:43:14 AM
Hi,
I am learning C# and I get a compilerer error below, but I do not
understand why. Can somebody explain this?
Thanx in advance.
jo.
using System;
class TestApp
{
public static void Main()
{
// Application entry point
Console.WriteLine("App Start");
// Test 1
... more >>
Killing the c# executable
Posted by dakkar NO[at]SPAM sylveria.gen-dot-tr.no-spam.invalid at 2/18/2005 9:38:48 AM
How can i control my program when someone kill it's process from the
taskmanager
my dispose script is working well if i close the program manually but
if i kill it from taskmanager its not working
how can i fix it
my dispose script is like this
protected override void Dispose(bool Dispo... more >>
Alternative VSS Client???
Posted by Frank Rizzo at 2/18/2005 9:35:07 AM
I am looking for a client that will connect to a VSS database, but won't
suck like the standard VSS 6.0d client. Is there such a thing?
Thank... more >>
Visual Studio Beginner with question
Posted by tripwater at 2/18/2005 9:28:39 AM
Hello,
I am a php programmer moving over to ASP.NET, VS and C#. I am having a few
problems getting started. I have everything installed and running, it is
more or less figuring out how to do simple things.
I have a test form called webform1 with one field on it for a first name. I
am trying t... more >>
Client side web service caching
Posted by Jim Martin at 2/18/2005 9:21:03 AM
I would like to do client side web service caching and was wondering if this
was possible. I believe it is via Asynchronous pull loading, and found the
following article
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/CachingArchch5.asp
it points to this example ... more >>
why does StreamReader get stuck
Posted by Astronomically Confused at 2/18/2005 8:59:07 AM
using System;
using System.Collections;
using System.IO;
using System.Net;
using System.Net.Sockets;
using System.Threading;
class HttpProcessor
{
private Socket s;
private BufferedStream bs;
private StreamReader sr;
private StreamWriter sw;
private String method;
... more >>
Win a .NET Course ( UK ) Only
Posted by Mr Newbie at 2/18/2005 8:54:00 AM
This company is offering a prize draw for a .NET course, i've entered myself
you guys might get lucky.
http://www.trainingon.net/contact_us/prize_drawApril05.htm
... more >>
Send .aspx to e-mail??
Posted by Retf at 2/18/2005 8:45:17 AM
Hi All,
I need send the aspx to e-mail (like a html newslwtter).
This is possible?
If yes Hoto to I get this?
... more >>
WM_KEYDOWN does not get arrow key messages
Posted by Just Me at 2/18/2005 8:36:21 AM
I have two situations:
1) a form with a picturebox on it
This picturebox does NOT gets WM_KEYDOWN messages if the key is an arrow
key. Works OK if Num Lock is on so those keys are numerals.
1)A form with a textbox on it
This textbox gets those WM_KEYDOWN messages.
Maybe the fact that it... more >>
Some C++ functionality not available in C# [???]
Posted by Nadav at 2/18/2005 7:57:05 AM
Hi,
[A]. I am using managed code ( C# )
[B]. I am working on a performance critical application that involve 3D
Graphics.
[C]. To achieve optimal performance I try to copy data as less as possible.
[D]. The view port is represented by a 3D Vector ( or DirectX.Vector3 )
[E]. The coordinates ... more >>
how to remove array from arraylist? using C#
Posted by vimal patel via DotNetMonster.com at 2/18/2005 7:29:11 AM
hi,
i want to remove array element from list.
Suppose 5,6,7,8,9 is a array assigned.
i want to remove element 7 from the array.
How can i remove this?
Please help me
Thanks
--
Message posted via http://www.dotnetmonster.com... more >>
Plug-in in IE
Posted by Pauwl G at 2/18/2005 7:25:02 AM
Hello People,
I'm trying to design some kind of windows form app. which I can also use
as a plug-in in IE. just like Acrobat reader for instance. I'm a total
newbie and I don't even know in which direction to think, so every
comment is welcome.
Thanks
*** Sent via Developersdex http:... more >>
DllImport (C++ code -> C# code)
Posted by sshap NO[at]SPAM inbox-dot-ru.no-spam.invalid at 2/18/2005 5:56:19 AM
hi!
how can i convert C++ code to
[b:086285aeef]C#[/b:086285aeef]?
[b:086285aeef]cpp: [/b:086285aeef]
#include "library.h"
TProcReadIEEE32 ReadIEEE32;
HINSTANCE hOwenLib;
...
hOwenLib = LoadLibrary("library.dll");
ReadIEEE32 = (TProcReadIEEE32)GetProcAddress(hOwenLib,"ReadIEEE32... more >>
Share a Folder by Programmation
Posted by Franky at 2/18/2005 5:53:03 AM
How to Share a Folder by Programmation?... more >>
Accessing information on IIS programatically
Posted by thechaosengine at 2/18/2005 4:55:49 AM
Hi all,
Does anyone know of a way I can get information on the status of IIS including
what websites and Virtual Roots are defined and whether they are running
or not.
I'll be using C# in particular and am currently looking into WMI - something
that I havent used in the past.
Anyone ... more >>
email address validation
Posted by mk at 2/18/2005 2:59:02 AM
Hi,
Does anyone know a quick method for validating the hostpart of an email
address. For example if the address is someone@hostname.com, what do I need
to do to validate that hostname.com is a valid host.
I also need to make this call through a proxy server, I have the proxy
address, and ... more >>
Why can't a string be default-constructed?
Posted by Andreas Huber at 2/18/2005 2:49:13 AM
Hi there
Can anyone imagine a reason why string does not have a default ctor?
Agreed, that might be necessary only very rarely in .NET 1.1 code.
However, in conjunction with .NET 2.0 and generics it is just plain
annoying. Example:
class Param< T > where T : new()
{
public Param()
... more >>
Cannot CreateInstance of a string
Posted by mra at 2/18/2005 2:11:01 AM
Hello, I want to dynamically create an object based on it's type. The core if
it sould be to use Activator.CreateInstance. This works fin for its,
floats..., but not for strings. Here's a sample:
string s;
s= "1020";
Type t = s.GetType();
object o = Activator.CreateInstance(t);
An exceptin... more >>
Sending email via Lotus Notus
Posted by BuddyWork at 2/18/2005 1:44:30 AM
Does anyone have any example of how to write C# code to
send email via lotus notes?
Thanks,... more >>
Reflecting C# attributes
Posted by jim at 2/18/2005 1:26:22 AM
Is it possible to reflect information about c# standard
attributes? i'm well aware that
FieldInfo.GetCustomAttributes() is available - but what
about system attribs such as MarshalAs? I would like to
pull out info from attached MarshalAs attributes (such as
the value of SizeConst) rather t... more >>
Looping
Posted by jez123456 at 2/18/2005 1:21:03 AM
Hi I have the following code:
if (chkMaster.Checked)
{
dbFile = dbFile.Substring(0,dbFile.LastIndexOf(@"\")+1) + "master.mdb";
compactDatabase(ref testPassword, dbFile, userID, pword, regPath, systemFile);
if (!testPassword)
{
return;
}
progressBar.Value ++ ;
}
if (chkToolbo... more >>
Visual C# Express Beta1 - Problem
Posted by Franz Coriand at 2/18/2005 1:07:23 AM
Hi,
does anyone use Visual C# Express Beta1?
When I open a new WindowsApplication (not ConsoleApplication) in Visual
C# Express Beta1 and try Console.WriteLine("Test") I don't get an
output anywhere!?!?
Same code with VisualStudio 2003 C# works fine - i get an output on the
"OutputC... more >>
|