all groups > c# > december 2004 > threads for friday december 10
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
C# Exception is Unchecked???
Posted by ChInKPoInt [No MCSD] at 12/10/2004 10:47:41 PM
I am using Visual Studio 2K3 writing a ASP.NET web application. Is there a
way to force the C# compiler to catch possible exception?
In Java, all exceptions thrown MUST BE caught, otherwise compiler would give
you error. In C#, is there a way to do that?
... more >>
C# Exception is Unchecked???
Posted by ChInKPoInt [No MCSD] at 12/10/2004 10:47:30 PM
I am using Visual Studio 2K3 writing a ASP.NET web application. Is there a
way to force the C# compiler to catch possible exception?
In Java, all exceptions thrown MUST BE caught, otherwise compiler would give
you error. In C#, is there a way to do that?
... more >>
WindowsIdentity
Posted by Alberto at 12/10/2004 10:05:46 PM
I'm using the class System.Securiry.Principal.WindowsIdentity to find out if
the user is administrator or not. It works very well in my machine (Wxp
professional) but it doesn't in my customer computer (it is a W98). The help
of this class says: platforms: Windows NT Server 4.0, Nt, W2000, Xp ... more >>
Integration IIS with C#
Posted by Adnan at 12/10/2004 9:59:28 PM
Hi
is it possible to retrieve names of all hosted sites/virtual directories
in my C# application,i want to show all sites and directories in
ComboBox
please help me
-adnan
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it... more >>
Duplicated items in watch window ?
Posted by Sachin at 12/10/2004 9:37:01 PM
Lets say I have following event handler
private void PrintDocument_PrintPage(Object sender, PrintPageEventArgs e)
{
/// some code
}
If I open a watch window on "sender" or on "e", some of the items in watch
window get duplicated, like;
"defaultPageSettings" and "DefaultPageSettings"
... more >>
Monitoring program launches
Posted by Paul Steele at 12/10/2004 9:21:09 PM
Are there any Windows hooks or Win32 API calls that would let a C# program
log program launches?
... more >>
How do I compare DataSourced ComboBox to a value in DataRow?
Posted by MrNobody at 12/10/2004 9:09:02 PM
I seem to be having trouble trying to select the right value in a ComboBox
DataSourced by a DataTable with a value for a DataRow...
For example... In a Windows Form, I have a ComboBox:
ComboBox box = new ComboBox(whatever);
box.DataSource = myDataTable;
box.DataMember = "the_column";
//... more >>
InsertAt Method Problem
Posted by kelvinweb NO[at]SPAM gmail.com at 12/10/2004 8:51:18 PM
Hi All,
I have some question about inserting new row into datatable.
I don't know why my all new rows inserted into end of datatable.
I am using myTable.Rows.InsertAt(dr, 0);
I don't know what is mean of the pos parameter. I also found problem
from MSDN.
row
The DataRow to add.
pos
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Please explain the term Callback
Posted by Zach at 12/10/2004 8:43:16 PM
(1.) What is the general meaning of the term 'callback'?
(2.) What does 'callback' mean, as used in the context of threading?
Many thanks,
Zach.
... more >>
Does .NET have any auto-versioning ?
Posted by MrNobody at 12/10/2004 8:43:03 PM
Is there any way to have .NET IDE to handle versioning for your application?
If for example you want a certain build number to increment every time you
build your project? Would need this version to be accessed by the application
itself.... more >>
Any trick to get this to work in DataColumn of DataTable?
Posted by MrNobody at 12/10/2004 8:41:01 PM
Say I have a table of companies, and a table of industries (like
automobiles, steel, computers, etc..) A company may be involved in
industries, so there's a third table- a mapping table- which just keys a
company to a specific industry. This table can have multiple rows for a
single company... more >>
How to keep window to stay on top of application?
Posted by MrNobody at 12/10/2004 8:33:02 PM
I'd like windows spawned off my by main window to always stay above that main
window, even when you give focus to it... how would I do this? The only
property I find is one which makes that window stay on top of EVERYTHING,
including outside apps... I just want the windows to stay on top of my... more >>
nested databound controls
Posted by Phil Townsend at 12/10/2004 7:44:25 PM
I want to add a datalist to a Repeater control. The data for the
datalist resides in a cached DataSet that contains two related tables.
The data in last child table should be rendered in three columns, so I
have decided on a DataList control for this purpose. A repeater will
render values from t... more >>
Validating time string
Posted by David at 12/10/2004 7:16:41 PM
Hello.
I'm new in regular expresions.
I want to validate time...
For example:
Valid times -> 12:30, 19:59, 0:00, 1:15, 05:40
Invalid times -> 24:00, 12:61, 53:20, 50:60
Can anybody show me regular expresions for validating such time string?
Than you.
... more >>
System.Management Problem
Posted by agarrettb NO[at]SPAM hotmail.com at 12/10/2004 6:46:55 PM
Hi all,
Willy kindly gave me this code recently but it doesn't work when I try
to use a UNC for fileObject. Has anyone ran into this issue?
string fileObject = @"c:\\temp"; // Watch the double Backslashes
using(ManagementObject lfs = new
ManagementObject(@"Win32_LogicalFileSecuritySetting.... more >>
Can't Insert New Row Between Row and Row While Existing DataTable Looping
Posted by kelvinweb NO[at]SPAM gmail.com at 12/10/2004 6:44:08 PM
Hi All,
While the existing datatable is looping, I can insert new row into
datatable, but I can't insert it between datarows. All new rows will
inserted into buttom row. Please advise!... more >>
how to add namespace
Posted by Jacky Luk at 12/10/2004 6:42:19 PM
I'm compiling a C# project with DirectX 9, but the compiler finds that
Microsoft.DirectX namespace is not available.... How to add the namespace to
the C# App, thanks a lot
Jack
... more >>
Please recommend book about design patterns for server application\distrubuted application
Posted by Julia at 12/10/2004 6:33:34 PM
Hi,
I am looking for books about design patterns for server
application.\distrubuted application
I have an Adaptable multithreaded server which send and receive different
type of messages using different type of communication
devices and need to differently process each type of message... more >>
Question about VS2005
Posted by Sahil Malik at 12/10/2004 5:20:21 PM
Fairly simple question - NDocs doesn't work with VS2005.
Can I convert the XML documentation to a readable format using any other
method?
- Sahil Malik
http://dotnetjunkies.com/weblog/sahilmalik
... more >>
Abstract Base form - can I fake it?
Posted by Rachel Suddeth at 12/10/2004 4:52:29 PM
I have a base form (Windows.Forms) that really should be abstract. There are
certain methods that must be overridden. However, if I make it abstract, I
can
not get designer support. (VS tells me " The designer must create an
instance of type
'Bloodhound.MaintBase' but it cannot because the ty... more >>
Invisible Column in System.Data.DataRow?
Posted by Jayme Pechan at 12/10/2004 2:04:47 PM
Does anyone know of a way to make an invisible column in a
System.Data.DataRow? In particular, I need it to work on a web application.
I was planning to store a record identifier in this row so that I could
identify the record on postback. The problem is that all the rows seem to
display a... more >>
Algorithms in C# - book recommendation!
Posted by Anders Borum at 12/10/2004 1:56:53 PM
Hello!
I'm starting to dive into algorithms in general (sorting, trees etc.) and am
currently reading a book from Robert Sedgewick called "Algorithms in C++,
3rd. Edition" and would like other book recommendations on algorithms,
perhaps less hardcore than this one.
Although very interesting... more >>
Toolbar window pop up on event.
Posted by Christopher at 12/10/2004 1:35:06 PM
Greetings,
Is there a way in which to force a ballon or toolbar window to "pop up" upon
reaching a given condition?
Currently I have it changing the text of the toolbar. What I want is to have
display this without the user mousing-over/clicking etc.
This would be similar to a net devic... more >>
regasm question
Posted by Andrew S. Giles at 12/10/2004 1:27:03 PM
How do I get regasm to register my executable as a localserver32 instead of
or in addition to being a localserver32?
Andrew S. Giles... more >>
Changing registry permissions using c#
Posted by Ashok at 12/10/2004 1:24:22 PM
Hello
I need to programmatically change the permissions (ACL) on a specific
registry key in a .NET app. Is there a way to do this in .NET?
Thanks for the help,
Ashok
... more >>
How do I create a global array that can be shared in my program?
Posted by James N at 12/10/2004 1:19:41 PM
Here's the situation: I have 3 webforms in my project. Form 1 allows
the user to select a type of report to generate. There are 2 possible
type of reports, and therefore, Forms 2 and 3 are these two generated
reports. When being generated, both reports will need to use the exact
same data. T... more >>
How do I create a global array that can be shared in my program?
Posted by James N at 12/10/2004 1:19:36 PM
Here's the situation: I have 3 webforms in my project. Form 1 allows
the user to select a type of report to generate. There are 2 possible
type of reports, and therefore, Forms 2 and 3 are these two generated
reports. When being generated, both reports will need to use the exact
same data. T... more >>
How to support single sign on?
Posted by mdb at 12/10/2004 12:52:27 PM
I'm in the process of converting an application that used to be hosted by
IIS to a Windows Forms application using remoting. One of the features
that the web application supported was single sign on - that is, you had to
authenticate to the IIS server, but if you were in the same domain and
... more >>
"could not write to output file" problem
Posted by Daniel Billingsley at 12/10/2004 12:44:08 PM
Today I went to compile a solution I've been working on for months. I've
been off most of the last few months, so there's been a gap in the work, but
I did compile it a few times earlier this week.
Today I get a message:
Could not write to output file
'D:\DevelopmentProjects\Enterprise\Custo... more >>
Design Issues
Posted by Ramakant at 12/10/2004 12:43:46 PM
Hi,
I am creating an object say File in the middle layer. I have designed
methods like Delete, Update etc. I also want the static versions of these
methods. So having the two methods with different signatures. The instance
method is parameterless and calls the static method which has paramerte... more >>
Form completely closed.
Posted by Fabio Negri Cicotti [MCP] at 12/10/2004 12:36:53 PM
Hi all.
I'm getting a problem with forms. I have a tradictional scene where the
first Form comes up with the login and if the user logs in, get the second
form with the whole system. Basic doesn't it? So what I want to do is, when
the user logs in, the login form is completely closed (not h... more >>
C# --> .exe
Posted by Tim Bücker at 12/10/2004 12:21:53 PM
Hello.
Is it somehow possible to create a real exe in C# and not only the IL? I
think for Java there is a possibility...
Greetings and thanks for all information,
Tim.
... more >>
Exporting the System/Application event log
Posted by Z3Stealth at 12/10/2004 12:15:03 PM
I am writing a function in C# that will export the Application and System
event logs to a file for viewing on another PC. I am using the EventLog
class, and am able to browse the events in the log. What I would like to do
is export that data to a .evt file, so that the log can be opened and ... more >>
Event-Event calling
Posted by Steve B. at 12/10/2004 12:09:03 PM
Is it good programming practice to call an event within an event?
I'm I creating recursion somehow somewhere? Does an event (e.g. send, e)
ever end?
I'm sorry, I'm not sure I know what I mean, however, I do know what ever it
is I should be aware of it.
currentcell_event(..)
{
..
..
... more >>
Parse string url to get filename
Posted by Netmonster at 12/10/2004 11:52:22 AM
Hello,
How do I parse a string that contains a URL and get the filename only?
i.e.
string tmp = "http://test.com/downloads/test.exe";
I just want the test.exe..
Thanks in advance.
KC
... more >>
C# code for reading assess database yes/no data type
Posted by Martin at 12/10/2004 11:48:44 AM
Can anyone perhaps tell me what C# code to use to read data from an Access
Database of yes/no data type?
I can read all the database columns except columns of yes/no type. When
trying to read yes/no data type, I get:
System.IndexOutOfRangeException:
Any help will be appreciated.
Mart... more >>
Looking for DirectoryServices.Properties options
Posted by agarrettb NO[at]SPAM hotmail.com at 12/10/2004 11:17:51 AM
Hi all,
I have a directory entry object the specifies "members" in its
properties collection to retrieve:
groupEntry.Properties("member")
Instead of just using "member" to return members I am trying to find a
list of all possible values that Properties takes. Can't seem to
locate it in ... more >>
Sending different types of data thru a Form's constructor
Posted by VMI at 12/10/2004 11:00:55 AM
My Winform's constructor currently takes one parm, which is an integer. But
I need for it to be able to take an integer or an array of integers. Is it
possible to "create" two constructor methods?
Thanks.
... more >>
using RegistryKey to get he value from the registry
Posted by Steve at 12/10/2004 10:21:01 AM
I am using
RegistryKey reademai2 = Registry.LocalMachine.OpenSubKey(launch_email_path,
true);
string launch_email = (String)reademai2.GetValue("");
To get the value, in the registry, value = "C:\Program Files\Internet
Explorer\iexplore.exe" -nohome
but If I used string launch_email = (Strin... more >>
Directx assembly
Posted by Michael at 12/10/2004 10:17:02 AM
I've installed the Directx 9.0 SDK.
Can anybody tell me please what assembly should I import so that all its
namespaces will be available in the VS.net..
Thanks for your help. ... more >>
how to hold a console application open
Posted by Ron at 12/10/2004 9:47:23 AM
Hello,
How do I hold a console application open in C#?
Thanks,
Ron... more >>
Constructor inheritance (or lack thereof)
Posted by Ben Blank at 12/10/2004 9:25:04 AM
I'm writing a family of classes which all inherit most of their methods and
code (including constructors) from a single base class. When attempting to
instance one of the derived classes using parameters, I get CS1501 (no method
with X arguments). Here's a simplified example which mimics the... more >>
postback woes
Posted by echuck2000 at 12/10/2004 8:59:12 AM
Hello,
I have a web user control which dynamically loads controls into a
placeholder control at runtime.
The controls loaded into the placeholder's control collection depends upon
which tab has been selected in the tab (repeater control with buttons)
control.
The problem I'm having... more >>
how to add a splitter to toolbar?
Posted by Fei Li at 12/10/2004 8:33:07 AM
How do I create/set the PrimaryKey ?
Posted by Chris at 12/10/2004 7:09:48 AM
Hello,
The following code works fine, but I need to set the `ISBN` to be the
primary key. I'm using ADO, C# and haven't come across anything that google
could help me with.
Any pointers/tips/help would be appreciated....Thank you for your time....
public bool CreateDataBase()
{
... more >>
Tabcontrol and Listview behave...
Posted by Andreas Fredriksson at 12/10/2004 5:55:03 AM
Hello
I am using a TabControl wich includes a ListView on each TabPage. On the
click event I use the text on each tab to fill the ListView with data. When
the user click on a TabPage a use the Validating event to validate the data
in the ListView.
Now to the problem, it seems that after th... more >>
Directx namespace
Posted by Michael at 12/10/2004 4:55:03 AM
I downloaded the Directx 9.0 SDK
And I try to run its C# samples... but the VS net doesn't find recognize the
using Microsoft.Directx...
How can I import it?
Thanks a lot!!... more >>
Need help in Design
Posted by Rahul at 12/10/2004 3:35:05 AM
I am developing an application which need to support various data sources
like SQL Server, Access, Oracle etc
I am in search of a design pattern which will best suit my requirement.
Can somebody help me in that ..
--
Rahul Deshmukh
MCP - SQL Server 2000... more >>
Starting C#: need some help with this
Posted by AA2e72E at 12/10/2004 2:39:02 AM
This should be easy for a C# programmer.
In the code below:
1. how do I modify the code for the Msg function to return a result (the
button clicked)?
2. how do I trap the value in the Main function?
Thank you.
using System;
using System.Windows.Forms;
namespace mine
{
public class pers... more >>
creating multiple panels
Posted by pfnus NO[at]SPAM hotmail.com at 12/10/2004 1:11:05 AM
Hi,
I want to display different forms when the buttons are clicked and all
the forms are having different controls on it. So instead of adding
new windows forms to the project, i enlarged the form and used many
panels on the same form, which i think is easier to manage.
However, i am having... more >>
get the thread state of another process
Posted by Ha ha at 12/10/2004 1:04:37 AM
how can i get the state of a process by use a nother process.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!... more >>
column expression??
Posted by perspolis at 12/10/2004 12:25:39 AM
I have 3 columns in my datatabel name Total,unit,Price.
I use a column expression in my project..and in this
expression i multiplied two column...
for example MyTable.Columns[3].Expression="Price*Unit";
but when i want to update my datatable an exception arise and
says can not update com... more >>
P/Invoke and out parameter
Posted by Pollux at 12/10/2004 12:09:18 AM
I'm having a problem with something I thought was quite simple.
I have a function in a C DLL. Let's call it SomeFunction. This is the
prototype for SomeFunction:
void SomeFunction(char * anArrayOfChars);
where anArrayOfChars is an out parameter.
I thought all I had to do was declare it... more >>
|