all groups > c# > july 2003 > threads for thursday july 24
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
Default Browser
Posted by Chronos at 7/24/2003 11:36:09 PM
How do I find out what the default browser is?
thanks
... more >>
Serialization of StringDictionary
Posted by J.R at 7/24/2003 10:59:00 PM
I'm getting an error when I attempt to serialize a type StringDictionary,
error suggests type not marked for Serialization, could someone tell me how
to go about this?
Thanks.
... more >>
not receiving a ThreadAbortException after thread.abort()
Posted by Stephan Steiner at 7/24/2003 10:23:25 PM
Hi
I'm having some weird threading issues.. almost at random, if I dare change
a line of my code, the shutdown sequence gets messed up.
I'm using a thread to receive data from the network, that I suspend and
resume whenver needed. In order to properly shut down the program every
thread has to... more >>
Any good C Sharp sites?
Posted by Ben at 7/24/2003 10:03:34 PM
Hi all
I am new to C Sharp. Any suggestion for some good C Sharp sites? Thanks
for sharing.
Ben
... more >>
implementing interfaces with static methods
Posted by mdc at 7/24/2003 7:45:01 PM
Hi,
Is there any way to implement an interface as a static method in C#? If
not, is this a bug?
Micheal.
... more >>
Display the images into picture box every 1 second(VC#)
Posted by Dev at 7/24/2003 7:34:16 PM
Dear Friends,
I have 20 images in Array list.How do display the
images into picture box every 1 second.If anyone knows please let me
know....I don't want reload the form.The images are comming from network...
sample code or reference links are welcome....
Thanks,
Dev
... more >>
Creating HTML email from webform
Posted by Peter Cresswell at 7/24/2003 5:43:53 PM
Hi chaps!
I need to creat a confirmation email for an online shopping site. The email
needs to be in HTML and would have a lot of dynamic content in it relative
to the order that's just been placed.
I figured the easiest way to do this would be to create a webform that
recieves a URL parame... more >>
Word, DocumentBeforeClose event, unable to Cancel event
Posted by AP at 7/24/2003 5:41:45 PM
Hi,
I'm trying to use c# to pop up a dialog box when a user attempts to close
word to prompt them if they want to exit or cancel (obviously other stuff
needs to happen based on their selection but that's the gist of it.)
I have everything set up, and it seems to work except that setting Cancel... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Resizing a form by its viewable area
Posted by Jon Davis at 7/24/2003 5:15:02 PM
If I have a UserControl of fixed size and I want to place it on a blank
form, then resize the form according to the size and shape of the
UserControl, how do I set that height/width on the form without it all
getting messed up by the form's title bar and border?
Or are height and width on Form... more >>
passing a MemStream to a web service!!!
Posted by boxim at 7/24/2003 5:07:21 PM
Is causing me some problems,
Created a web reference, the IDE has created a References.cs for the proxy
class
however, one of my methods takes a MemStream parameter - however instead of
being of type System.IO.MemStream, it's MyWebService.MemStream which then of
course is not accepted by othe... more >>
Datagrid.RejectChanges() problem.
Posted by Alpha Zero at 7/24/2003 4:57:41 PM
Hi!
I have a datagrid containing single column.
If user adds a new word, I want to check if this word does not contain any
character except A-Z and this word doesn't exists in previous rows .
If it exists, then user should be informed and this word should not be added
to datagrid.
How shoul... more >>
Events in an interface?
Posted by Jon Davis at 7/24/2003 4:54:05 PM
Can events be declared in an interface .. {} ?
Thanks,
Jon
... more >>
PrintDocument
Posted by Bobby C. Jones at 7/24/2003 4:23:43 PM
Ok, so I had a couple of minutes after lunch to play around a bit with the
System.Drawing.Printing namespace. I just wanted to print out a single line
of text. I had to work very hard to resist the urge to print out "Hello
World!" <g>
I got very excited as I pressed the button on my form and... more >>
creating documentation ?
Posted by Lloyd Dupont at 7/24/2003 3:36:57 PM
I have my .XML file, now what ?
I have tryed NDoc it bug.
how could I have a meaningful documentation ?
I have VS.NET but I'm not very proficient with it, is there a tool for that
?
any idea ? tip ? link ?
... more >>
DHTML Edit Control, Inserting table
Posted by dd at 7/24/2003 3:21:19 PM
Cannot figure it out. If somebody can help, I'd appreciate it.
I am using DHTML Edit control from C# for editing HTML pages. I am trying to
insert a table into an HTML page and I keep getting an error. Here is the
code:
DHTMLEDLib.DEInsertTableParamClass oTableParam = new
DHTMLEDLib.DEInsertTab... more >>
working with files
Posted by tim at 7/24/2003 3:16:52 PM
Is there like an easy way to make file boxes? You know the type, kinda like
a file explorer where I can select a file for processing? In visual basic it
was simple with the file list boxes, and the directory list boxes. Any help
would be greatly appreciated.
-tim
... more >>
Accessing html element or client side javascript object from C#.
Posted by Gary at 7/24/2003 2:47:28 PM
Hi,
I am developing desktop application. In the desktop application am loading a
html page, i want to acces html element value from C# code.
Can anyone help me? how to access a html element or clientside javascript
object from C# code.
Note: i am not using web server.
TIA,
Gary
... more >>
unsafe operations
Posted by Andre at 7/24/2003 2:37:20 PM
if I have an unsafe method that takes in two arrays, performs some
operations and returns; I know that the garbage collector will not
collect objects allocated inside the unsafe method. However, if I'm
calling this method from a main() method of a class which is safe (i.e
managed), will the ... more >>
How to print many copies
Posted by ekey at 7/24/2003 1:58:19 PM
Hi
follow function to print many copies but it only print one copy, my
document is only one page;
but i want to print many copies .such as three copies. how to do? Where do
it error?
THS
private void mn_file_print_Click(object sender, System.EventArgs e)
{
PrintDialog dlg = new Pri... more >>
How can i found out the current user's role/permission level
Posted by MJB at 7/24/2003 1:56:42 PM
I know I can get the current username through the System.Environment class,
but I can't seem to find where I can retrieve the user's role / permission
level (i.e. Admin, power user, etc).
If anyone has done this and can shed some light on the issue I would
appreciate it.
TIA,
Matt
... more >>
Looking for ISP that can host a windows service
Posted by Johann Blake at 7/24/2003 1:56:09 PM
I'm developing an application in C# that needs to run as a Windows service.
I'm looking for an Internet Service Provider (ISP) to host my application.
Since I'm on a shoe-string budget, I can only afford using a shared server
and not a dedicated one.
The problem is that most ISPs don't allow y... more >>
Inheritable Forms: Abstract
Posted by J.Marsch at 7/24/2003 1:41:15 PM
I am trying to create a base form that all of our application's forms will
inherit from. I would like to mark it "abstract", but if I do, I get an
error from the form designer when I try to design forms that are
(non-abstract) children of the base form. The designer complains about not
being ... more >>
Session variable and WebServices
Posted by Gvnn at 7/24/2003 1:13:49 PM
Hi,
I've few problem with Session Variables and WebServices.
I've a web application (.aspx), and I assign a Session variable ( ex:
Session.Add("COD",Value) ). Then I call a WebService. I need that the
service read the value of the session variable, but if i try i retrive a
null value.
Can anyo... more >>
Designer and abstract classes
Posted by Joe Vrba at 7/24/2003 1:04:50 PM
I'm building a family of components derived from
UserControl. There's an abstract base class to ensure
basic functionality and then numerous other controls
derived from that.
The problem is that I'd like to manipulate some of the
derived controls using the VS.NET designer. However, whe... more >>
Datagrid with categories
Posted by Rob Tillie at 7/24/2003 1:04:39 PM
Hello,
I want to display some data in different categories in a datagrid, just like
the properties pane in visual studio does. However, I can't figure out how
to do this. Has anyone got an idea?
Greetz,
-- Rob.
... more >>
Does the ArrayList call Clone() on ICloneable objects?
Posted by Hasani at 7/24/2003 12:22:24 PM
I have an object called FileNode and it implements ICloneable which creates
a deep copy of the FileNode.
The one of the constructors for ArrayList use an ICollection as a paremeter.
If I pass that constructor an array of type FileNode, when it copies the
FileNode array, will it call Clone on eac... more >>
Remoting and using the Invoke method to modify a form object
Posted by boxim at 7/24/2003 11:07:53 AM
hi all,
I'm having a few problems whereby my application is hanging when using the
Invoke method of a form's control.
Basically, when a user clicks a button on the form, it calls a remote
function, which in turn fires an event that is caught by the form.
The form then need to add a value pa... more >>
Validation Bug
Posted by Alvin Bruney at 7/24/2003 10:08:00 AM
I've found a bug with the validation controls. If the internet connection is
slow causing the page to load slowly this causes a problem. If the page is
not fully drawn and the data isn't yet in the page, then clicking a button
(which causes validation) will cause a bomb out. I suspect because the... more >>
How Determine Which Control has Focus? #2
Posted by Liam McNamara at 7/24/2003 9:57:49 AM
I am having the same problem as the one I found in google below:
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=%23LO32NWECHA.1968%40tkmsftngp02&rnum=3&prev=/groups%3Fq%3Dc%2523%2Bwhich%2Bcontrol%2Bhas%2Bfocus%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26selm%3D%2523LO32NWEC... more >>
.NET class events handling in VB6
Posted by Leonardo Spina at 7/24/2003 9:56:47 AM
I wrote a component using C# and I need to use it from a Visual Basic 6
client application.
The C# object raises an event which uses a custom delegate, but I don't know
how to catch the event in VB6.
Please help me!! ;-)
... more >>
[BUG] Compile can't resolve namespace class differences
Posted by Matt Mastracci at 7/24/2003 9:26:53 AM
It seems like the C# compile can't resolve the difference between a
namespace and a class in a situation that is clearly unambiguous. Note
that it sees the namespace "C" before the class "C". I believe it
should see the class "C" first.
test1.cs:
=============
using System;
using A.C... more >>
Async Socket , BeginReceive question .
Posted by dream machine at 7/24/2003 9:14:49 AM
Hi all ,
with BegeinReceive I can build async method of Socket Class
that Receive the data from the Socket Client .
My question is , if I have this code that create 3 Receive Async Call :
<code>
mySocket.BeginReceive(param1,param2,param3.....);
mySocket.BeginReceive(param1,param2,param3...... more >>
cant see components on ToolBox Tab
Posted by andrewcw at 7/24/2003 8:34:40 AM
I am building the basic windows service, but on my tool
box tab , there are no components, just clipboard Ring,l
pointer & general. But the MSDN article Dec 2001 by
Getz, "windows services: New base Classes in .NET make
writing a Windows Service Easy" says it should be there.
What could be... more >>
Calling a C# from C++
Posted by Tony Mitri at 7/24/2003 8:24:42 AM
Hi All,
Is there a way to instantiate a C# class and call its
methods from C++.
The C# class was built using VS.NET 2003
The C++ COM object was built using VC++ 6.0
Thanks... more >>
Session Variable and Casting
Posted by Rajesh Abraham at 7/24/2003 8:14:25 AM
I am new to Asp world and I have a doubt as follows. I
have a class called objTranslator, which I declare and
initiate global.asax as follows.
Session_Start
csTranslator.objTranslator sesObjTranslator= new
objTranslator();
Session["sesTranslator"]=sesObjTranslator;
----------------
Now ... more >>
A question about the Template Method design pattern
Posted by Microsoft at 7/24/2003 7:47:27 AM
Is there a way of implementing something like the Template Method design
pattern, but only dealing with static methods ?
First, I realized that I can't have abstract static methods in the base
class to be implemented in the derived classes.
Second, I have tried to hide those methods of the base ... more >>
Syntax for the "Start" method
Posted by Greg Smith at 7/24/2003 7:07:15 AM
I am trying to use the "Ping" command and capture the
output. I can run it with the following:
System.Diagnostics.Process.Start("ping.exe","-a
123.123.123.123");
This works fine. However, when I attempt to redirect the
output to a file using:
System.Diagnostics.Process.Start("ping.e... more >>
C# Breakpoint problem
Posted by Cahlein at 7/24/2003 6:38:48 AM
Hi There,
I am trying to set a breakpoint in some C# code. It is a
dll that is called by C++ code.
In order to call the C# code I use regasm with
the /codebase and /tlb options, I have created the dll
and tlb in both the C# project directory and in the
calling C++ project directory.
... more >>
Using Existing Fonts
Posted by Steve S at 7/24/2003 6:01:10 AM
Hi, I want to check the system for the arial font, then use it bold. I know
I could just do something like "new Font("Arial",10,FontStyle.Bold)", but I
want to check the system.
Thanks
... more >>
top-right pointing arrow cursor?
Posted by Alien at 7/24/2003 3:46:37 AM
I need to display a top-right pointing arrow cursor, the same type that
appears when you move your mouse over the line number margin on the left
side. It's not part of the Cursors class, anyone know how I can display one
like it?
Thanks
... more >>
Discussion
Posted by Paul at 7/24/2003 3:24:23 AM
string mynumberstring = "123";
int mynumber;
mynumber = int.Parse(mynumberstring);
mynumber = Convert.ToInt32(mynumberstring);
Both seem to have the same effect. But whats the
difference and which is 'best'?
Thanks, Paul.... more >>
writing config-file
Posted by MK at 7/24/2003 1:33:15 AM
Is there any way to write into the app config at runtime?
I want to store position, height and width of my forms.... more >>
struct member initialization - member by member?!
Posted by emma_middlebrook NO[at]SPAM fastmail.fm at 7/24/2003 1:12:40 AM
Hi
I discovered that if you declare a structure (and not 'new()' it) you
can then separately initialize its members and the compiler counts
those separate statements as a full initialization. That struck me as
a bit odd really as I would have thought it would have only bothered
about 'trackin... more >>
|