all groups > c# > march 2007 > threads for monday march 5
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
String concatenation problem?
Posted by Edwin Smith at 3/5/2007 10:53:06 PM
Hello:
I have a problem building a file command line argument from 2 cells in a
table with the following code.
string filePath =
insuranceDataGridView.CurrentRow.Cells[5].FormattedValue.ToString();
string fileName = "0000000" +
Convert.ToString(Convert.ToDecimal(insuranceDataGridView.Cu... more >>
System.Xml and Memory Management
Posted by Martin_Pöpping at 3/5/2007 10:04:19 PM
Hello,
I have a question about handling Xml files and the memory management.
If I manage the file like this:
XmlNodeList nl = doc.SelectNodes("frequency");
foreach (XmlNode node in nl)
{
//...
}
I guess the whole Xml file is stored as object in the main memory.
Is there a Xml model... more >>
Excellent opportunity for job seekers in .NET.
Posted by anu at 3/5/2007 8:36:09 PM
Excellent opportunity for job seekers in .NET.
Training and 100% guaranteed placement on .NET.
Complete Implementation of REAL TIME PROJECT
Mock Interviews
Seminars
Duration: 60 days
For further details contact swapna@ 040 40133999.
... more >>
How to change the XML Comments in C#??
Posted by Hardy at 3/5/2007 8:34:45 PM
I am doing a C# project.When we type /// an automatically typed XML
formatting of the current
method is displayed. I also need when I type //C then another comment
block should be displayed.ie. //C<Function>Function Name<\Function>
etc....How to implement this.Plz help me...
... more >>
microsoft web browser component in c#.net
Posted by atul at 3/5/2007 7:56:27 PM
hi
i m using microsoft web browser component in c#.net
i want that wen i open any url in that then the source of that url
come in my string
example: open any url say,yahoo.com in IE or firefox.
go in View--->source
i want that source to collect in any string or , etc,
i am using microso... more >>
Design a user interface like eMule
Posted by Walter MengHuah Huang at 3/5/2007 6:53:27 PM
Hi All,
is there an easy way to design winform user interface just like eMule
that means you can run many applications simultaneously in one Form
and you got big buttons to switch these jobs =)
i don't like Tab control coz it makes things complicated.
any suggestion will be appreciated. thank... more >>
C# source XML method information
Posted by Zytan at 3/5/2007 5:24:54 PM
When you type /// an automatically typed XML formatting of the current
method is displayed. However, if you change the method by adding a
new parameter, this does not automatically get added. Is there anyway
to add the new XML data for the new parameter other than typing it in
manually? I rea... more >>
preload a resource into memory?
Posted by JamesB at 3/5/2007 5:07:44 PM
In my app, I have an embedded small .wav file that plays when the user hover
over certain items. It works fine, apart from the very first time, where it
is delayed slightly; presumably as it is loaded into memory.
Is there a way I can "pre-load" this when the application starts?
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Regex Help Required
Posted by Matthias S. at 3/5/2007 4:34:46 PM
hello,
I've got the following regexpression:
"<span .*bbc_underline.*>(.*)</span>"
and the following input string:
"this <span class="bbc_underline">is underlined <span
class="bbc_strikethrough">and striked through</span>text.</span>"
when I do a replace on the expression, I get the ... more >>
HttpWebRequest timeouts
Posted by Glenn at 3/5/2007 3:18:03 PM
Hi
I'm trying to building something to check the availability of a web page.
The code is using a HttpWebRequest, bypassing our proxy server and hitting
both HTTP/HTTPS pages. Initially I get a HTTP response code of 200. After
the second or third attempt at hitting the same page over a pe... more >>
Serialization & encoding
Posted by Sarika Agarwal at 3/5/2007 2:59:23 PM
Hi,
What is the primary difference between serialization and encoding in
..NET!
*** Sent via Developersdex http://www.developersdex.com ***... more >>
Thread synchronization
Posted by Giulio Petrucci at 3/5/2007 2:49:15 PM
Hi there,
I have two threads:
- thread A: write some data into a stream (audio on an audio card,...etc...)
- thread B: listen for an event (mouse click,...)
I need to stop A when the event B's listening to occures.
Please, could anyone help me?
Thanks in advance,
Giulio - Italia... more >>
Get the bound field of a control
Posted by BD at 3/5/2007 2:32:11 PM
Hi,
How can I get the name of the bound field from a control that has
binding to a BindingSource at runtime. For example:
txtID.DataBindings.Add("Text", bdgSourceTest, "ID");
txtID is a TextBox and I want to get the bound field "ID" from txtID.
[]'s
BD... more >>
Need help capturing {} in a dataTable's DataRow.
Posted by Pucca at 3/5/2007 2:14:00 PM
I'm getting the following Errors during run time and I tried capturing it
using the code below but I'm not able to. I'm also showing in Debug the
value is {}. How can I catch this so it won't create Exception error?
Thanks.
Unable to cast object of type 'System.DBNull' to type 'System.St... more >>
Disable keys, like Home and End, in the KeyDown event of the Form
Posted by BD at 3/5/2007 2:04:33 PM
Hi,
I have a control derived from BindingSource with a property of type
Form that contain the form that owns my control. I set that property
form.KeyPreview=true. I intercept the keys I want to disable, like
Home and End, and I set the e.Handled=true but that keys are always
executed. I think... more >>
syntax wonderings, iterator and IEnumerable
Posted by kenneth NO[at]SPAM nospam.nospam at 3/5/2007 1:44:37 PM
When creating multiple iterators, the original is defined as returning
IEnumerator, ie
public IEnumerator GetEnumerator() { yield x; ...}
whereas the additional ones are defined as returning IEnumerable, ie
public IEnumerable AnotherSortOrder() { yield x;....}
Any insights out ther... more >>
KeepAlive question...
Posted by Atmapuri at 3/5/2007 1:38:38 PM
Hi!
I was looking at the details of how KeepAlive
works to handle my unmanaged code interop.
Several question came up. Assuming I have:
public Test2(Object a)
{
}
public Test()
{
a = new MyObject();
Test2(a);
}
Is the call to Test2 the same as the call to GC.KeepAlive... more >>
Running a long query from .NET windows service
Posted by jimmy at 3/5/2007 1:28:58 PM
Hi,
I am running a query in a .NET windows service which takes a long time
to execute.
The query times out.
The same query doesn't time out from a console application.
I have put the CommandTimeout of ODBCCommand to 0 (indefinite wait-
time).
Any idea why it might not work from Windows se... more >>
Configuration of Windows service
Posted by Olegus at 3/5/2007 12:13:25 PM
I have Windows service MyService, that reads some settings from
MyService.exe.config file via
ConfigurationManager.AppSettings["Setting_Key_Name"]. I tried to write
small WinForm frontend app(called it Manager.exe) to manage settings
of MyService, but have problems with accessing MyService.exe.c... more >>
getting string from XMLWriter
Posted by MAF at 3/5/2007 12:09:41 PM
Is there a simple way to get the text, xml, from an xmlwriter.
I have a XML writer that writes to a file, and I want another function to
return the text that the xml writer is produced.
Any suggestions?
... more >>
What are delegates: Newbie
Posted by weird0 at 3/5/2007 10:43:56 AM
I read this book Prfoessional C-Sharp by Wrox. I implemented Threading
in c# with delegates like this:
Thread mythread=new Thread(somedelegate());
or
Thread mythread=new Thread(somestaticfunction());
I mean i did not really understand what delegates are.Are they ju... more >>
C# in compact framework: Unable to see contents of exceptions
Posted by kimtherkelsen NO[at]SPAM gmail.com at 3/5/2007 10:39:05 AM
Hi,
I have developed some software for a PDA in C# (.Net compact framework
2.0) in VS2005. The problem is that I am not able to see the contents
of any of the exceptions that are thrown on the device. If I am
debugging and an exception occurs, the environment just says "missing
resource assembl... more >>
Create Enviroment variables
Posted by Jason at 3/5/2007 10:24:51 AM
I'm trying to create some envirment variables but I'm having some trouble.
Whats the correct way?
This is what I've got in my C# application.....
Environment.SetEnvironmentVariable("PYTHON",
@"C:\Python22\libs\python22.lib");
but when I look for them, they never get set. When I single step... more >>
Enterprise Library Data Block and Access database
Posted by nostradumbass77 NO[at]SPAM yahoo.com at 3/5/2007 10:18:07 AM
How do I run a query in access using GenericDatabase class ?
I get an error about parameter discovery not allowed when i run
ExecuteNonQuery..
... more >>
Xml Serialization - Defaulting to XmlIgnore?
Posted by Undergrid at 3/5/2007 10:08:24 AM
I have a pretty complex data structure which I want to serialize to
and from XML, I have tried the .net 2.0 serialization engine and
proved that it will work for my structure.
However by default the serialization engine outputs every property it
comes across and I was wondering if it would be... more >>
Get a list of sql servers, is .ServerName deprecated?
Posted by roger_27 at 3/5/2007 10:03:03 AM
http://www.sqldbatips.com/showarticle.asp?ID=45
the tutorial I am looking at.
I copied the last method. and I am using the following references
using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;
using System.Data;
using Microsoft.Win32;
using ... more >>
execute JavaScript using C#
Posted by marianowic NO[at]SPAM gmail.com at 3/5/2007 8:57:51 AM
Hello.
I'm struggeling with one think.
I have got already registered JavaScript in my web application
(RegisterClientScriptBlock) and, ofcourse, I can invoke it with
methods like onClick(), onMouseOver(), etc. But I need to invoke it
from my C# code behind file. Te example is shown below?? Is i... more >>
Garbage collection supression
Posted by Paul.Lee.1971 at 3/5/2007 8:44:13 AM
Hi everyone,
A program that I'm helping to code seems to slow down drastically
during initialisation, and looking at the profiling graph, it seems to
be the garbage collector thats slowing things down. I must point out
that a heck of a lot of data are being read in and manipulated, and I
was wo... more >>
Column order on a DataGridView (Newbie)
Posted by Will at 3/5/2007 8:17:55 AM
The code below defines a class FillData. This is used to bind to a
DataGridView. However, the columns on the DataGridView are NOT in the
same order as specified in the class (Start, Sweep, Duration, POW,
Sync) but instead are shown Start, Duration, Sync, Sweep, POW.
Is there any way I can en... more >>
DBNull after read, need to cast
Posted by patrick.sannes NO[at]SPAM gmail.com at 3/5/2007 8:12:25 AM
Hi,
I have a question. I have a stored procedure that can give a value
like a string or an int. But in some cases it can be DBNull. What is
the standard way to handle this?
- I can create a storedprocedure that always give the 0 value of the
type.
- Create an if statement around every assign... more >>
How to 'textualize' a buffer
Posted by Udi at 3/5/2007 7:56:20 AM
Hi All,
I'm looking for a way to convert a buffer into text (represent buffer
as text).
The text is read by a parser that needs to cut it at a special
character that is not part of the buffer (E.g.end of line).
(I think this is similar to the method used to 'textualize' binary
data in HTML (to... more >>
Remoting trouble
Posted by Derrick at 3/5/2007 7:05:43 AM
Hello all;
I'm having a bit of trouble with .NET remoting. Here's my scenario:
I have a "remotable" type which is served by a Windows Service. I
have a WinForms app which consumes the remotable type. I'm using the
Observer pattern, so the client registers with the server, and the
server ... more >>
Generics cannot cast a T : class to Object
Posted by kasper.rung NO[at]SPAM gmail.com at 3/5/2007 6:11:20 AM
I am having trouble implementing an interface. The interface requires
a method to return an object, but it does not seem to be able to treat
a reference type as an object. I have the following sample code:
using System;
using System.Collections.Generic;
using System.Text;
namespace Generic... more >>
Does really List<byte> keep data in one block like byte[]?
Posted by Hyun-jik Bae at 3/5/2007 3:06:33 AM
Hi,
I heard roughly that List<byte> keep data in one block like byte[]. Is that
really true?
Please reply. Thanks in advance.
Hyun-jik Bae
... more >>
Ilasm programing
Posted by masoud moosavi at 3/5/2007 3:06:28 AM
hello,
please give me the syntax of the ilasm language programmin,or write a
simple program ,
thanks a lot
... more >>
Is support all d dotnet controls in Xml Xsl?
Posted by Sala at 3/5/2007 2:30:08 AM
Hi ExpertS!
I'll create one website in asp.net with c#. If i am using Xml Xsl,
Is support all d controls like asp.net controls? bcos i'll use image
files and video files in this website. So If anybody having exp with
Xml Xsl functionalities Pls help me....
... more >>
Getting all object properties with an associated type converter
Posted by Marek at 3/5/2007 12:08:06 AM
Hi
I have a class which has its own type converter that adds some additional
properties using overridden GetPropertiesSupported and GetProperties methods.
All works fine if an instance of the class is set as the selected object in
a property grid. However in code I would like to make a call... more >>
Socket based Real-Time connection
Posted by Giulio Petrucci at 3/5/2007 12:00:00 AM
Hi there,
I need to implement a sort of RTP/RTSP. Nothing impossible, just a
"minimal" implementation Anyway I need to know something more about how
could I create real-time connection using the .NET socket class. Is it
enough to write/read data in synchronous way? If not, could you link me... more >>
Context menu popup on treeview node returning wrong selected node
Posted by Claire at 3/5/2007 12:00:00 AM
I've a treeview control containing a root node with several children on a
windows form.
I select a node with a left mouse button click.
I then select one of the other nodes with right mouse click to bring up my
context menu. The Popup event of this enables menu items depending on the
node se... more >>
ASP.NET Current directory
Posted by Alan T at 3/5/2007 12:00:00 AM
I am testing the ASP.NET in VS 2005 IDE.
My webiste is on:
c:\test\website1
I have a directory called documents in the website directory
c:\test\website1\documents
I want to reference our documents in this directory by using
Path.GetFullPath("documents");
If I run the website by pressin... more >>
|