all groups > c# > may 2005 > threads for friday may 6
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
DataGrid Column Heading
Posted by Bill at 5/6/2005 8:32:16 PM
Hi
I am trying to change the Heading Name on a Datagrid from BudgID to "Budget
ID"
I am loading the data in fine but the HeaderText does not change or any of
the other properties. The program runs without errors.
Any suggestions
Thanks in advance
Bill
private void TheD... more >>
# Coding Convention
Posted by Uncle Ben at 5/6/2005 8:28:30 PM
I'm starting a new ASP.NET C# project and would like to adopt a good coding
convention. Things like indentation is 3 spaces, lining up the brace
brackets, naming functions using Mixed case, etc.
If anyone could direct me to such a document, it would be greatly
appreciated.
Thank you.
... more >>
Tokenize a string in C#
Posted by James at 5/6/2005 5:09:09 PM
Hi,
I am looking for a stringtokenizer class/method in C#, but can't find one.
The similar classes in Java and C++ are StringTokenizer and
CStringT::tokenize respectively. I need to keep a current position within the
string and change the delimiters dynamically when going throught the strin... more >>
How can I associate a value with an enum type?
Posted by steve bull at 5/6/2005 4:10:41 PM
I am sure this is a really basic question but I don't see an easy way to do it.
I have an enum
public enum ColorType
{
red = 0,
green = 1,
blue = 2,
hue = 3,
saturation = 4,
brightness = 5
}
How can I associate a fixed value with each enum type? E.g. red is 255, hue=360 etc.... more >>
Need some help with a regular expression
Posted by User N at 5/6/2005 3:41:05 PM
I need a re that matchs an HTML anchor element, extracting the
href and text, given some of the text. For example, given the
following two line input:
<a href="a">bogus</a><a href="b">foobar</a>
<a href="c"><b>foo</b>bar</a>
I want to match the anchors that contain "bar" in the text. A si... more >>
How many users connected to IIS?
Posted by Sid S. at 5/6/2005 1:40:06 PM
Is there a way to programatically tell how many users are connected to IIS
with c#?
Or maybe some API?
I don't want to restrict a certain amout of users, just restrict some
features.
Thanks in advance.
Sid S.
... more >>
How to loop through FORM elements?
Posted by Brett at 5/6/2005 1:22:03 PM
The following code will allow me to loop through FORM tags but not the
elements in them. I may have five forms on one page. How do I loop through
form elements in the forth FORM?
private SHDocVw.InternetExplorer IE_Inst = new
SHDocVw.InternetExplorerClass();
.....
mshtml.IHTMLDocument2 ... more >>
C# WebApp - with HTTP Authentication turned on
Posted by Adam Clauss at 5/6/2005 10:49:29 AM
I have a webapp (actually several) who's folder is setup to use HTTP
Authentication through IIS (not using any .NET Authentication in the
application itself).
Everytime I open up the solution in VS2003, it prompts me for the
username/password - - for each webapp even though it is the same
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
User Controls...
Posted by ASPWannabe at 5/6/2005 10:49:07 AM
I'm kind of lost about user controls...
If
A)I have a UserControl UC which I include in a Page P
B)I have form Elements in UC (Its a login form)
When I click the 'Submit' button (Included in UC) do I
build all the events in the asCx.cs codebehind file, or in
the asPx.cs codebehind?
... more >>
Anyone know sql in c#?
Posted by trint at 5/6/2005 10:18:43 AM
I need to get the identity as soon as it is created at INSERT, but I'm
not haveing any luck at it. Here is my code:
string strSQL5 = "INSERT INTO tblTravelDetail(MemberId, " +
" Comments, " +
" TravelEventId, " +
" OrderId, " +
" ItemID, " +
... more >>
Good_morning_or_good_evening_depending_upon_your_location._I_want_to_ask_you_the_most_important_question_of_your_life._Your_joy_or_sorrow_for_all_eter
Posted by Ronald700117 NO[at]SPAM yahoo.com at 5/6/2005 10:05:32 AM
This is the most important question of your life.
The question is: Are you saved?
It is not a question of how good you are,
nor if you are a church member, but are you saved?
Are you sure you will go to Heaven when you die?
The reason some people don't know for sure if they
are going... more >>
Error when adding array to datatable
Posted by a at 5/6/2005 10:01:01 AM
I get the error that "Argument"1": cannot convert from
'string' to 'System.Data.DataRow' at the foreach loop to add rows to the
DataTable...any ideas how to fix this?
Paul
==================================================
private void button1_Click(object sender, System.EventArgs e... more >>
Trouble With DirectoryInfo
Posted by RichL at 5/6/2005 9:53:30 AM
Hi,
I have taken over a C# utility that uses the DirectoryInfo class. The
production version of the app works fine, but when I try to run it on my PC
or another server I get the message "Access to the path "C:\System Volume
Information" is denied." I have admin rights on my PC and the ser... more >>
2005 Beta 2 compile error
Posted by Wayne at 5/6/2005 8:40:00 AM
This may not be the best group to ask in as the question is about the beta,
if there is a better place please point me to it.
I've had beta 1 installed, after a re-install of the OS this weekend I
installed beta 2. I opened a project that I had written with beta 1 and
tried to compile it, when... more >>
C-Omega concurrency improvement idea
Posted by Shawn B. at 5/6/2005 8:26:03 AM
Greetings,
First of all, I'm not exactly sure how seriously to take the C-Omega project
(http://research.microsoft.com/Comega/). It appears to be a potential
glimpse into what C# 3.0 might become. It has had some press recently and I
have taken a small interest in it. Particularily, I am in... more >>
interface question
Posted by vidalsasoon at 5/6/2005 8:13:53 AM
//I have a class that has 2 "Render()" implementations.
//I declare them like this:
public class ComplexShape : IEffect, INoEffect{
IEffect.Render(){
...
}
INoEffect.Render(){
...
}
}
//I also have a second class that implements a single rend... more >>
What is the HashCode
Posted by Josema at 5/6/2005 8:10:11 AM
Hi to all,
In a lot of type of classes in the .net framework classes library i see that
has the method GethashCode.
What is the HashCode of anything, and in wich kind of functionality are used
for?
--
Thanks
Regards.
Josema... more >>
preventing animation when minimizing a window
Posted by NL at 5/6/2005 8:08:09 AM
Hi,
Does anybody know how to turn off the animation Windows does with a window
as it's minimized/maximized to the taskbar?
I have an app which, when minimized, syncs to any other open instances of
the app and tells them to minimize. If I have more than a couple instances
open, the user ends... more >>
GetHashCode returns the same value for two doubles
Posted by Dan at 5/6/2005 7:45:41 AM
Hi,
I did a test in C#
double x1 = 1.0;
double x2 = 5.29980882362664E-315;
int h1 = x1.GetHashCode();
int h2 = x2.GetHashCode();
It turned out that both h1 and h2 = 1072693248
It is not unique! Is it a defect?
Thanks.
Dan
... more >>
DateTime Formating
Posted by sudip at 5/6/2005 7:40:05 AM
I hav a log.txt file which contains following DateTime format > Fri May 06
18:05:54 GMT+05:30 2005 . so plzz help me how to accept this format & update
in my DataBase, so that my webapplication DataGrid can display above DateTime
format.... more >>
Help! Stupid C# Problem
Posted by StillStuckOnJava at 5/6/2005 7:15:44 AM
I'm having a stupid problem with V.S./C#. I've created a class and two
subclasses, and I want to instantiate either of hte subclasses after users
make a selection. Then I want to use that class to modify its members as
users make more selections. IT'S NOT WORKING DAMN IT!
The following is m... more >>
Delete from multiline textbox
Posted by ryanbreakspear NO[at]SPAM gmail.com at 5/6/2005 6:52:28 AM
Hi all,
Is there an easy way to delete the first line from a multi line text
box? I've tried assigning the .Lines to various containers but can't
seem to find an easy way to get the data back. I don't want to iterate
through them.
There must be an easy way!
Thanks in advance
Ryan
... more >>
Reading the custom error messages from SQL
Posted by Mihaly at 5/6/2005 5:38:04 AM
I have a stored procedure in SQL Server 2000, and I want to read the error
messages from this stored procedure.
Please help me for this question:
This is the stored procedure. Please supose than Column2 has no 0 values:
CREATE PROCEDURE dbo.ErrorTest
AS
SELECT Column1 FROM Table WHERE Col... more >>
Run exe as a Service
Posted by Dan Pavel at 5/6/2005 5:36:22 AM
Hi, I have an exe application in C# an I want to make it run like a
Windows Service. When the machine reboots accidentaly (over night) and
there is nobody to enter a user and a password (logon), the exe to start
at startup, like a service. Ist that possible ?
Thank you
*** Sent via Develope... more >>
How to convert WindowsIdentity.Token that is IntPtr type to string
Posted by MilanB at 5/6/2005 4:10:02 AM
Hello
How to convert value of WindowsIdentity.Token that is IntPtr type to string
type?
Thanks... more >>
Counting the Items in a dataset
Posted by Stephen at 5/6/2005 2:07:22 AM
I'm trying to do an item count of a datagrid but my problem is that the
datagrid is paged and I only get a count for the number of rows in one page
as oppose to the whole dataset which has been bound to it.
Is there some easy way to count the items in a dataset instead or another
way aroun... more >>
problem related to Web.Config
Posted by Vikrant Dogra at 5/6/2005 2:04:03 AM
Can we used more than one Web.Config in r project?if so?
how?give eg.
thanx... more >>
problem regarding assemblies
Posted by Atul Sharma at 5/6/2005 2:01:14 AM
hi friends
i m getting problem regarding wht assemblies are?
why they r used?
& how they r created?
... more >>
Does JIT compiler affect Gdi+ performance in any way
Posted by James dean at 5/6/2005 1:08:45 AM
From what i have read and seen the JIT compiler is very efficient and
only compiles that code that it needs at runtime therefore it helps, not
hinders performance. Does the JIT compiler make Gdi+ slower in any way?.
*** Sent via Developersdex http://www.developersdex.com ***... more >>
Extra spaces after decryption
Posted by Carlos Santos at 5/6/2005 1:05:01 AM
I tried the example from the RijndaelManaged class in
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemsecuritycryptographyrijndaelmanagedclasstopic.asp
and I noticed that the result of the roundtrip has some extra spaces, so
that the result isn't equal to t... more >>
Navigation bar in asp.net
Posted by Captain BirdsEye at 5/6/2005 1:04:34 AM
Hi,
I've created html websites before and used javascript
menus.
I'm now currently creating an aspx website. Is there a
way to write a simple navigation. e.g. mouseover a link
and get a list of navigation subitems. Can it also use
stylesheets? As you can tell, i'm a bit confused.
... more >>
a question about this book
Posted by John Salerno at 5/6/2005 12:38:20 AM
I'm thinking about reading Beginning C# Objects: From Concepts to Code
because I still don't have a great grasp of objects, but I wonder if C#
2.0 will change things enough that a lot of what's in the book will no
longer be relevant or applicable? I know generics are the big change,
but sinc... more >>
Help with effective algorithm
Posted by Tamir Khason at 5/6/2005 12:00:00 AM
I have parent-child hashtable with more then 900K items and I have to build
all pathes for this. E.G
Key ParentKey
1 0
2 1
3 2
4 8
5 3
6 1
7 3
8 7
To build:
0-1-2-3-5
0-1-6
0-1-2-3-7-8-9-4
This is just example.
I tried 5 d... more >>
UnauthorizedAccessException in service. Confused
Posted by Claire at 5/6/2005 12:00:00 AM
I'm testing my first service and I'm receiving the above exception whenever
I attempt to open some files for writing. Reading is fine.
The files are on the same directory as my service application and hold
application configuration settings.
On the other hand, a log file that I write to the c:... more >>
Colour Console Application
Posted by Publicjoe at 5/6/2005 12:00:00 AM
I am working on a little app which uses colour in the console window. I have
created a class to extend the console functionality but the ClearScreen
method does not work correctly. I am enclosing a complete project
to show what happens. If anybody has an idea of how to fix
this, please let me kn... more >>
code error
Posted by Hrcko at 5/6/2005 12:00:00 AM
what is wrong with this code ?
listUsers.DisplayMember = "UserName";
string UserIDSelect = "UserID not in "+ "(Select UserID "+
"From Users where Users.UserID ='" +
nUserID + "'" + ")";
DataRow[] Urows = db.dataSetAccounts.Users.Select(UserID... more >>
Breakpoint problem
Posted by Ably+ at 5/6/2005 12:00:00 AM
I have problem to use brakpoints. Whereever I use breakpoints it doesn't
works. i have started with F5 like usually but it never stops???
The message is:
The breakpoint will not currently be hit. No symbols have been loaded for
this document.
Breakpoint mark becomes question mar... more >>
Number encoding in JET database
Posted by Søren Reinke at 5/6/2005 12:00:00 AM
Hi there
I am working on a little dive logbook manager in C#, and have a little
problem with getting data into a JET database.
When importing a CSV file i fill a Dataset with data from the CSV file, i
can see in the debugger that a number is represented as '6.7' in a variable
of the type... more >>
How to submit FORM in IE?
Posted by Brett at 5/6/2005 12:00:00 AM
In VB.NET, I can do:
Me.IE_Inst.Document.Forms(formIndex).Submit()
However, in C#, there isn't a forms part. What would be the equivalent?
IE_Inst is:
private SHDocVw.InternetExplorer IE_Inst = new
SHDocVw.InternetExplorerClass();
Thanks,
Brett
... more >>
Remove Event Handlers in C#
Posted by Prasad Dannani at 5/6/2005 12:00:00 AM
Hi,
I am currently working on C#.
I need to temporarity add remove event handlers
which i was done in VB.NET using Addhandler and RemoveHandler functions.
How to do it in c#
Thanks in Advance
Prasad Dannani
... more >>
checkedlistBox and listBox
Posted by Hrvoje Voda at 5/6/2005 12:00:00 AM
I have a users name in checkedlistBox and usersID in listBox.
How to connect those to lists to get a userID from listBox depending on
userName from checkedlistBox?
Hrcko
... more >>
Installers for services
Posted by Claire at 5/6/2005 12:00:00 AM
I've created an installer project for my dotnet windows service from visual
studio. I've run the installer and it's depositing the files in their
directory ok
What do I now need to do to install/register the service? I notice that COM
objects are provided for registering automatically but not... more >>
Something for the C#/JIT wishlist.
Posted by Olaf Baeyens at 5/6/2005 12:00:00 AM
Something for the C#/JIT wishlist.
I am looking at the generated IL Assembler code and the generated real x86
code and I am facinated about the quality of the generated code. It comes to
near c++ generated code without optimizing. The same type of code that you
would have if you use the VC 200... more >>
Placing controls correctly on panel.
Posted by objectref at 5/6/2005 12:00:00 AM
Hi to all folks,
i have the following problem and i have spent many hours to solve it
but without any result, so, here it is:
Imagine that you have a mdi-child form that has a panel on it, a panel that
it's
height has the value of 3000. The panel also has a vertical scrollbar so i
can... more >>
Check Process Status in C#
Posted by johnson.bruno at 5/6/2005 12:00:00 AM
Hi,
I want to check whether a process is running or not in a C# console
application. Is there any method which will allow me to pass process name
and get number of instances of it
Thanks
JBruno
... more >>
CodeDom
Posted by Picho at 5/6/2005 12:00:00 AM
Hi guys,
I am writing an application that uses CodeDom (dynammicly creating
assemblies).
the user will have to type in code that will use classes defined in another
assembly.
obviously the code will be entered as text and then compiled at run time.
my question is simple:
is there a way ... more >>
|