all groups > c# > april 2006 > threads for monday april 3
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
Goofy quirk in MDI title bar
Posted by Andre Ranieri at 4/3/2006 11:27:02 PM
Hello,
I apologize for multiple posting of this question but I used the wrong
acronym earlier. I meant to say MDI.
I would certainly appreciate some feedback to the issue I'm experiencing in
my first major MDI application. When I navigate to a new child form I
usually dispose of the on... more >>
Merging menuitems : nobody knows the answers ???
Posted by cc at 4/3/2006 9:42:19 PM
hi,
i've posted this message at the start of last weekend, maybe that's why I
didn't receive any answer (I know there are better things to do than sit in
front of a computer a whole weekend)
that's why I'll post again now.
--->
when adding items to a MenuStrip VS 2005 defines them as objec... more >>
Can find sync attribute
Posted by Tanja Krammer at 4/3/2006 9:00:28 PM
Dear all,
Somewhere in .NET classes I have seen an attribute, which prevents a method
from being called simultanousely from multiple threads.
I know I cold use Lock or mutext but I prefer to find this attribute.
Can somebody point me where this attribute it, I lost it and can't find.
Thank you... more >>
problems when using user control and class library
Posted by Tony Johansson at 4/3/2006 7:47:45 PM
Hello!!
I use VS 2003 and C#.
I have sent several mail even tried with crossgroup because I want to find
out if my problem
is a bug in .NET or if .NET doesn't support what I do. It's only one of
these left I suppose.
I use project reference where a need to.
I have three project in my so... more >>
Splitting a split container
Posted by TN at 4/3/2006 7:33:32 PM
I have a application where I want to at runtime create splitcontainers
within splitcontainers. I created a splitcontainer and added a
contextmenu to it. When I catch the opening event of the context menu I
capture the sourcecontrol which is the splitcontrol. Problem is I need
to get which ... more >>
session_start/session_end
Posted by Bruno at 4/3/2006 7:19:08 PM
We are attempting to automatically log users off from the Session_End event
in global.asax and set some values on session_start. It is not a critical
task, more of a housekeeping task so that we know if users have closed down
their browsers without logging off first. However, although the code se... more >>
Walk thru all relations in dataset
Posted by Joe at 4/3/2006 5:18:38 PM
Hi
I have a dataset with 3 tables and 2 relations
Is there a way to when I am at 1 row to tell if there is a relation on that
row ???
I have the code hardcoded but try to make it work if the # of tables and
#relations increase or decrease
So I can just pass any dataset and walk thru the r... more >>
Detecting if a File is in Use
Posted by ABN at 4/3/2006 5:14:27 PM
I have a C# (.NET 1.1) application in which I loop over a number of files on
the hard drive and delete them. A few times, I've experienced an exception
that says the file is in use by another process.
So, my question is... Is there anyway to loop over the files and determine
if the files are... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Console Hooks
Posted by Mythran at 4/3/2006 5:00:04 PM
Is it possible to attach Windows WndProc hooks into a Console application
window?
Thanks,
Mythran
... more >>
Beep in c#
Posted by moondaddy at 4/3/2006 4:46:21 PM
I'm a vb guy learning c#. What's the equivalent of the vb beep function in
c#?
--
moondaddy@nospam.nospam
... more >>
Printing problem
Posted by eric at 4/3/2006 4:41:08 PM
I have a text file that I would like to print. I load the contents of
this text file into a string, call it strData. I then pass strData
into my print method, which creates it as a StreamReader. The print
method creates an instance of the PrintDocument_PrintPage method, which
I got from the f... more >>
is there a type available for sorted list of items
Posted by shrishjain NO[at]SPAM gmail.com at 4/3/2006 4:14:13 PM
Hi All,
I need a type where I can store my items in sorted order. And I want to
keep adding items to it, and want it to remain sorted. Is there any
type in .net which I can make use of.
I see there is SortedList<key, value> for hash tables, but could find
anything for a sorted list.
Curr... more >>
goofy menu thing in WMI application title bar
Posted by Andre Ranieri at 4/3/2006 4:10:02 PM
Hello,
I would certainly appreciate some feedback to the issue I'm experiencing in
my first major WMI application. When I navigate to a new child form I
usually dispose of the one I'm navigating from, but I often end up with
multiple title bars as shown in the following screenshot. I've t... more >>
Patterns for business, presentation and data layers
Posted by AAJ at 4/3/2006 4:05:54 PM
Hi all
I'm trying to use windows forms currency manager (CF2.0) via a business
layer to a data layer. Has anyone got any good links or can anyone recommend
any books on patterns that cover this type of thing.
thanks in advance
Andy
... more >>
C# classpath equivalent?
Posted by jeremiah johnson at 4/3/2006 4:04:57 PM
Okay this is going to sound really dumb. Skeet, you can poke fun of me
in your own special way if you see fit.
Is there a way to reproduce the CLASSPATH functionality of Java within
C#? Would there ever be a reason to do this? Is there a reason *not*
to do this? There must be, I think, ... more >>
Connect a socket with timeout
Posted by Mike Schilling at 4/3/2006 4:00:26 PM
How does one put a timeout on an attempt to connect a socket? There's no
timeout parameter to Socket.Connect(), and while there are socket options
for send and receive timeouts, there is none for connect timeout.
... more >>
IDE Editor Bug?
Posted by Frank Rizzo at 4/3/2006 3:36:38 PM
I have a winforms app in vs2005 and when it is running, I drop down the
list of functions from the navbar in the IDE. Let's say I have a
function called GetCustomer. So I press letter G to get to that
function quick. Instead of taking me to that function, the IDE brings
up a message box, ... more >>
Fastest Media File Search Method
Posted by michael.gerety NO[at]SPAM gmail.com at 4/3/2006 3:06:14 PM
I remember seeing really fast disk searching code from MSDN Magazine or
something like that using .NET 2.0, but I can't find it.
Basically I'm developing jukebox software that will do an initial
search of the entire hard drive(s) and catalogue any media files by
extracting tags and/or using fi... more >>
app.config missing in setup
Posted by Pieter at 4/3/2006 2:25:45 PM
Hi,
When building my C#-dll, it creates the MyApplication.dll.config in the
Release\bin\-directory.
But when installing via a Setup, it doesn't copy this file.
Any idea why this could happen? and a solution?
Thanks a lot in advance,
Pieter
... more >>
third-party components
Posted by Deano at 4/3/2006 1:24:28 PM
Can anyone provide any links to companies supplying quality components for C
Sharp? I'm looking in particular to see if there's anything out resembling
MS Access subforms and just generally to see what is available that I could
plug into my C sharp apps.
cheers
Martin
BTW should I refer t... more >>
What parameter is correct?
Posted by CesarTabares at 4/3/2006 1:01:02 PM
Hello, in the method
void AppStartingUp(object sender, StartingUpCancelEventArgs e) in the file
MyApp.xaml.cs
the last parameter is clearly wrong, as the intellisense in VS 2005 doesn't
give that alternative when i type s after the comma. So i was just wandering
what the correct paramete... more >>
How to check for copy file completion
Posted by booksnore at 4/3/2006 12:10:19 PM
Riddle me this... I have an app which listens to a windows folder for
files to appear and then processes the file based on the file format. My
question is if a really big file appears in the folder (say over 20 G)
then it takes more than 20 minutes for the file to be copied there. As
my listener... more >>
event handler signature private/public?
Posted by Raj Wall at 4/3/2006 11:18:51 AM
I have an event handler inside a thread class that needs to have access to
thread specific information (versus similar info in other threads). If I
change the handler's method signature to "public" from "private" VS05 "sees"
the instance variables I want.
My question is, is this "cheating" ... more >>
Capture video from webcam to webForm
Posted by vmorikawa NO[at]SPAM gmail.com at 4/3/2006 10:35:56 AM
Please, does anyone knows how to capture the video from webcam to a
webform ??
I found some examples but to Windows Forms.
I would like to make an application to see what's happen in my house
from anywhere .
It=B4s possible ?
thanks for any help.
Valmir.
... more >>
Question on inheritance.
Posted by tshad at 4/3/2006 10:21:44 AM
I am playing with classes and got the following error:
c:\inetpub\wwwroot\hello\SecureService.asmx(135) : warning BC40004: variable
'Se
ssionKey' conflicts with variable 'SessionKey' in the base class
'AuthHeader' an
d so should be declared 'Shadows'.
Public SessionKey As String
... more >>
How can I work with CAB files
Posted by Pohihihi at 4/3/2006 10:12:09 AM
Hello NG,
I have few assemblies that I want them to be in a cab file while =
deployed. Those asms are referenced in the program. How can I use cab =
files while running the program or in other words what should I do so =
that my program still runs when my distributed assemblies are combined =
... more >>
Generic event args in delegate?
Posted by David Veeneman at 4/3/2006 10:11:48 AM
I have several events that pass a value in their event args. One event
passes an int, another a string, another a DateTime, and so on. Rather than
creating a separate set of event args for each type, I have created a
generic event args class that looks like this:
public class ItemChangi... more >>
Class library and config files...again
Posted by OO at 4/3/2006 9:45:59 AM
Hi all,
OK loads of posts on here about developers trying to use an app.config
for a dll class library. Of course I would normally say the config
file is down to the app domain of the application calling your class
library: a web app or an exe.
However....in my case, I need to call this cl... more >>
Is it possible to create an autohiding tool-panel with a pin like VS uses ?
Posted by garyusenet NO[at]SPAM myway.com at 4/3/2006 9:35:44 AM
Hi,
I have a form, which has a treeview control and a text area. Each node
has it's own rich text associated with it which I use to fill the text
box.
Once a node is selected and editing begun there is no need for the
treeview to be displayed. What I'm looking for is a way of creating a
to... more >>
Reflection - Loading assemblies with unloaded references
Posted by jnick at 4/3/2006 9:27:02 AM
I have the predicament of having to load several assemblies on the fly and
when I do so, I get an exception stating that one of the referenced
assemblies cannot be found. Is there any way to recurse into an assembly to
discover the referenced assemblies without actually loading the root assemb... more >>
Unhandled exception catching on secondary threads.
Posted by Mike Binks at 4/3/2006 8:28:02 AM
I wish to make sure all unhandled exceptions (UE) are handled by a central
handler.
For primary thread UEs, this may be done by
string exceptionText;
AppDomain.CurrentDomain.UnhandledException +=
delegate(object sender, UnhandledExceptionEventArgs e)... more >>
Boxing and UnBoxing
Posted by Joe at 4/3/2006 8:14:21 AM
Consider the following code loop:
for(int x = 0; x < 100; x++)
{
string sLoop = "Loop # " + (x+1).ToString();
Console.WriteLine(x);
}
I was told that the (x+1).ToString() was a boxing statement, and would
therefore cause a memory leak because there's no explicit unboxing
statem... more >>
The NodeMouseDoubleClick event passes the incorrect node in the TreeNodeMouseClickEventArgs
Posted by Tom at 4/3/2006 7:54:47 AM
Hello everyone,
I found a frustrating behavior in the TreeView control in .NET 2.0.
The TreeNode that is passed in the TreeNodeMouseClickEventArgs is
incorrect when the TreeView automatically scrolls upon expanding. Here
is some code that will reproduce the problem:
using System;
using Sy... more >>
constrained generic base class AND implementing an interface
Posted by ProjectNut at 4/3/2006 7:43:43 AM
what is the syntax for implementing an interface in a generic class
that has a constrained base class
example:
class myclass<T>: mybase<T> where T: IComparable
{
}
Now, I want myclass<T> to implement IMyInterface. What is the syntax
for this?
class myclass<T>:mybase<T> where T:IComp... more >>
Installer - Passing a Service Name
Posted by Andy at 4/3/2006 7:32:01 AM
Hello Guys:
I am not sure if this is the place for this question, but I can't find a
proper place for it. We have a C# application that uses an installer to
install a service. However: we cannot find how to pass a Service Name to
the installer, in the event we want to install multiple se... more >>
Take a look at that security pack which comes from MS Corporation
Posted by LOLA at 4/3/2006 7:23:27 AM
Microsoft Customer
this is the latest version of security update, the
"April 2006, Cumulative Patch" update which fixes
all known security vulnerabilities affecting
MS Internet Explorer, MS Outlook and MS Outlook Express.
Install now to protect your computer
from these vulnerabilities, the m... more >>
exception
Posted by mensuur at 4/3/2006 7:17:03 AM
hi,
i have an exception in my code for a contact form:
protected void SendMessage_Click(object sender, EventArgs e)
{
MailMessage msg = new MailMessage();
msg.From = new MailAddress(FromAddress.Text);
string[] cc = ToAddress.Text.Split(';');
foreach (st... more >>
net stop service
Posted by yqyq22 at 4/3/2006 6:45:59 AM
Hi all,
Is there a way to stop a service eg. net stop "dns client" without to
invoke .bat or .cmd?
I didn't find nothing ( no class etc) with google about this.
THANKS IN ADVANCE.
... more >>
RegExp question
Posted by Hulk at 4/3/2006 5:34:13 AM
Hello!
I have a following RegExp ^\d{5}?$
It should accept strings containing excatly fice numbers or an empty
string...
but it does not. Can anyone see whats wrong?
Code snippet checking this is below
// Sentence contains ^\d{5}?$
Regex RegExp = new Regex(Sentence, RegexOptions.Ig... more >>
background worker and timer locks
Posted by bryanjhogan NO[at]SPAM gmail.com at 4/3/2006 5:31:29 AM
Hi all,
I have a GUI application that uses timers
--------------------
TimerCallback readDelegate;
TimerCallback deleteDelegate;
private Timer readTimer;
private Timer deleteTimer;
.
readDelegate = new TimerCallback(myMailHelper.ReadRando... more >>
Remoting - Is server running?
Posted by Olie at 4/3/2006 4:59:56 AM
I have a number of applications that need to access the same object at
different times and any one of these programs may be running at any one
time. I do not have a specific application that could act as the
server. So I want to give each application the capability of being the
server and the fi... more >>
Capturing Keypress - No Keycode property available ??
Posted by sULs at 4/3/2006 4:14:06 AM
Hi all
Hoping someone can help !!
I am trying to catch F2 - 6 key presses in a winforms application
Code as follows
private void frmMain_KeyPress(object sender,
System.Windows.Forms.KeyPressEventArgs e)
{
/*MessageBox.Show(e.KeyChar.ToString());*/
if(e.KeyCode == Keys.F2 )
... more >>
How to databind to a mysql database in vs2005 using basic/ or c#
Posted by garyusenet NO[at]SPAM myway.com at 4/3/2006 3:58:17 AM
Hello,
I know how to create a mysql database and open it in code.
I don't know how to databind to it.
i have a simple form with 5 controls text controls. I want to enter
text into the controls, and write this text to a corresponding column
in the mysql database.
how do i do this please... more >>
Implementing logging of user actions which will effect DB - Best Practice
Posted by philip.mckee NO[at]SPAM gmail.com at 4/3/2006 3:44:20 AM
Hi
Looking for some very general advice. I have a classic asp content
management application which I am porting to ASP.NET. The database is
SQL server, and it is hoped that we can leverage this without
significant alterations. There is approx 30 users accessing and
managing information using th... more >>
UDPListener: System.Net.Sockets.SocketException
Posted by J C at 4/3/2006 2:55:18 AM
Hi,
I'm using UDPClient to make a simple DNS server. I notice that
intermittently and unpredictibly I get:
Unhandled Exception: System.Net.Sockets.SocketException: An existing
connection
was forcibly closed by the remote host
at System.Net.Sockets.Socket.ReceiveFrom(Byte[] buffer, In... more >>
sql query designer; windows forms .Net 2.0
Posted by Iwan Petrow at 4/3/2006 2:17:03 AM
Hi,
I want to integrate something like query designer in a windows form
application.
Is there something done (like a conrtol) which I can use?
Or any other ideas?
Thanks.
... more >>
encode the code page 1256 to 864
Posted by shanab at 4/3/2006 1:41:02 AM
how i can encoding the arabic(1256) to IBM(864) code page ?
i faced alot of problems when i encode these .
... more >>
Display Issue when embedding forms into tabpages
Posted by Dominic via DotNetMonster.com at 4/3/2006 12:35:21 AM
With a little help from someone in this forum, I am currently creating forms
and then embedding them into tabpages, so that I get a display similar to
Lotus Notes. I have one container window, so I am using this approach as an
alternative to a MDI container.
My issue is that when I resize the ... more >>
Enterprise Library - Logging performances
Posted by Udi at 4/3/2006 12:29:15 AM
Hi All,
I'm developping an application that has a very strong logging
requirement -
we should be able to log up to 5000 messages per second, most of them
are reletively small -(16 - 30 Words) while few of them might get to
1Kb in size. The data is binary (numbers) that should be converted to
t... more >>
My.Computer.FileSystem.SpecialDirectories.CurrentUserApplicationData in Csharp?
Posted by Pieter at 4/3/2006 12:00:00 AM
Hi,
What's the equivalent in C# for
My.Computer.FileSystem.SpecialDirectories.CurrentUserApplicationData (from
VB.NET)? I noticed that there isn't something like the My-object in C#? Or
is there?
What I need in this case is this: C:\Documents and
Settings\MyUserName\Application Data\My... more >>
Problem in Voice transfer in C# using Sockets
Posted by Siddharth via DotNetMonster.com at 4/3/2006 12:00:00 AM
Hello friends,
I am a B.Tech Final year student of Computer science. I have developed an
Instant messenger which currently supports Text Messaging. I wanted to
incorporate the facility of Video and Audio Messaging into this messenger.
I have already developed the Capture module for record... more >>
Environment.Newline
Posted by Peter Kirk at 4/3/2006 12:00:00 AM
Hi
I would like to ask a little bit about the value Environment.Newline: what
is it and what is the point of it? Ok, I can see in the docs that it
represents "newline" for the current platform - I assume that it is a
runtime property, and not compile time?
But won't it always be the same... more >>
Write SQL query into Xml
Posted by Jason Huang at 4/3/2006 12:00:00 AM
Hi,
In my C# windows form project, I would like to have a function which will
write the SQL query result into an XML file.
Would someone tell me how to do this?
Thanks for help.
Jason
... more >>
Listview ColumnsReorder
Posted by Asim Tozlu at 4/3/2006 12:00:00 AM
Hi,
i can reorder the column's in my listview. But when i read the columns with:
foreach(ColumnHeader column in this.listViewAdressen.Columns)
{
sExcelColums += column.Text + ";";
}
i get the origin Order of my columns.
How can i read my columns after reordering.
thanks
greet... more >>
Open files with shell context menu
Posted by Johan at 4/3/2006 12:00:00 AM
I'm trying to send files from the shell context menu to my application.
To do this I have added a registry key like this:
"hkey_classes_root\*\shell\Default" = "C:\my_program.exe" "%1"
Now, this works for one file but if I try to send multiple files, then
multiple instances of my applicatio... more >>
web.config
Posted by beachboy at 4/3/2006 12:00:00 AM
if asp.net application has 2 languages, and i want to set 2 error page for
each language
except split 2 language into 2 applications, any solutions? how can i do
that??
Thanks in advanced.
<customErrors defaultRedirect="errorpage.aspx" mode="RemoteOnly">
<error statusCode="404" redirec... more >>
how to trancate
Posted by uto at 4/3/2006 12:00:00 AM
i'd like to trancate like this.
1.555 => 1
2.6655 = > 2
0.901923 = > 0
and
1.56 => 1.5
1.34 => 1.3
1.99 => 1.9
how can i do this in c#
... more >>
|