all groups > c# > august 2005 > threads for wednesday august 24
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
Parsing a String to System.Uri
Posted by James at 8/24/2005 11:48:23 PM
Hi everyone,
I'm making a simple fast loading web browser in C#. How to I make it so
you can type in a web address and click "Go" to...
private void btnGo_Click(event sender, EventArgs e)
{
wbrWebBrowser.Url = txtAddress.Text;
}
....it was the only way I could think of. Any ideas?
... more >>
Just a quick survey... What is your favourite .NET language?
Posted by James at 8/24/2005 11:43:16 PM
Hi all,
Let's show why C# is cool:
Reply to this e-mail with one of the following:
C++
C#
VB
J#
Let's see what's the most popular language...
James
... more >>
progress bar
Posted by ibrahim tok at 8/24/2005 11:08:00 PM
how can i change progress bar style and color
Thanks!!
... more >>
Assembly dependencies
Posted by Gaetan at 8/24/2005 10:47:35 PM
I'm experiencing problems with assembly references and version conflicts. I get many
messages similar to this one:
<<<
Warning: The dependency 'MM_Exceptions, Version=1.0.2060.29180, Culture=neutral' in
project 'SMS' cannot be copied to the run directory because it would overwrite the
referen... more >>
How would I generate text fields for user input in ASP.NET C#?
Posted by Stephen Tang at 8/24/2005 6:37:03 PM
Hi,
I'm relatively new at this language, so I've been trying to find parallels
to problems I've run into in the past.
This is the hypothetical problem:
I want to write a CD inventory application. There is a page where it asks
the user for the number of tracks on a CD. After they enter the... more >>
Difference between time
Posted by Paperback Writer at 8/24/2005 4:51:30 PM
How could I extract the difference bewteen times like this:
4:56:09am 4:59:10
The difference is: 00:03:01
How do I accomplish this ?
Thanks in advance,
Daniel
... more >>
Display datetime between two dates
Posted by chris at 8/24/2005 4:51:02 PM
Hi there,
I can not think of a way to display each day of the week between two dates.
I have the following function which returns a date. How can I display those
days? Or how can I put each of the days in an array.
Thansk so much for putting me on the right track. Chris
DateTime dt = Dat... more >>
dynamically sized arrays
Posted by Carlos at 8/24/2005 4:28:17 PM
Hi all,
I am from the C++ world, and just making baby steps into C#. Just
wanted to ask you about the best way to create a dynamically sized
array, and maintain it effectively (yeah, I know about the wonders
of automatc garbage collection, and all that in C#), Any good code snippets
as exam... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Arraylist question
Posted by ttan at 8/24/2005 3:14:17 PM
//I had a class
public class PERSON
{
PERSON(string LName, string FName, string age)
{
m_last = LName;
m_first = FName;
m_age = age;
}
public string LastName
{
get {return m_last;}
set {m_last = value;}
}
public string FirstName
{
get {... more >>
Join an ArrayList
Posted by kevin at 8/24/2005 2:25:18 PM
I need to join the elements of an arraylist into a comma delimited list and
have been doing the following
string[] x = new string[myArrayList.Count];
myArrayList.CopyTo(x);
string.join(",",x);
I tried string.join(",",myArrayList.ToArray(typeof(string))); but the
compiler complained about... more >>
Double buffering a groupbox
Posted by Dan Neely at 8/24/2005 1:38:13 PM
My dialog has groupboxes with slow to redraw controls, to improve the
appearance I want to doublebuffer it. While I can use SetStyle() in the
Dailogs constructor the setting change doesn't get propagated to the
groupbox, and since it's a protected method I can't call groupbox.SetStyle().
I... more >>
Control Question
Posted by graeme g at 8/24/2005 1:17:37 PM
hi
how would I do the following :
i have a control which has a property which is an array of that control...
i.e. kinda like how a treenode has treenode's as children
but i want to be able to only add controls which are already on the form ...
i'm guessing i would need to write some k... more >>
Making the page scroll down
Posted by MacKenzieMouse at 8/24/2005 1:06:25 PM
Is there an easy way to have the page scroll to the next button?
When I populate a drop down list box, I have to use the arrow key or the
mouse to scroll down. I would like for the page to be positioned at or
near the bottom. I have turned smart navigation on. That helps, but
still isn't e... more >>
c# vs vb.net
Posted by Pohihihi at 8/24/2005 12:29:21 PM
For fair reply cross posting on VB ng as well.
I am currently reading this article (on attributes) and article has examples
both in VB and C#. This question never hit me before but I guess because
since last few days I have started thinking about going back to VB and learn
VB.Net and mixe... more >>
Beginner's Question about Threading
Posted by Robert W. at 8/24/2005 12:21:01 PM
I'm creating a WinForms app that will act as a companion (think administrator
functionality) to a Pocket PC app. Generally the WinForms app works under
just the UI thread. But if a Pocket PC connects to the desktop via
ActiveSync then a separate thread is spawned.
In addition to the main ... more >>
Firing cross thread events...
Posted by Richard at 8/24/2005 11:45:07 AM
All,
I have a worker thread that fires events across threads to both GUI objects
and thread agnostic objects. My code is working but I want to be assured
that it did it "the right way"... Question: Is there a better way?
According to the .NET docs that I read all that I have to do to fir... more >>
Randomize within boundaries
Posted by MarkAurit at 8/24/2005 10:40:07 AM
I dont see in System.Random the ability to set a minimum and maximum value to
perform randomization within a boundary. In other words, Id like to do
something along the lines of:
int minimumValue=1;
int maximumValue=1000;
int randomNumber=Random(minimumValue,maximumValue); // randomNumber ... more >>
Spring & Hibernate?
Posted by Peter Kirk at 8/24/2005 10:38:40 AM
Hi there
I come from the "Java world" where I used "Spring" and "Hibernate" in
web-application development. Is there anyone who has experience using these
frameworks in a .NET / c# setting? Are they mature in the .NET world yet?
Thanks,
Peter
... more >>
Can't MOD in "Column[].Expression"
Posted by Diogo Alves - Software Developer at 8/24/2005 10:36:14 AM
I have the following code line:
dsEmps.Tables[0].Columns["teste"].Expression = "MonthlyDeviation%60";
but hits gives an error it says that can't MOD from System.Double to
System.Int32
I tried to put the 60 in double and it says it can't do a MOD from
System.Double to System.Double....
... more >>
C# MUD/Telnet Server
Posted by Benny at 8/24/2005 10:01:02 AM
I have been looking into developing a MUD in C# and most of the help out
there is for C++. I would prefer C# so I was hoping someone could point me
in the right direction. I just need a jump start on how to develop a telnet
server to respond to asynchronous commands etc. Thanks in advance!... more >>
How to programmatically launch ODBC Data Source Administrator?
Posted by Chris at 8/24/2005 9:59:11 AM
Does anyone know how to programmatically launch the ODBC Data Source
Administrator dialog? Thanks.
... more >>
How can I access data from another page in the same project?
Posted by DL at 8/24/2005 9:56:03 AM
I have a project that has 2 pages, 'WebForm1.aspx' and
'DisplaySettings.aspx'. I have a button on 'WebForm1.aspx' that opens
'DisplaySettings.aspx' in another window. However, I need to be able
to access the options in a server select control on 'WebForm1.aspx'
from 'DisplaySettings.aspx'. Is... more >>
Find spaces with Regex
Posted by colinhumber NO[at]SPAM gmail.com at 8/24/2005 9:43:23 AM
I need to find a regular expression that will pick up spaces that are
followed by either another space or an expression.
I have been using the expression "(?<=) (?=[ ])" which has been
working fine, except in the example "1 space", it is picking up the
space. I know it's because i... more >>
App won't start
Posted by yuriy_zubarev at 8/24/2005 9:22:37 AM
Greetings,
I have a Windows Form application (C#, .NET 1.1) that I distribute to
my clients and everyone can run it successfully but those who have
international versions of Windows XP (German, Norwegian, Russian, etc).
When they try to launch the app after an installation they get the
follow... more >>
casting event handlers
Posted by Darren at 8/24/2005 9:18:54 AM
Why can I cast an event I declare but not one defined in the Form class
public event System.EventHandler MyEvent;
private void SomeFn()
{
MulticastDelegate d1 = (MulticastDelegate)this.MyEvent;
// this line won't compile
MulticastDelegate d2 = (MulticastDelegate)this.Lo... more >>
days of week
Posted by MAF at 8/24/2005 9:18:39 AM
Is there a way through globalization to get the days of the week based on
culture?
... more >>
Getting Global Contacts from Exchange
Posted by Dan Bass at 8/24/2005 9:18:01 AM
Environment
C#, Asp.Net 2.0, Windows 2000 Server
Problem
I'm trying to enumerate all the names in the global contacts on the exchange
server using CDO / ADO / (whatever I can).
In writing an ASP.Net support ticket application, I want to populate the
list of "Who reported this tic... more >>
Newbie question - gotta love them...return last line of a textfile
Posted by kaiser at 8/24/2005 8:28:06 AM
Hello people
How do i return the last line of a text file to a string? I am only
interesed in the value of the last line, none of the other lines.
Tx
... more >>
IdeaBlade stories?
Posted by sdurity NO[at]SPAM cornercap.com at 8/24/2005 8:27:39 AM
My company is looking at the IdeaBlade RAD/ORM tool (www.ideablade.com)
as an aid to building a relatively simple database application (one
main developer, me). I have found the ADO.Net and databinding
"plumbing" to be too demanding of time and expertise to build well. A
business application fra... more >>
Debugging on WinCE hardware using activesync
Posted by Beyers at 8/24/2005 8:05:18 AM
Hi
We are using active sync to connect VS.NET to a WinCE hardware platform for
debuggging the application we are writing for this platform.
It worked well for a month, and now all of a sudden we cannot connect to
debug anymore! We have tried re-installation of our whole platform, from
op... more >>
Memory: What happens to a parent when I return a child after a method executes?
Posted by ahaupt NO[at]SPAM gmail.com at 8/24/2005 7:54:22 AM
Hi all,
Consider the following scenario:
main()
{
DataTableCollection dtc = GetDataColumnCollection();
}
DataColumnCollection GetDataColumnCollection()
{
//..
//Use sql data adapter to populate a new data table
//..
return dataTable.Columns;
}
What happens wi... more >>
using System.Reflection to invoke private method ColumnHeaderClick
Posted by melanieab at 8/24/2005 7:15:09 AM
Hi again,
I'm trying to programatically sort a datagrid. I did find the following
code, and it does work, but, when a column header is clicked, the data only
sorts in descending order. Clicking the same column header again doesn't
change anything, although clicking a different column header... more >>
Suppress outlook security warning.
Posted by Rohith at 8/24/2005 6:55:04 AM
I have written a C# application (not a add in) to access outllook. I retrieve
information from Contacts,Inbox and notes folder. But when i run the
application I get a Security warning from outlook stating that -A program is
trying to access email address..Do you want to allow (Yes/No) and also... more >>
? Replace HTML through C# at runtime
Posted by Sachin_M at 8/24/2005 6:51:01 AM
HI Friends,
I want to replace a PARAM value on every page load (or refresh).
my HTML code is something like this:
<form id="Form1" method="post" runat="server">
<OBJECT id="ShowLevel" classid="clsid:9F2B3505-199C-11D2-9E4E-00AA002156AE"
VIEWASTEXT>
<PARAM NAME="Level" VALUE="36">
...
</... more >>
about new versions of visual studio
Posted by turin78 NO[at]SPAM mail.ru at 8/24/2005 6:50:49 AM
I have a visual studio.net which was released I think in 2001 year.
I'm coding on C#.
It's OK but what I'm confused - there is not so much components in
toolbox as in Delphi f.e.
The question is - is that sad situation continues whith fresh releases
of visual studio or not?
... more >>
Luckily I'm bald, otherwise I'd be pulling all my hair out! Please help.
Posted by Big Dave at 8/24/2005 6:39:44 AM
There has got to be a good strategy for dealing with null values in C#,
but I can't find it anywhere.
I'm mainly concerned with allowing nulls in DateTime and Int data types.
The standard types aren't nullable, the sqltypes aren't serializable,
I've tried the nullable types on this web site
(... more >>
datagrid data conversion
Posted by Diogo Alves - Software Developer at 8/24/2005 6:28:07 AM
Hi,
I have a datagrid listing data from a database, and I am getting from the
database real value (it's actually represents a total of minutes).
What I want to do is Convert that number to a total of hours and minutes
like this:
on database: 70,5
on datagrid: 01:10:30
How can I do tha... more >>
General question about C# and Sharepoint Portal Server
Posted by Alex at 8/24/2005 6:26:21 AM
Hi everyone,
We recently installed Windows Server 2003 and Sharepoint Portal Server,
and after a few days of using it and scouring the web for ways to pull
data from MS SQL within SPS, I'm finding myself looking at C# as a
possible solution. Some comments and questions though...
First let ... more >>
Problem with GetType().InvokeMember
Posted by vinoth NO[at]SPAM gsdindia.com at 8/24/2005 3:27:33 AM
Hi,
I have a object which is created by using the Assembly.CreateInstance
method.
Assembly testAss = Assembly.LoadWithPartialName("Test");
object obj = testAss.CreateInstance("Sample1.SampleTest");
//This obj is the instance of SampleTest Class
Upto this the cod is working fine.
Whe... more >>
Regexp fails to return matches
Posted by Chris Beach at 8/24/2005 1:36:20 AM
Hi there,
I'm attempting to extract a number from a string, and I'm using the
following code:
Regex prRegexp = new Regex( @"Rank_1:\d+:(\d+)" );
MatchCollection matches = prRegexp.Matches( responseText.ToString() );
responseText.ToString() evaluates to "\n\nRank_1:1:4\n\n"
I'm only... more >>
A comparison among six VSS remote tools including SourceOffSite , SourceAnyWhere, VSS Connect, SourceXT, VSS Remoting, VSS.NET
Posted by mayamorning123 NO[at]SPAM yahoo.com at 8/24/2005 12:25:20 AM
A comparison among six VSS remote tools including SourceOffSite ,
SourceAnyWhere, VSS Connect, SourceXT, VSS Remoting, VSS.NET
To view the full article, please visit
http://www.BetterVssRemoting.com
Better VSS Remote Access Tool
This article makes a detailed comparison among SourceAnyWher... more >>
C# Toolkit libraries
Posted by Oula at 8/24/2005 12:00:00 AM
Hi,
I'm quite new with dotNet and C#.
sCould anyone tell me if there is any Open Source based libraries (with C#
source)
like Java's Jakarta Commons. E.g. libraries handling different kind of
string manipulations, collection tools, protocoll tools etc.
I would be very delighted to get ... more >>
Multiple Copy Problem
Posted by Steve at 8/24/2005 12:00:00 AM
How do you get c# to only allow one copy of a program to be running?
ie. if a user trys to run a program that is already running the program will
just restore its original size rather than starting a new one
cheers in advance
Steve
... more >>
convert.toString
Posted by simon at 8/24/2005 12:00:00 AM
I have datetime variable:
DateTime datum;
I set it and when I try to put it into a label:
labelDate.Text =datum.ToShortDateString;
I get an error:
Error 5 Cannot convert method group 'ToShortDateString' to non-delegate type
'string'. Did you intend to invoke the method?
I don't u... more >>
Binding dataset to a ListBox.
Posted by Jason Huang at 8/24/2005 12:00:00 AM
Hi,
In ASP.Net C# windows form, how do I bind a DataSet to a ListBox so the
ListBox will display data?
Thanks for help.
Jason
... more >>
ADO .Net performance question
Posted by B.M at 8/24/2005 12:00:00 AM
Hi,
Is there any difference on performance point of view ?
between
String s = MyDataRow["aField"].ToString()
and
String s = (string)MyDataRow["aField"]
The seconde returns a typecast exception if my column is NULL, is there any
best practice about reading string fields ?
Thank you... more >>
Bug with multiselect ListBox?
Posted by Gianluca at 8/24/2005 12:00:00 AM
This works well on a single selection listbox:
protected override OnMouseDown(...)
{
base.OnMouseDown(...);
MessageBox.Show(this.SelectedIndex.ToString());
}
But on a multiple selection listbox you get a IndexOutOfRange exception.
Which is not documented as a possible exception be... more >>
Thread Safety for collections
Posted by Jack at 8/24/2005 12:00:00 AM
How does dotnet handles thread safety of Collections ?
I derived some classes from CollectionBase and DictionaryBase, and created
some typed Add, Remove methods to call typeless based Add, Remove methods.
Do I have to handle the locking myself ?
If one thread gets the IEnumerator, and iter... more >>
|