all groups > c# > july 2004 > threads for wednesday july 7
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
Serialize XML - adding on an existing xml file!
Posted by Chua Wen Ching at 7/7/2004 11:01:01 PM
Hi there,
I had this tutorial from Microsoft site:
http://support.microsoft.com/default.aspx?scid=kb;en-us;815813
I had 1 question.
Just say i already serialize a xml file. But next time, i want to add on to the xml file, under the particular xml node.
How can i do that? I do not want... more >>
Merge toolbars
Posted by Raymond Dynowski at 7/7/2004 9:37:34 PM
I would like to have the control that is in word, where part of the toolbar
can be dragged into what looks like its own form and back again onto the
toolbar.
Any idea how to go about this ?
... more >>
Password Filter DLL
Posted by Andreas Hecker at 7/7/2004 8:36:02 PM
Hello,
i want to write a password filter dll for windows 2003 server. I found an
example in msdn
http://support.microsoft.com/default.aspx?scid=kb;en-us;151082 wich is
written in c++. I am not able to understand c++ in a way to port this onto
..net framework. Can anybody help me to find out... more >>
Launch WinApp from Keyboard press
Posted by Ole Hanson at 7/7/2004 8:00:58 PM
Hi
I am in need of a way to launch my WinForms-app (app.exe) just by pressing a
keyboard combination like (Ctrl-Alt-P).
This functionality should be present "out of the box" after the app
(app.exe) is deployed on the Client's PC. The only way I know - is to place
a shortcut on the desktop ... more >>
Execute an extern program
Posted by Alberto at 7/7/2004 7:30:53 PM
I'd like to execute the osql application of sql server from a C# program.
How can I do it?
Thank you.
... more >>
Threading issue & static objects
Posted by rackley NO[at]SPAM ford.com at 7/7/2004 7:10:34 PM
I'm experiencing a threading problem that's really perplexing me. I
have a multithreaded application that reads car ECU information that's
sent over the serial port by the ECU and received by the
laptop/program.
I'll try to give a concise synopsis as the program is easily 10k+
lines.
main... more >>
DataTable, Contains method
Posted by Millo at 7/7/2004 6:29:58 PM
Hi
I'm trying to call the method Contains in a loop: out of the loop I set the
primary key of the dataTable.
The method returns true one time at a certani value, but then, when the loop
steps forward to check another value, the method returns false, although the
value is contained in the da... more >>
Mapping network drives using C#
Posted by John Dean at 7/7/2004 5:41:02 PM
Are there any built-in .NET classes that can be used to map drives and
printers? I know I can run the shell command "NET USE" but if there are any
built-in classes it would be more elegant. Thanks!
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Do I need .NET to run C# applications.
Posted by Nick at 7/7/2004 5:38:56 PM
A friend of mine is trying to open my program on his computer and he gets unable to initialize applicaiton.
Anybody know a reason this might be happening?
I tried the application on another computer it works.... more >>
int32.ToString()
Posted by Alberto at 7/7/2004 5:34:03 PM
I have in a int32 a value and a want to show it in a label in this format:
1,234. I know there is an overload to the ToString method who has a string
format. Which is string to see the numbers with the comma in the thousands?
Thank you.
... more >>
displaying list (in a pretty way)
Posted by Piotrek Stachowicz at 7/7/2004 5:07:38 PM
Hi there,
I'd like to display list of items in my form. Each item has 3 properties
i.e.
description , picture (1 of 3 kinds), and url. I want to display it in nice
way, e.g.
every second row should have different background, additionaly I'd like the
background to change (3rd color) when mo... more >>
EnableVisualStyles - Release
Posted by Christian Westerlund at 7/7/2004 4:56:54 PM
Hi!
I usually enable visual styles in my apps. I do it in Main before I
start my app with Application.Run.
Today when I changed from debug to release mode in Visual Studio .NET
2003, the XP-style disappeared when I ran the app.
I changed back to debug mode but I couldn't get the more appeal... more >>
Timer and Threading problem
Posted by Benny at 7/7/2004 4:55:02 PM
Hello Experts,
Currently I am working on a windows application using VS.NET 2002 with
C#.
On one of my form, I have a refresh button which will dispose created
controls and re-create them. I need the refresh perform in every certain
period, so I wrote a timer function to perform this:
..... more >>
The use of Attributes.
Posted by Mark Broadbent at 7/7/2004 4:34:44 PM
This might sound like a bit of a stupid statement (no change there then!) to
some of the gurus, but am I the only one left a bit flustered by what
appears to be around ten zillion attributes (and values) and their uses that
can be applied to code (e.g. when to use when not to use). Im sure with t... more >>
CONST ???
Posted by Russ at 7/7/2004 4:07:48 PM
I just ran into something that absolutely blows my mind! Consider the
following:
class Class1 {
public:
void SetHours (const double& h) { Hours = h; }
double Hours;
};
public __gc class Class2 {
public:
double Hours;
};
Now, in C++ Managed extensions do this:
Clas... more >>
Delegates will be the end of me
Posted by tprice NO[at]SPAM apexcg.com at 7/7/2004 3:59:33 PM
I am desperately trying to figure out the following problem,
simplified for discussion.
I have a WinForm with a button, textbox, and datagrid. When I click
the button, I want to execute the method defined in the textbox, which
must return a dataset, and pass this dataset to the datasource of ... more >>
Easiest way to perform DNS query?
Posted by Adam Clauss at 7/7/2004 3:25:32 PM
I need run a DNS query that retrieves all TXT records for a given hostname. The Dns class seems unable to do anything other than
actually RESOLVE a hostname. What alternatives are there?
Thanks!
--
Adam Clauss
cabadam@tamu.edu
... more >>
pinvoke using structs
Posted by Einar Høst at 7/7/2004 3:25:08 PM
Hi,
I'm reading data from a tape device using p/invoke. It's working pretty
well, but when I'm trying to get data about the tape device, I'm doing
something wrong. I believe it has something to do with the struct I'm
passing in, but I just can't figure out what. Any help would be much
appreci... more >>
doubt
Posted by Baskar RajaSekharan at 7/7/2004 3:12:37 PM
Hi,
What's the difference between Dispose(), Finalize() and Close ?
Regards,
R.Baskar
... more >>
Using 'new' to override non-virtual methods
Posted by Paul E Collins at 7/7/2004 2:59:17 PM
I am writing a class that inherits from TextBox. My class,
UndoTextBox, extends the standard control by enabling multi-level undo
and redo operations.
Annoyingly, some of the affected properties and methods (such as
CanUndo and Clear) are not virtual and therefore cannot be overridden.
I have... more >>
MSMQ Async Receive
Posted by Vai2000 at 7/7/2004 2:56:15 PM
hi all, I have a winsvc which reads of messages out an MSMQ. Can someone
help with this problem.
If my server goes down and comes back up my WinSvc doesn't picks up messages
accumulated in the MSMQ , although my WinSvc is set to automatic restart
setting.
I have to manually go and restart the s... more >>
Client - server communication
Posted by Christian Westerlund at 7/7/2004 2:38:14 PM
Hi!
Does anyone know if it is possible for a client server communication
easy in .NET with these requirements:
The client always initiates the communication
The server only answers (responds)
Uses port 80, skips firewall
The server computer doesn't have a IIS or web server
I have thoug... more >>
Is this normal practice
Posted by george r smith at 7/7/2004 2:33:01 PM
((CustomerDetail)Parent.Parent.Parent).(null);
... more >>
CSharp/ASP.NET & Foreign characters
Posted by oviaudmurat NO[at]SPAM web.de at 7/7/2004 2:17:51 PM
Goodday group,
how do i make it possible that, given the fact that all required
language packs are installed, a website can present any kind of
language. I want to build
a knowledge management system that meets all criterias for beeing
internationally used. I think it is not that difficult.
... more >>
Closing Modal dialog
Posted by tim NO[at]SPAM sstechs.com at 7/7/2004 2:02:59 PM
I have a page that is opening another page using the showmodaldialog.
In the page being shown there are two asp buttons. When the code
finishes in the click event for either button I want to close the
modal window.
So on the click event of both buttons I put in:
me.registerstartupscri... more >>
Light database
Posted by Alexander Muylaert at 7/7/2004 2:01:47 PM
Hi
I'm looking for a small and light file structure for my app.
I need to store a bunch of small streams. It is always like key - data.
I need to be able to get, add, delete and update these streams. I also
should be able to iterate through the entire table.
No complex sql queries, etc...
... more >>
how to code a test to check if MS Office is already installed
Posted by Jak Sparrow at 7/7/2004 2:00:34 PM
What code can I use to test if Microsoft Office is already installed on a
machine?
Jak S.
... more >>
Execute Win32 application on computer without Framework
Posted by Lubos at 7/7/2004 1:50:21 PM
Hi,
How can i make this.
When i maked a program in C# and then when the program is execute on
computer without .NET Framework, how can i automaticaly invoke instalation
of Framework after execute the program? How files (instalation files for
Framework) i have to distribute with my program?
T... more >>
Setting flags.
Posted by Nick at 7/7/2004 1:05:20 PM
I want to call and API function. And this is just an example, there are
a lot of them that require flags.
This one is from user32.dll
BOOL AnimateWindow(
HWND hwnd,
DWORD dwTime,
DWORD dwFlags
);
I import it like this:
[DllImport("user32.dll",EntryPoint="AnimateWindo... more >>
Use of C-dll, an optimization?
Posted by mrboo NO[at]SPAM ht_u.se at 7/7/2004 12:59:04 PM
I've got a C# program that uses the algorithm for Levenstein Distance.
(C-source at http://www.merriampark.com/ldc.htm) This function is
called _very_ frequently, and uses up lots of cpu time. Therefore Im
interested in any optimizations that would speed things up a bit.
Would there be anytin... more >>
Can not catch KeyDown message from RETURN key
Posted by muntyanu NO[at]SPAM hotmail.com at 7/7/2004 12:53:07 PM
Hi all,
I got a problem with Return key in my C++/C# application.
On CView dilalog I put my C# control. This C# control has couple
other controls nested. I have problem with RichTextBox control which
is at the bottom of my control hierarchy. It does not process
VK_RETURN key down. So I can... more >>
Visual C# 2005 Express Edition
Posted by Allan at 7/7/2004 12:46:17 PM
Have any one evaluated this product, have any comment ? I seen it using
..Net framework 1.2, what main changes of this version?
... more >>
Can trace be turned on/off after it's deployed to Production?
Posted by Jazz at 7/7/2004 12:08:01 PM
Hello,
I have a question about trace as MSDN seems confuses me.(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemDiagnosticsTraceClassTopic.asp).
My answer to my question is NO, as it's decided at compile time.
Basically, from what I understand is if you ... more >>
Language proposal
Posted by cody at 7/7/2004 12:06:27 PM
What if i want to validate the return value of a method but this method has
serveral points where a return statement is.
I know in MSIL there is only one RET opcode in each method and this means
that the method always knows its return value at this point.
int GetValue()
{
try
{
// calcul... more >>
Show DataSet content in a WORD???
Posted by thomaz at 7/7/2004 11:45:39 AM
There is a way to show the result of a sql query (sql that
return a DATASET) direct in the Microsoft Word???
How can i do???
Thanks....... more >>
Viewstate of dynamically created controls
Posted by yufufi at 7/7/2004 11:32:33 AM
My web page contains only a panel control and I add datagrids at runtime.
Viewstate for the datagrids are enabled but every time I postback the page I
have to re bind data to data grids.
I figured out this: (?)
when I do a postback , asp.net looks to the html of the page and can't find
the dat... more >>
Maths
Posted by Mike Kitchen at 7/7/2004 11:18:57 AM
A small poser.
Given 5 random numbers betwen 1 and 6, what is the easiest way to add up the
3 highest numbers.
I have a somewhat long winded method, but I wondered if anyone has some
simple ideas using the Math class, or any other method.
Thanks in advance
... more >>
Is this proper in OO theory?
Posted by Daniel Billingsley at 7/7/2004 11:13:08 AM
The base class obviously can't know anything about a class which inherits
from it, but is it acceptable to have a base class method which will be
given information from an inherited class?
For (a stupid) example:
-----------
public abstract class BaseClass
{
private int _someInteger=... more >>
Dynamically Adding Images
Posted by Jeff Johnson at 7/7/2004 11:08:56 AM
I'm trying to dynamically add images and set their background colour with
hexidecimal values that are being returned in an array.
I'm using this to declare the images:
System.Web.UI.WebControls.Image imgImage = new
System.Web.UI.WebControls.Image();
Is there a better way to declare th... more >>
Find words in strings
Posted by baila_pau NO[at]SPAM hotmail.com at 7/7/2004 11:08:32 AM
Hi !!
I have to find some words in a string.
I can use string.IndexOf, LastIndexOf, etc, but they are case
sensitive.
And there is another problem : If I found the word, I have to get
three words before and after the found word .
Example:
string s = "This is an example about how to find... more >>
French format number question
Posted by Hardy Wang at 7/7/2004 10:46:02 AM
Hi,
How is the number 8000 displayed in French?
8 000
or
8,000?
--
WWW: http://hardywang.1accesshost.com
ICQ: 3359839
yours Hardy
... more >>
how to deploy .NET framework and locate regasm.exe
Posted by Dev at 7/7/2004 10:44:50 AM
Good morning sirs,
I'm new on deploying .NET application, and now I need to deploy one.
I will try myself to find information about the installing of the framework
(if you have some interesting links/info, tell me) but the main question of
this message is:
1) Assuming that I have successf... more >>
Is multicast is right choice?
Posted by softsol NO[at]SPAM hotpop.com at 7/7/2004 9:56:02 AM
Hi,
I am creating an online trading system and I need to display currency
rates on my client machines over internet. can anybody tell me if the
multicasting is the right choice for sending data to thousands of
clients and please let me know if there is any other alternative? or
should i send ... more >>
Sorting Multiple Columns
Posted by MFRASER at 7/7/2004 9:42:51 AM
Does anyone have a simple example on how to sort using the icomparer class?
I want to be able to sort by two properties of an object.
for example first name lastname.
Here is my code
//Here is my IComparer class that takes the MapItem ojbect the mapItem
object contains first and last name... more >>
string compare problem
Posted by David zhu at 7/7/2004 9:34:15 AM
I've got different result when comparing two strings
using "==" and string.Compare().
The two strings seems to have same value "1202002" in
the quick watch, and both have the same length 7 which I
have tried to print out by debug.writeline().
But the "==" operator results false, and st... more >>
file search
Posted by Neil at 7/7/2004 9:23:59 AM
Hello,
I've been given the task of searching all our company computers for PST
files and I want to do this using a c# console app. The ideal script would
query the AD for machine name, then map to the admin share of the
workstation, and search for files ending with extension PST. Any ideas?
... more >>
Call backs from C?
Posted by Siegfried Heintze at 7/7/2004 8:56:55 AM
I'm calling C functions (in a DLL) using platform invoke. This is NOT a COM
dll.
Is it possible to pass a C# function pointer to C so it can call C#
functions?
Thanks,
Siegfried
... more >>
Anybody got a packed bit vector class?
Posted by Siegfried Heintze at 7/7/2004 8:55:18 AM
I have a C# web service and I need to pass a vector of bits implemented as
an array of integers to and from my browser resident javascript client. Does
anybody have a nice class already written with overloaded operator[] that I
could use to test to see if a certain bit is set in the array?
Tha... more >>
Always returning the last item in the ArrayList
Posted by Adam at 7/7/2004 8:20:37 AM
Hi all,
I have an arraylist filled with 4 objects and defined as shown below.
ArrayList items = new ArrayList();
public Item GetItemAt(int index)
{
return (Item)items[index];
}
Problem is, no matter what value I provide for "index", it always returns
the LAST item in the Array... more >>
2GB virtual memory for each process?
Posted by Gregor Wind at 7/7/2004 8:10:22 AM
Hello all,
for my image processing application I need a large amount of virtual memory.
I read, that it is normaly possible to get 2GB of virtual memory for each
process and when you modify the boot.ini file it should be possible to get
3GB vitual memory for one process.
I have tried to alloc... more >>
Datagrid Help
Posted by Brian Conway at 7/7/2004 8:00:27 AM
Does anyone know how to access a field in a row on a datagrid? I need to be
able to pull out a typed in value from the grid, so that I can take that
value and use it as a look up on the click event of a button on that row.
Example. They will type in a UserName, click a button, this will pass ... more >>
Passing Parameters to a Crystal Report and data from more tables
Posted by t_a_maria NO[at]SPAM email.ro at 7/7/2004 7:34:20 AM
Hello!
I am new to Crystal reports an I have problems passing parameters form
outside to Crystal report an creating a report with data from more
than one table
This is the problem:
I have to make a report( VS.NET, C#, Web Form) with 3 parts and with
data from three tables:
1st part: all... more >>
type string
Posted by Marco Ivaldi at 7/7/2004 6:49:19 AM
Hi,
I need load in a string about 500 characters.
String type has a capacity of 256.
What type i can use?
Thanks!... more >>
best method
Posted by ShadowOfTheBeast at 7/7/2004 3:57:01 AM
Can anyone please tell me which is the best method of turning a requirement in to a specification for developing an application as well as correctly estimating correclt how long itwill take,taking into account that there might be delays if thing go wrong, as there are so many ways i would like to kn... more >>
PropertyGrid Filtering
Posted by rocco at 7/7/2004 3:46:01 AM
Hi !
I have an object with Font property, but i don't need all Font's properties. How can i show just some Font properties in PropertyGrid(like font name & size) ?
Thanks... more >>
Can you put vertical text in a textbox/richtextbox
Posted by James Dean at 7/7/2004 3:23:16 AM
Can you make vertical text in a richtextbox or is there any way around
this like make the string vertical outside the textbox then try to paste
it in that way into the textbox?....
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!... more >>
how do I iterate an enumeration.
Posted by Jesper at 7/7/2004 2:28:01 AM
Hi,
I need to walk through the values in an enumeration, how is this accomplished.
brgds
Jesper... more >>
|