all groups > c# > july 2004 > threads for wednesday july 14
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
What's the use of making an event virtual?
Posted by Action at 7/14/2004 11:18:02 PM
does it works like ordinary virtual method??
coz I find that child class can't invoke the event of the parent class.
class parent
{
public virtual event SomeDelegate SomeChanged;
}
class child : parent
{
void abc()
{
this.SomeChanged+=SomeMethod; // ok
if (this... more >>
Problem in retrieve data from SQL server using OLEDB
Posted by simon at 7/14/2004 10:49:01 PM
I use a SQL server 2000 to store data in local language (gb and Shift-JIS). I can successfully store the data into database, but when i retrieve back from database, i only get "?" in my asp program.
Is there any solution? Thx for help.... more >>
Problems with datagrid,dataview getting NullReferenceObject and SEHException
Posted by - R at 7/14/2004 9:47:16 PM
Hello all.
I'm new to .Net so please help me out.
I have a application with several "Threads" running to observe various
things. From time to time each thread need to add an log entry, which is
displayed on a form (a datagrid on a form)
there is no database, but i created a dataset usin... more >>
static classes
Posted by Willem van Rumpt at 7/14/2004 9:19:29 PM
Hi all,
I was wondering: Why isn't it possible to write "static classes". By
this I mean a class that will _never_ get instantiated, but will always
work on and with other static members of its class.
The class would in effect behave like a "classic" win32 dll and its
exported functions, o... more >>
How to get access to a control created at runtime
Posted by Andrei Pociu at 7/14/2004 9:18:59 PM
Inside a method some controls are created at runtime.
I added an event handler to one of these controls:
tracker.Scroll += new System.EventHandler(this.tracker_Scroll);
So in the event handler I used unboxing to get access to the value of the
TrackBar:
private void tracker_Scroll(object s... more >>
check folder / directory is exist or not...
Posted by kelkel at 7/14/2004 7:51:03 PM
i am writing a Console app, it needs user to input a path. the problem is how can i validate the user input path is valid or not?
many thanks..
Kel... more >>
How to decide Page Break insertion criteria in RTF doc?
Posted by Sachin at 7/14/2004 7:46:01 PM
I am trying to develope a small RTF writer to generate project report at runtime, with a limited RTF writing capability. RTF is one page document only, untill we intentionally put page breaks in it and Project report consists of number of pages. Thus, on what criteria it should be decided to insert ... more >>
XAML
Posted by Adlai Stevenson at 7/14/2004 7:04:31 PM
Will XAML make c# unnecessary ?
http://www.c-sharpcorner.com/Longhorn/XAML/PuttingXMLtoWork.asp
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Make C# usercontrol appear as proper activeX, like OCX??? Microsof
Posted by Martin Platt at 7/14/2004 6:50:02 PM
Hi,
I'd like to make my C# usercontrol appear as an OCX does, so that I can import and use in a legacy environment.
Is this possible? I hear a whisper of being able to put some registry values in, to make it work, so would there be attributes that do the same thing properly??
any help would ... more >>
Newbie Help - Move Dataset record pointer
Posted by Dave Sully at 7/14/2004 5:31:12 PM
Hi
Newbie question, New to C# and ADO.net coming from a Foxpro background
so struggling with Data access in general..
Just a quick one..
Have databound listview, of a dataset and also textbox boxes bound to
the same dataset.
On the click event of the listview I want to move the reco... more >>
Lib Wrapper
Posted by RF at 7/14/2004 4:43:28 PM
Hi All,
I have a "lib" file and I need to create a wrapper to expose some methods.
How can I do this in C#.
Can I use [DllImport] to expose methods from this lib? Which folder does the
lib file need to stored in order for C# to call unmananged methods.
For Example:
[DllImport("abc.lib"... more >>
Q: Hours
Posted by Geoff Jones at 7/14/2004 4:33:47 PM
Hi
I'm hoping that somebody can help me with the following question.
I have a DataView which contains a column which contains a Time.
I would like to create an array which will store the times within one hour.
For example, all the times between 12:00 and 13:00 will be placed in one
index ... more >>
NNTP
Posted by Robert Kent at 7/14/2004 4:30:09 PM
I want to write my own specialized news reader. Are there any free NNTP
libraries for the .net framework?
... more >>
All My Media Are Stop Working !
Posted by Adlai Stevenson at 7/14/2004 4:14:18 PM
Ok, the good news is the last kernel upgrade made bzflag stop working.
The bad news is that mplayer, ogle and real player stopped working !
Is anybody in a similar boat?
I am using Suse 9.1 Pro with the latest download kernel.
... more >>
Is there an easy way to query a remote xml file by not using web services? (Windows and Unix)
Posted by Dan V. at 7/14/2004 4:06:41 PM
Is there a way to query a remote xml file periodically by not using web
services? For Windows and Unix platforms. Is there a cheap software product
that I can install on each client and my Windows 2000 server and have
'secure' network access? I would love to use VS.NET to access both windows
a... more >>
Init array to non zero values
Posted by liqiang_chen NO[at]SPAM hotmail.com at 7/14/2004 4:03:04 PM
Hi,
I have a byte array which I'd like to init to all 0xFF. The array size
is passed in as a parameter. What is the best way to do it?
I can certainly do it in a loop but it is not effecient.
Thanks in advance for your input!... more >>
VB6 => C#.NET
Posted by Just D at 7/14/2004 3:26:19 PM
Hi,
Last time I asked about it over a year ago.
Did anybody write or maybe somebody knows if the program exists to convert
the VB6 source codes (mainly classes, not forms) to C# classes? Any
information about any program including commercial would be appreciated.
We're having about 500'... more >>
How to get the harddrive drive letter? (or how many drive in a computer)
Posted by Jason Chan at 7/14/2004 3:19:25 PM
how can i know how many drive in computer?
Thanks in advance
... more >>
(registry access) How do I do this?
Posted by vbMark at 7/14/2004 3:09:02 PM
Here's my code:
string[] strKeys;
RegistryKey rk = Registry.CurrentUser;
RegistryKey val = Registry.CurrentUser;
string sLocation = "Software\\Microsoft\\Windows\\CurrentVersion
\\Internet Settings\\P3P\\History";
rk = rk.OpenSubKey(sLocation);
strKeys = rk.GetSubKeyNames();
for (int i = 0... more >>
Help opening multiple HTML files
Posted by dustinlyday NO[at]SPAM yahoo.com at 7/14/2004 3:06:20 PM
I need to write code which will open all HTML files in a given folder
and possibly dump the paths into a collection. A user will not be able
to select them. Any ideas?... more >>
localization of app question
Posted by Ian at 7/14/2004 2:36:32 PM
Hi there,
I am trying to follow this guide
(http://www.c-sharpcorner.com/Code/2004/March/MultilingualAppsInNet.asp)
with regards to creating a multi language application.
I want to offer 2 languages at the beginning - English and Spanish.
My question is, do I need to embed the resource fi... more >>
Mouse movement from hidden form
Posted by John at 7/14/2004 2:26:59 PM
Hi all:
I have an application that hides itself and displays an icon in the system
tray. Is it possible for this application to detect keystrokes and/or mouse
movements while hidden/minimized. So the application is not loaded and
visible, so mouse movements on the form won't work, I need th... more >>
Moving a web project to a different computer (for development)
Posted by cpnet at 7/14/2004 2:22:54 PM
I've read, http://support.microsoft.com/default.aspx?scid=kb;en-us;326495,
and searched on msdn.microsoft.com and google, but can't get this to work.
I've done it in the past, but I can't remember what I did.
A developer has created a C# web project, and sent me the source files. I'm
trying t... more >>
Copying datatable contents to another datatable
Posted by VM at 7/14/2004 1:22:02 PM
How can I copy the contents of one datatable to another datatable? I've
already the source table so I only need to copy its rows.
Thanks.
... more >>
Container object
Posted by Viorel Ghilas at 7/14/2004 12:57:42 PM
Hi all
I have a list of Componet objects and put them in Containner, after
container is disposed then components doesn't disposed
I write some code example
Component c = new Component();
using(Container list = new Container()) {
list.Add(c, "c");
ISite site = c.Site;
...
}... more >>
question with Datagrid.datasource ...
Posted by VM at 7/14/2004 12:56:43 PM
If I'm filling a DataTable and, in the middle of the table fill, I set the
datagrid.datasource to this table, how can I stop the grid from reflecting
the changes from the table after I set the dartasource? Since I' m not sure
I'm explainng it well, here's some pseudocode:
for (int i =0;i<20000... more >>
Tools to translate applications to other languages
Posted by David Logan at 7/14/2004 12:47:41 PM
What tools are available for multi-language issues? Menu items, error
strings, etc.
Qt has the tr() macro and some other tools that make it easy
(relatively) to translate an entire application to other languages.
Windows uses string tables. Does .NET have something that could be
similarly... more >>
DataGrid Binding to subset of Dataset?
Posted by jtfaulk NO[at]SPAM eudoramail.com at 7/14/2004 12:32:29 PM
This works well for binding a Dataset (created from an XML file) to a
DataGrid for the entire 'page' table. However I would like to only
grab a few rows from the 'page' table (like: select id, description
from page where docid = 1).
Any help would be greatly appreciated... because this datagr... more >>
Identify a running process as a service
Posted by Christopher Attard at 7/14/2004 12:29:29 PM
Hi,
I'm getting a list of running processes on a machine using
Process.GetProcesses(). Can I identify programmatically which of these
processes is running as a service.
10x in advance.
Chris
... more >>
version numbers and releasing software...
Posted by Jim at 7/14/2004 12:29:05 PM
I am about to install a asp.net web application I have written in the 'real'
world - this app uses mutilple assemblies (minimum of 10) and calls out to
web services which in turn call some COM+ components all of which I have
written in C# .net.
Currently the AssemblyVersionAttrbiute is set to ... more >>
web form text box
Posted by Rob Webster at 7/14/2004 12:13:21 PM
Anyone know how to scroll a server multiline text box to the end of it's
contents after it's been updated?
... more >>
Are event callback delegates executed executed in a separate thread????
Posted by anyusernameisgood NO[at]SPAM yahoo.com at 7/14/2004 11:46:21 AM
Hello,
I was wondering if callback delegates, called in response to a event,
are executed in their own thread. I was suspecting the OS might spawn
a new thread and have the delegate execute in that thread but having
written a small sample application this does not seem to be happening.
I'm ... more >>
How to programmatically check for versions of software
Posted by Jak Sparrow at 7/14/2004 11:42:32 AM
What are some good ways to programmatically check for software already
installed on a computer?
For example, to check a version of Internet Explorer, a program can check
the registry for the following value:
[HKLM\SOFTWARE\Microsoft\Internet Explorer] Version, and see if the version
is 6.0 or... more >>
Centering Print Dialog?
Posted by Harry Whitehouse at 7/14/2004 11:36:26 AM
My print status dialog is appearing outside of the context of my
application. How can I center this dialog on the parent?
Also, is there a way to modify the information shown on the print status
dialog?
TIA
Harry
... more >>
Question of formatting a string to DateTime
Posted by Bill at 7/14/2004 11:35:34 AM
I am being passed a string value in the form of MMddyyyy that needs to be
converted to DateTime. Do I need to first convert the string to MM/dd/yyyy
before calling the DateTime.Parse(string) method?
... more >>
Problem with Win32_NetworkLoginProfile and C#
Posted by Stefan Pilgrim at 7/14/2004 10:44:43 AM
Hi,
I try to query the Logins on a remote computer with a little c#-program.
Everything works fine, but some Logins are not returned from the remote
computer. Microsoft confirms that there's a problem with the
Win32_NetworkLoginProfile class.
http://support.microsoft.com/default.aspx?scid=kb;DE... more >>
API for the SP2 Security Center
Posted by Jefferson Cowart at 7/14/2004 10:42:02 AM
Is there any way I can have a C# program check to see if Anti-Virus software is installed using the same methods that the Windows XP SP2 security center checks. I'm writing a program that verifys a user has anti-virus software installed and running before allowing the user to proceed. If I can avoid... more >>
Null comparisons in C# 2.0
Posted by Christoph Nahr at 7/14/2004 10:21:48 AM
Question: Will C# 2.0 offer a way to directly and reliably produce the
fastest MSIL null check, i.e. a single opcode?
The current C# compiler will emit this opcode automatically when
comparing a type against null that doesn't override operator==.
However, if the type does have its own equality... more >>
Textbox
Posted by Axel at 7/14/2004 10:09:34 AM
how can i convert string to int or long AND into to String ?
Thanks
Axel
... more >>
Cannot implicitly convert type
Posted by Christoph Boget at 7/14/2004 9:19:08 AM
I am getting an error (a few among many) for the
following lines of code:
retval[curRowNum].BrokerName = (( curRow["BrokerName"] ==
System.DBNull.Value ) ? SqlString.Null : (string)curRow["BrokerName"] );
retval[curRowNum].BrokerGroupId = (( curRow["BrokerGroupId"] ==
System.DBNull.Value ) ... more >>
EIF
Posted by Dan at 7/14/2004 9:01:49 AM
All,
I am having a problem using the Logging Application Block and EIF with a Windows Service I am writing. If I run the Service under an admin account all works fine. However, If i run it under a normal user account I get the following error message in the EventLog
Error loading an Event Sink... more >>
How to force attributes to be serialized
Posted by nospam NO[at]SPAM spam.spam at 7/14/2004 8:47:24 AM
Hi,
I have used the xsd tool to generate a class from a schema. I then
use the XmlSerializer class to write an object to an XML file. So far
so good.
However attributes that are set to their default values are not
serialized to the XML file. However I would like to force the
serializer ... more >>
Why does my newsgroup profile doesn't update
Posted by Nadav at 7/14/2004 8:00:01 AM
Hi,
I wonder... occasionally I am answering questions in this group, BUT looking at my profile I can't see the 'Questions answered' and the 'Users helped' counters update... why is that???
--
Nadav
http://www.ddevel.com... more >>
Ending a Console.ReadLine() in C#
Posted by talljames NO[at]SPAM hotmail-dot-com.no-spam.invalid at 7/14/2004 7:21:38 AM
Hi all,
Does anyone know how to end a Console.ReadLine() programmically rather
than typing the enter key in C#?
I have tried just setting the class object that contains this line to
null, but unfortunately that doesn't clear it up because it is
waiting for a signal to reactivate itself. I ... more >>
Using Properties To pass fields between Dialogs
Posted by nick_tucker NO[at]SPAM hotmail.com at 7/14/2004 6:42:19 AM
A lot of people say to use properties to pass variables between a main
dialog and a subdialog like so:
Form form = new Form();
if (form.ShowDialog()==DialogResult.OK)
{
string str = form.StrinValue;
}
but how should I close the dialog since if I do the following in the
sub form when the... more >>
Crystal Report help required
Posted by Maqsood Ahmed at 7/14/2004 5:03:06 AM
Hello,
i need help regarding using Crystal reports in C#. I don't want to
populate my Dataset/Datatable through database. I have used a Datatable
and also a dataset as DataSource for CR. but it didn't help much... in
case of DataTable, it throws an exception "Error in File <.rpt File
Name>: In... more >>
Re: NotifyIcon and Bitmaps
Posted by Mustafa Rabie at 7/14/2004 4:15:06 AM
"Mustafa Rabie" <mrabie007@hotmail.com> wrote in message news:...
> Hi All,
> i have a question if someone could help i'd really appreciate it:
>
> 1) i was wondering if there's a way to cast a bitmap into an icon that
could
> be used with notifyicon component?
>
> thanks
> mustafa
>
>
... more >>
disabled service?
Posted by Beeeeeeeeeeeeves at 7/14/2004 3:36:04 AM
I've got a service that's for some reason decided to disable itself - it can't be stopped and started, and when I try to uninstall it, it says 'the service has been marked for deletion.'. eh??
It actually IS uninstalled - i.e. it hasn't got a file to run installutil /u on, or an entry in add/remov... more >>
timer in service?
Posted by Beeeeeeeeeeeeves at 7/14/2004 3:29:01 AM
Hi
I have created a windowds service project, it is working fine and I can debug it ok, but there is one thing up - when I drop a timer onto it, it doesn't work. I have set the service to be a LocalSystem account, I have set the interval to 2000 (2 seconds) in the OnStart event (which I know is fir... more >>
Datagrids
Posted by jez123456 at 7/14/2004 1:40:02 AM
Hi. I have a web form with a datagrid that displays employees who are on holiday. One of the datagrid columns shows the date of their last day of holiday, but what I really require is the Start Back at work date, i.e. if their last day of holiday is a Friday, then the Start Back date should be the f... more >>
IsDate VB function equivalent
Posted by Mike at 7/14/2004 1:30:34 AM
Hi,
Anyone knows what the equivalent of the IsDate function is in C#?
Thanks
Mike... more >>
Question about 8bit colour
Posted by James Dean at 7/14/2004 1:23:28 AM
I know that 16bit colour is split up into 3 "5bit" sections but i can't
seems to find how exactly 8bit is split up?....
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!... more >>
Low .NET Socket performence!!!
Posted by Nadav at 7/14/2004 12:54:02 AM
Hi,
I have experienced low performance using the System.Net.Sockes.Socket object:
1. An unmanaged application that use IOCompletion ports gives performance of about 1.33 better then the same app written in C# using the Begin*/End* APIs.
2. I have did an additional test using .NET Sockets: I ha... more >>
|