all groups > c# > august 2004 > threads for thursday august 5
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
Get the windows login name
Posted by HK guy at 8/5/2004 11:41:01 PM
How to use C# to get the login name of the windows?
Thank you.... more >>
DataGrid multiselect
Posted by Ghost at 8/5/2004 10:38:39 PM
Can anybody tell me how do I use DataGrid multiselect rows?
What for is it?
... more >>
Can i invoke sse command with c#???
Posted by Àä×ÔȪ at 8/5/2004 9:23:01 PM
Can i invoke SSE command with c#???
Thanks for any way!!!
... more >>
Converting Pascal to C#
Posted by Mark Scott at 8/5/2004 8:32:50 PM
I have downloaded some code for a pascal program to generate permutations of
letters to solve anagrams:
program Anagramm;
{ Gibt alle möglichen Anagramme zu einem Wort aus.
Copyright (c) 8/99 by Bastisoft Int'l, Inc.
All rights reserved. Reproduction in part or in total
prohibited by Lo... more >>
how can I get the label text is verticle?
Posted by Karunakararao at 8/5/2004 7:46:53 PM
Hi all
how can I get the label text is verticle?
Like :
L
A
B
E
L
Regards
Venu.
... more >>
windows service
Posted by Ivan G. at 8/5/2004 6:25:40 PM
Hi
I'm just playing with Visual Studio 2003 trying to write simple windows
service. I've created user service, installer and msi package, my cool
service appeared in MMC service list. But when I try to start it following
message appears:
What's wrong?
P.S. Working uder Windows 2003 Serve... more >>
Transparent Label...
Posted by Daniel at 8/5/2004 6:17:54 PM
Hi,
Sorry to repost this again... I really ran out of idea and resources to
figure out how to make this work... Hope someone will help. Thanks :)
I've tried the transparent for backcolor, but it doesn't work.
The below is the coding to draw the gradient. Could that be other way of
writing?
... more >>
highlighting in textbox control w/o mouse pointer
Posted by VMI at 8/5/2004 5:46:44 PM
I have two textbox controls and I want my application to automatically
highlight in the second textbox control the same amount of chars (and the
same position) that are being highlighted in the first textbox.
For example, if textbox1 has string "File is open" and textbox2 has "File is
closed", a... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Override and System.Collections
Posted by Hoang Do at 8/5/2004 4:44:25 PM
I have a curious question and I am sure someone else must have run into it
before.
Is it a problem with the collections class or am I misunderstanding the
keyword "Overide".
why does this compile:
----------------------------------------------------
using System;
class test {
abstract cl... more >>
Capture user path
Posted by Caio at 8/5/2004 4:34:12 PM
Hi,
I need to capture a file path in the user machine. I'm trying to show a Open
Dialog without success... any ideas?
[]'s
Caio
... more >>
Reading DataSet
Posted by Ghost at 8/5/2004 3:45:15 PM
Hello.
Sorry me if it's a basic question.
Ho do I read value of some field from DataSet?
Can you show me a several examples please?
... more >>
Which control should I use for displaying server status
Posted by Alan Chen at 8/5/2004 3:23:45 PM
Hi,
For a server with GUI, I am using a listview to display an online server
status like this:
Client IP Request # Status
1.1.1.1 1 success
2.2.2.2 2 failed
Since the number of request can be huge (half a million), I am wondering
if this display ... more >>
writing to text file from asp.net application page
Posted by Karunakararao at 8/5/2004 3:13:26 PM
Hi !
Here there is an ASP.NET application. I want to create a text file
from one of my ASP.NET pages
I am trying to do this using File IO. It is throwing an exception
like this
Access to the path
"C:\Inetpub\wwwroot\WOSYSTi\ApplicatioMessage.txt" is denied.
... more >>
Interfaces And Events
Posted by Dan at 8/5/2004 2:09:02 PM
Good Day All,
I have an application that processes several tasks. Depending upon the task
it instantiates the appropriate object to do the actual work. Since I wanted
the application to be extensible the processing objects all implement a given
interface. That way the process can load them ... more >>
JetBrains ReSharper
Posted by Morozov at 8/5/2004 2:07:31 PM
ReSharper is an add-in for Microsoft Visual Studio .NET 2003T that brings
intelligent C# coding assistance, real-time error highlighting and quick
fixing, and advanced refactoring features to this popular development
platform.
ReSharper provides C# developers with many of the same powerful
pr... more >>
Eliminating font in textbox text?
Posted by VMI at 8/5/2004 1:56:44 PM
How can I eliminate the font in the text of a TextBox (or RichTextBox) so
that all the characters have the same size? It would be the same "font"
notepad uses or the DOS Edit uses when typing in a string.
Thanks.
... more >>
Need to Dispose() of menu item?
Posted by Chien Lau at 8/5/2004 12:27:58 PM
Hi,
Consider the following code where 'CM' is a reference to a ContextMenu:
MenuItem[] menuItems=new MenuItem[]{
new MenuItem("Add",new EventHandler(MI_Click)),
new MenuItem("Remove",new EventHandler(MI_Click))
};
CM=new ContextMenu(menuItems);
In the Dispose() override for my... more >>
Validating email addresses using System.Text.RegularExpressions
Posted by dnlwhite NO[at]SPAM dtgnet.com at 8/5/2004 12:06:26 PM
I'm a little confused by this functionality. It doesn't seem to be
behaving like it should.
I am using the following regular expression to validate email
addresses:
"\w+([-+.]\w+)*@\w+([-.]\w+)*\.([a-zA-Z]{2,4})\040*". From what I can
determine it should validate the following rules:
1. ... more >>
How to get the local path of a web service ?
Posted by Anne at 8/5/2004 12:02:37 PM
We have created a web service with the following URL:
"http://localhost/test/testWS.asmx"
In our C# program, we need to know the local path (IIS) corresponding to
this URL.
It should be something like "c:\Program File\web" in our case.
How can we retrieve the local path, knowing the URL, ... more >>
Syntax error in INSERT INTO statement
Posted by Boggie at 8/5/2004 12:01:02 PM
This is my first time posting here and I'm also relatively new to the .NET
environment.
I am inserting a string into a Microsoft Access Database. I get an error
because of the string format. I've researched escape characters and
parameterized sql statements and am still unable to come up ... more >>
do you know how i to create events dynamicaly?
Posted by leon at 8/5/2004 11:16:35 AM
hello friends, i am writing a page aspx and creating controls dinamicaly and
then
i must to create for each control the events as well.
Anybody to know how?????
happy day
lion
... more >>
Need I free the memory allocated in unmanaged code?
Posted by news.microsoft.com at 8/5/2004 11:01:02 AM
In the Pinvoke example, I find the following example:
unmanaged code:
extern "C" PINVOKELIB_API char* TestStringAsResult()
{
char* result = (char*)CoTaskMemAlloc( 64 );
strcpy( result, "This is return value" );
return result;
}
managed code:
public class LibWrap{
[ DllImport( "... more >>
System.Web.HttpRuntime.AppDomainAppPath unavailable at DesignTime?
Posted by Sky Sigal at 8/5/2004 10:59:42 AM
Hello:
Is there a way to get the path of the current website I am working on during designTime (when
current Context == null)?
System.Web.HttpRuntime.AppDomainAppPath is not available during designtime.
Thank you!
Sky
... more >>
VS.NET Dialog editor blows up
Posted by _JoeD at 8/5/2004 10:25:40 AM
I've experienced this several times now: VS net spontaneously vaporizes
controls from a dialog or reverts to older code, even if the dialog has
(supposedly) been saved.
Has anyone seen this?
... more >>
UDPClient stays in house
Posted by M D at 8/5/2004 10:22:46 AM
Microsoft shows a networking sample how to which implements a chat tool.
See the code at
http://samples.gotdotnet.com/quickstart/util/srcview.aspx?path=%2fquicks
tart%2fhowto%2fsamples%2fnet%2fTCPUDP%2fChat.src
The thing works. I can chat with the computer in the next cubicle. At
home I can... more >>
OpenFileDialog - many files
Posted by Piotrek Stachowicz at 8/5/2004 10:21:25 AM
Hi,
Is there any way how can I select more than 1 file in the
OpenFileDialog?! It would be really greate if I could also select a
directory, click open, and recevice all the files in that directory in my
application.
Piotrek
... more >>
Re-launching IDE wizzards
Posted by drizzlys NO[at]SPAM gazeta.pl at 8/5/2004 10:07:31 AM
It drives mu nuts...
Say, I've dropped on my winform a sqlConnection data object. When
setting up the connection string, the IDE displays Data Link wizzard
which allows me to set it up in a neat visual way.
But when I try to modify the sqlConnection I am not able to re-launch
the wizzard. ... more >>
HELP: Error creating window handle
Posted by Altramagnus at 8/5/2004 10:06:10 AM
I have 30 - 40 type of different window.
For each type I need about 20 instances of the window.
When I try to create them, I get "Error creating window handle"
My guess is there is a maximum number of window handle, because if I reduce
to about 2 instances of each window,
it can run. But not ... more >>
override Text but not Image
Posted by Tim Mulholland at 8/5/2004 10:00:15 AM
I've come across a bit of an annoyance i'm hoping someone can explain and/or
get me past.
I'm overriding the Text property on a user control i'm writing that inherits
from System.Windows.Forms.Button.
This works beautifully.
However, when i try to do the same thing for the Image property, i f... more >>
HELP: How to get the outline GraphicsPath?
Posted by Altramagnus at 8/5/2004 9:59:21 AM
I have n number of circles. Some of them might overlap.
I need to draw the outline of all circles but not those overlap areas.
Initially, I am try to use a Region, because a Region object has a Union
function
Creating a GraphicsPath of 1 circle is easy. So I convert each GraphicsPath
to a Reg... more >>
Negative int to positive ulong?
Posted by Curt Krueger at 8/5/2004 9:56:27 AM
I'll spare you the details of why we need this, but what I'm needing to do
is convert -9999 to a positive ulong value.
Any code examples or ideas on how to do this, where to look?
thanks,
Curt
... more >>
Random too Random
Posted by mbelew NO[at]SPAM koiosworks.com at 8/5/2004 9:48:55 AM
I'm trying to synchronize a network app that uses random numbers
generated by System.Random. Rather than pass every randomly generated
number, I just pass the seed. I'm seeing a result that leads me to
believe that a seeded random number is still slightly random. I need
a predictable random nu... more >>
listview and checkboxes
Posted by Piotrek Stachowicz at 8/5/2004 9:42:51 AM
Hi there!
I need to create a listView with 3 columns. First is the file name,
whereas the second and third should contain just a check box (two separate).
Q: Is this possible?! I know that a single entry in the listview may have a
check box, but I'd much rather have two different (for each r... more >>
about user controls
Posted by rainlake at 8/5/2004 9:39:29 AM
i create a class inherted from TextBox and add a attribute as
Myclass MyAttr{get;set;}
the myclass is a class.
at the design mode this attribute is unacessable.how can i show a list in
Property panel to show all the Myclass in my Form to select?
... more >>
Can I extract creation time of Assembly via reflection?
Posted by Sky Sigal at 8/5/2004 9:36:26 AM
Hello:
Been looking at the specs for the WebResources attribute in Net framework 2.0 and looking to emulate
it in 1.1
One of the parts needed extracts the build time of the assembly... But I can't for the life of me
figure out how they did that for . Reflection gets me to a CodeBase -- but not... more >>
Owner drawn listbox
Posted by Patty O'Dors at 8/5/2004 9:27:02 AM
Hi
I have some code to create an ownerdrawn listbox (derived), and when I add
an item to it, the bold text of the first item (the title, 'Collections and
Maturities') mysteriously seems to get bunched up at the right, i.e. squashed
up! any idea why?
The main bit of the code is as such
// ... more >>
Browser Problem
Posted by Stephen at 8/5/2004 8:34:48 AM
Hi,
I have a question. I have created an application using VS.NET and the
application runs fine on IE, (I mean all the image buttons, textboxes etc.)
I understand that validation control features dont work on Netscape, but why
does'nt imagebuttons and buttons work on Netscape.
How do I solve ... more >>
Adding Site Search Capabilities
Posted by Brian Conway at 8/5/2004 7:59:20 AM
Does anyone know how I could add in site search capabilities to a .NET web
site?
... more >>
Multithreading and syncronization
Posted by Chris Fink at 8/5/2004 7:55:03 AM
I have written a dll that performs file IO that will be called frequently. I
have been running into problems where file locking is occuring when a thread
cannot access the file since it is being used. How do I lock this IO
operation down while it is being used and tell the other threads to w... more >>
TCP/IP endian conversion with ICustomMarshaler?
Posted by Marquee at 8/5/2004 7:53:37 AM
Hello,
I have a class that I would like to serialize to non .NET TCP/IP
computers. Therefore the serial data has to endian aware i.e. has to be
converted from Intel little endian to network format (big endian).
Is the ICustomMarshaler the way to go here? I found a dummy
ICustomMarshaler imp... more >>
returning dataset from stored procedure
Posted by Mike P at 8/5/2004 3:12:39 AM
Is it possible to return a dataset from a stored procedure, or would you
need to write the SQL in your .cs file to return the dataset?
Any assistance would be really appreciated.
Cheers,
Mike
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in ... more >>
Multiple selection TreeView
Posted by James Autry at 8/5/2004 2:59:24 AM
Is there a way to multiple select nodes of a TreeView control?
Thanks
... more >>
how to store image in c#(asp.net)
Posted by Raghu Raman via .NET 247 at 8/5/2004 2:37:29 AM
Hi,
I am working on asp.net using c#.i want to store the image on the image web control to my sqlserver db & Retrieving back to the image control.Do you help me how.
With thanks
Raghu
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>ujZuT+Qzqk... more >>
How can I map byte[] data to struct data (preferably using managed code)
Posted by Marquee at 8/5/2004 2:20:38 AM
Hello,
This is my first program c#, my background is c++. One thing I would
like to do is put binary data (e.g. a record from disk, or network
packet) in a struct. In C++ I would create the struct and memcpy() the
data into it thus creating a structured overlay. The struct can have
variable l... more >>
How is it possible to show two modal message boxes in the same thread?
Posted by webmaster NO[at]SPAM vbusers.com at 8/5/2004 2:20:13 AM
OK this has me perplexed, puzzled and bamboozled!
I have a remoting service which I displayed a message box in. I then
wondered what would happen if a client made a call to the service
while the message box was being displayed. Since the call comes in on
a different thread the client call was ... more >>
How to create a StreamReader from an existing StreamReader
Posted by Anders Olsson at 8/5/2004 1:32:56 AM
I need to create a StreamReader which starts from the position of an
existing StreamReader. This way, the second StreamReader can read lines
"ahead" in an own loop, and then I can go back to the outer loop and the
first StreamReader is still where I left it.
I have been trying to do this using... more >>
Precompilation confusion
Posted by Bingo at 8/5/2004 1:02:08 AM
I'm confused by something to do with precompilation...
It is my understanding that if you have an sample.aspx with <%@ page
inherits="sampleNameSpace.sampleClass" %> in visual studio.net then
sample.aspx.cs will automatically be precompiled into bin\sampleProject.dll
Do you have to manuall... more >>
Activator.CreateInstance Type problem
Posted by Frank Pleyer via .NET 247 at 8/5/2004 12:18:09 AM
Hi,
I got the following problem :
I have an defined an Array of different Actions:
public PRootActions[] AllActions = new PRootActions [10];
I got a dynamic method where all Actions or other things like Materials are loaded from a Database to my Actions or Materials Array:
public void... more >>
Are callbacks/events supported by No-Touch deployment
Posted by Niklas at 8/5/2004 12:07:03 AM
Hi
I have a remoting client/server application. The clients subscribes to a
server event. All works fine if client is used as a window application, but
when the client is used with No-Touch deployment over Internet Explorer the
clients do not get the server events any more and no exceptions a... more >>
Apply security permission in class library, fail to call it out!
Posted by Chua Wen Ching at 8/5/2004 12:03:01 AM
Hi there,
I had applied this security permissions in my class library based on fxcop
standards.
Before namespace:
using System.Runtime.InteropServices;
using System.Security.Permissions;
[assembly:IsolatedStorageFilePermission(SecurityAction.RequestMinimum,
UserQuota=1048576)]
[ass... more >>
|