all groups > c# > february 2006 > threads for sunday february 19
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
listview vs listbox?
Posted by ttan at 2/19/2006 11:47:28 PM
In ListBox, I can use SelectedIndex to set for current selected item.
for(int x = 0; x <25; x++)
listBox1.Items.Add(x.ToString());
listBox1.SelectedIndex = 10;
How to do the same for ListView?
... more >>
Page Display
Posted by Mr. Bean at 2/19/2006 11:22:14 PM
In brief am using javascript to enable show/hide layers in an ASP web
appplication.
but its not working.
I made a small web application, which is a web form that has many input
fields. There are many fields that rely on the value of the previous
entries.
The application worked fine, but i t... more >>
Any obvious reason why this won't work?
Posted by Chris Saunders at 2/19/2006 10:26:43 PM
I'm just beginning to learn ADO.NET and have taken some code from
the book "Pro ADO.NET 2.0". When I run this application the "Validated"
MessageBox gets displayed but when I quit and rerun the application it
appears that the database is has not been updated.
The information displayed in the ... more >>
Asynchronous access to database.
Posted by archana at 2/19/2006 9:14:16 PM
Hi all,
I am having application which is executing one stored procedure.
My stored procedure is taking nearly 10 to 15 min to execute. So i
dont' want to wait for that much amount of time.
What i want is to create say 2 threads and execute same stored
procedure with 2 different paramter wi... more >>
Detecting bin\debug versus bin\release?
Posted by AdamM at 2/19/2006 8:55:17 PM
How can an app detect whether its running under debug or release mode =
and update file paths automatically?
I have several hardcoded paths like "c:\app\bin\debug" currently and =
want to make it more robust.
Thanks!
Adam... more >>
Making constructor visible only to a certain class
Posted by Peter Gummer at 2/19/2006 8:47:38 PM
This is a design question.
I have a project containing a dozen or so classes with protected
internal constructors.
My reason for having protected internal constructors is to prevent
classes in other assemblies from instantiating them. There is a factory
class that instantiates them. Only th... more >>
XmlDocument.SelectNodes()
Posted by PiotrKolodziej at 2/19/2006 6:52:05 PM
Hi
I'am using SelectNodes method to find if node followed by string exists, and
if so i going to select that node.
Create doc i such a way:
doc = new XmlDocument();
doc.AppendChild(doc.CreateXmlDeclaration("1.0", "UTF-8", null));
docHandle = doc.CreateElement("Base");
doc.AppendChild... more >>
drawing
Posted by Bad_Kid at 2/19/2006 6:18:02 PM
How to make this:
I have a panel and I draw something on it (some lines, a complex
function...).
I want this:
When I move mouse over that panel to draw a vertical line from top of the
panel to panel.height on the X position of the mouse? While I'm moving a
mouse over a panel that vertical li... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
null in ArrayList
Posted by vooose at 2/19/2006 5:37:25 PM
Consider an ArrayList that you add an object to:
ArrayList list = new ArrayList();
if(myObj != null)
list.Add(myObj);
else
throw new Exception("obj cannot be null");
Some time down the track, I end up with a null object in my ArrayList -
I don't know how this happens. At no point do... more >>
Creating a case-insensitive Hashtable in v2
Posted by Mark Rae at 2/19/2006 5:19:19 PM
Hi,
In v1.x, I used to use the following code to create a case-insensitive
Hashtable:
Hashtable MyHashtable = new
Hashtable(CaseInsensitiveHashCodeProvider.Default,
CaseInsensitiveComparer.Default);
In v2, this generates the following warnings:
Warning 1 'System.Collections.CaseIns... more >>
Thread.Suspend()
Posted by Andrew Bullock at 2/19/2006 3:08:57 PM
Hi,
I'm using a second thread within my program to do some long
calculations, without locking up the UI:
worker = new Thread(new ThreadStart(myClass.Run));
worker.Start();
I want to be able to pause the calculating, so I'm using
worker.Suspend()
and
worker.Resume()
I'm not using ... more >>
Problem with reflection
Posted by Skandy at 2/19/2006 12:42:58 PM
Hello All:
I'm having this little trouble getting a form displayed using
reflection.
objForm.GetType().GetMethod("ShowDialog",
BindingFlags.InvokeMethod).Invoke(objForm, null);
The above is the line of code that is causing this trouble. I'm getting
a NullreferenceException at this line.
... more >>
Newbie: How to get TreeView node from FullPath?
Posted by deko at 2/19/2006 12:38:24 PM
If I know the FullPath to a node in a TreeView, how do I insert a new node
under that node?
I need to run some code on DoubleClick of a node to get the value of the new
node I want to add to that node. Then, I need to reference that node in a
separate method so I can add the new node (that... more >>
Newbie: How to serialize/deserialize with XML?
Posted by deko at 2/19/2006 10:14:59 AM
I understand I can use System.Xml.Serialization.XmlSerializer to convert an
object to XML, but I'm confused on the mechanics of this.
I have a C# .NET 2.0 Windows Forms app that contains a whole bunch of
user-defined properties that need to be persisted to an XML file. Each set
of properti... more >>
Consume web service without wsdl.exe
Posted by frustratedcoder at 2/19/2006 9:16:01 AM
I have this Perl soap client which is consuming a Perl based web
service.
#!perl -w
use SOAP::Lite +trace => "debug";
SOAP::Lite
->uri("urn:WebServices")
->proxy("http://example.com")
->SomeMethodName('param1', 'param2')
->result;
How can I consume the same web service in C#? There ... more >>
switch sytax ?
Posted by What-A-Tool at 2/19/2006 9:01:37 AM
There are several differences in "switch", and VB's "Select Case"(which is
what I'm used to) that I can't quite figure. Could someone please point out
what is wrong with the following code - in particular the "case" with the
math operators :
char[] chs = words.ToCharArray(); //Create an arr... more >>
Targetting 1.1 with VS2005
Posted by Udi at 2/19/2006 7:02:21 AM
Hi,
I'd like to use VS2005 but to target my application to run on 1.1.
I tried changing the csproj file to include the line -
<Import Project="$(ProgramFiles)\Everett\Everett.targets" />
(I have the everett.targets file on that location) but it doesn't work.
When I execute my app, it asks for ... more >>
What is the difference between all these classes such as StreamReader, BufferedStream, FileStream, MemoryStream?
Posted by foreman at 2/19/2006 3:36:45 AM
Hi there,
Hello everybody. I am a newbie to dot net framework class lib. I
am confused about those classes such as all of the stream classes and
those XXXReader XXXWriter. In fact, I have tried the StreamReader(which
can read in big5 encoding text files well) and besides, I have tried
t... more >>
desperate call for help - intellisense not working any more
Posted by David C at 2/19/2006 3:21:58 AM
This coincides with installing third party software from Infragistics
(infragistics.com), and running their utility for the tool tab.
Intellise no longer works. I have done uninstalling and re-installing
Visual Studio.NET 2003. Has not helped. I cannot get intellisense to
work.
Any help w... more >>
Windows Form login question
Posted by Jason Huang at 2/19/2006 12:00:00 AM
Hi,
In my C# Windows Form project, saying in form frmLogin I have two TextBoxes,
UserName, Password.
How do I make the frmLogin remember the current UserName,
so next time I login to the frmLogin, the UserName textbox has the last time
login UserName value?
given that the application is run... more >>
VS2005 C# and Resources
Posted by bob at 2/19/2006 12:00:00 AM
Hi,
I am having trouble with Resources of a windows app.
If I understand correctly.
1) New C# Windows app. Namespace 'TestResources'
2) Edit default Resources file, set String1 value to say "MyApp"
3) Put the following code in ctor after InitializeComponent
ResourceManager rm = new ResourceMan... more >>
Rotating Divided Circles
Posted by Tony at 2/19/2006 12:00:00 AM
Using VSnet2005
I'm looking to create a circle which would have sections containing a
small image within it (Sort of like a wheel of fortune like thing)
After rotating, I would like to take whatever value I have the space
that is in the 12o'clock position and use it for calculations in my
... more >>
partial class namespace in ASP.NET 2.0
Posted by TotySantana at 2/19/2006 12:00:00 AM
Now i am trying to change the namespace for the web page class by =
putting the page class between namespace myCustomNameSpace {} , but when =
i do this with a web page class i got the following error
Error 2 'ASP.Default_aspx.FrameworkInitialize()': no suitable method =
found to override =
c... more >>
Why web project always Offline on the Ap server??
Posted by Vinson Huang at 2/19/2006 12:00:00 AM
http://www.taizan.com.tw/index.files/Page394.htm
Daer all:
I have problem with Web project always offline
i can't make any change in this project
have any way can connect to the ap server?
Thk
From Vinson
... more >>
A basic question
Posted by Ian Semmel at 2/19/2006 12:00:00 AM
Am just starting to learn C# so tolerance.
What is the difference between
[Serializable] public class Stroke {
and
[Serializable()] public class Stroke {... more >>
|