all groups > c# > march 2006 > threads for tuesday march 7
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
Does serialization/deserialization compress my array?
Posted by Marcus at 3/7/2006 11:44:23 PM
I have a couple of classes looking like this:
========================================
[Serializable]
public class AdminSettingsData
{
public string adminSettingsPath;
public string adminSettingsFile;
public string usersSettingsPath;
public boo... more >>
Problem with OnPaint in custom label control
Posted by Kenneth Siewers Møller at 3/7/2006 11:34:06 PM
Hi there
I have a custom label control (GradientLabel) which enherits from Label and
basically just paints the background of a label in a gradient.
In my code I have the following for the overidden OnResize event:
protected override void OnPaint(PaintEventArgs e)
{
Graphics g = e.Gr... more >>
Web service for IP address to Geographic location
Posted by Paul Aspinall at 3/7/2006 10:55:11 PM
Hi
Does anyone know a Web service for IP address to Geographic location
resolution?
Thanks
P.S. I am in the UK, but I assume any good web service would be worldwide??
... more >>
having problems capturing all text possibilites.
Posted by Alexandre Brisebois (www.pointnetsolutions.com) at 3/7/2006 10:26:40 PM
Hi I'm trying to fix an expression, to grab all sets of 2 words with a
space between them, ie: hello word (valid) C# sample (Valid) hello.
world (Invalid) hello world. (invalid) <-- need to stop capture before
the "." and cannot use \b since \b includes "#"
this is the expression I am trying ... more >>
Accessing stack from heap.Why is this UnSafe?
Posted by Manivannan.P at 3/7/2006 9:20:26 PM
Hi,
Accessing a block of memory in stack from Heap or viceversa,
is said to be unsafe and a potential security threat.
Please calrify why is this so.
ThankYou.... more >>
listview scrollbar question
Posted by CobraStrikes NO[at]SPAM al.com at 3/7/2006 8:37:10 PM
Hi All,
How can I get to scroll bars of a listview, I am trying to sync two listviews so I need to overload
one of the listview, How can I achieve this ?
Thank You.
... more >>
XMLtags and WSDL
Posted by JackieB at 3/7/2006 7:57:21 PM
Hello,
Can anyone point me a documentation that show what kind of XML-tags are
existing when you whan to
modify your wsdl file?
I understood that the only way to modify .NET Webservice's wsdl is to embed
XML tags into
code, I'm I rigth? So, any help appraised.
... more >>
DataTable search alternatives?
Posted by pagates at 3/7/2006 7:55:28 PM
Hi All,
I have a DataTable in a Windows Forms project that I would like to use a
Select statement. The problem is, I'd like to be able to do wildcard
searches (including single charcater searches).
What are my alternatives? I'd rather not have to go back to the database,
unless that ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Form.Show( ) vs extern ShowWindow
Posted by vooose at 3/7/2006 6:58:24 PM
Form form = new Form();
when you call
ShowWindow(form, SW_SHOWNOACTIVATE);
the form disappears the next time the garbage collector is called,
assuming the form variable has gone out of scope. When you call
form.Show() you don't get this behaviour. Why is this? How can you make
ShowWindow... more >>
Invalid characters before xml header
Posted by Nadav at 3/7/2006 6:32:23 PM
Hello,
When I create an XML header using this code:
XmlDeclaration header = doc.CreateXmlDeclaration("1.0", "UTF-8", null);
XmlElement rootElement = doc.DocumentElement;
doc.InsertBefore(header, rootElement);
It adds some invalid characters before the header itself, only viewable with... more >>
C# projection weird compilation errors
Posted by genc_ymeri at 3/7/2006 6:06:36 PM
Hi over there,
We are a team of 6 developping web applications
(ASP.Net/C#/VB.Net/SQLServer). What happens is that randomly, each of us
get the below error in (PS). We believe that the "acess is denied" error
description [probably] is a "dummy message" b/c the file name changes the
very next... more >>
Class diagrams
Posted by Alberto at 3/7/2006 5:58:57 PM
I have the professional version of visual studio 2005 and I'd like to know
if I can create associations between classes in the classes diagram.
Thank you.
... more >>
Block Step Into Debugging for a function
Posted by rawCoder at 3/7/2006 5:40:29 PM
Hi,
Is it possible to block the debugger to Step Into a function ( in VS 2005 or
VS2003 ) - Even If I press F11 (the Step Into Key)?
////////////////////////////////////////////////////////////////////////////
//////////////////
Example (plz read comment )
void Main()
{
Foo1(); ... more >>
DataGridVew Control Help
Posted by Sivaprasad at 3/7/2006 4:45:46 PM
Hello,
I am trying to use DataGridView control in C# 2005.
Currently I am using Video Soft grid control in VB6.0 with which i can do a
lot of stuffs like,
Merging rows and columns, Heirarchical view, Each cell can have different
data type like boolean,combo,date etc...
How far can a DataGr... more >>
xpath help
Posted by Frank Rizzo at 3/7/2006 4:28:10 PM
Hello, I am trying to change app.config via xpath (in a nant script).
The app.config is as follows:
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<appSettings>
<add key="CRMMetadataServiceUrl" value="devLANI-RF1"/>
</appSettings>
</configuration>
The fo... more >>
Assembly DLL question
Posted by Lee at 3/7/2006 4:19:42 PM
If Assembly A references Assembly B and I include Assembly A in my
project, does it implicitly import Assembly B?
--
Warm Regards,
Lee
"Upon further investigation it appears that your software is missing
just one thing. It definitely needs more cow bell..."... more >>
Why do I need Base class DLL?
Posted by Brett Romero at 3/7/2006 4:05:47 PM
I have this situation:
myEXE <needs< DerivedClass <which needs< BaseClass
Meaning, myEXE is using a type defined in DerivedClass, which inherits
from BaseClass. I include a reference to DerivedClass in myEXE, which
gives this error:
The type 'BaseAssembly.SomeClass' is defined in an ... more >>
Getting time of last mouse click and keystroke?
Posted by beaker at 3/7/2006 3:02:47 PM
Hello,
I'm writing a program (which will be running in the background 99% of
the time) and I want to be able to work out how long it has been since
the user last used the mouse and/or keyboard. I plan on using a Timer
to do the checking periodically, but I'm not sure how to get the time of... more >>
Sending a 403 response
Posted by Martin Robins at 3/7/2006 2:32:17 PM
I have an application which uses Windows Authentication to identify users
and ensure that they are on a domain. Once access is granted at this level,
I then check their login name against a database of validated users to
determine whether the particular user can actually use the system.
If ... more >>
Serial Comm Component
Posted by Padu at 3/7/2006 1:56:44 PM
Hi Everybody,
I'm a newcomer from the Delphi world and I'm going to start developing my
new project (a robot control app) in C#. One of the requirements is to
communicate using RS232 (well, RS485, but the app doesn't care really).
I was googling a bit and I saw a couple of good articles us... more >>
Cannot get ToolboxBitmap to work
Posted by Jeff at 3/7/2006 1:39:29 PM
Hello,
I have developed a library of controls but for the life of me cannot get
ToolboxBitmapAttribute to work -- my image simply will not display in the
toolbox of any project using my controls.
First, what I have:
Visual Studio 2005, .NET 2.0. An assembly name of "Jfx.Framework" and ... more >>
ToolTip hassles
Posted by Steve at 3/7/2006 12:56:18 PM
I want to show a tooltip over one of my WinForm controls at startup. The
control is part of a UserControl that I'm hosting in a CAP DeckWorkspace.
In other words, I have many user controls that I activate or show by
bringing them to the front.
I have a tooltip control setup to be a balloon... more >>
Help developing Ecommerce shopping cart in C#
Posted by VMI at 3/7/2006 12:02:37 PM
Hi,
I have a client that's interested in developing a complete shopping cart for
her site. It seems like a very interesting project and I'm looking for some
help on the Web since I'm mostly a Windows software developer.
Anyone know of any links that may help me work on this type of project (a ... more >>
OT: IE 7 Problems with MSDN
Posted by Lee at 3/7/2006 11:59:17 AM
I have installed and uninstalled IE7 beta preview 2 a few times and
each time I've installed, MSDN loses line breaks in code sample
sections.
Just FYI
--
Warm Regards,
Lee
"Upon further investigation it appears that your software is missing
just one thing. It definitely needs mor... more >>
newbe form question
Posted by AMP at 3/7/2006 11:51:14 AM
I have a simple question.
If i have a button on form1 that creates :
Form2 newform = new Form2();
newform.Show();
As I click the button a new form shows,but acording to my code each one
has the same name.Are they really there(I can move them around and
close them).If they are how do they ... more >>
private static extern int PlaySound(String pszSound, int falgs
Posted by ss at 3/7/2006 11:39:33 AM
hi!
i am trying to use
[DllImport("winmm.dll"]
private static extern int PlaySound(String pszSound, int falgs);
but it doesn't play the sound although it exists (even by checking
file.exist)
any solutions?
10x
... more >>
Mixed DLL Loading Problem??
Posted by Mali Guven at 3/7/2006 11:38:30 AM
Hello,
I have a native DLL (written in C) which is supposed to call a managed DLL
(was written in C#, and an entry point was injected modifying the ildasm'd
code).
The exectuable calls the native DLL but the native DLL fails to load the
managed DLL. The paper that addresses the 'mixed DLL p... more >>
Identifying client that sent data to Asynchronous socket.
Posted by Macca at 3/7/2006 11:24:03 AM
My app has an asynchronous socket server. It will have 20 clients connected
to the server. Each client sends data every 500 millisecondsThe Connections
once established will not be closed unless there is a problem with the
connection.
I need to know which client has sent the incoming data a... more >>
Wishes for enum in future builds
Posted by GRiN at 3/7/2006 10:10:30 AM
When the enum inherients a type it would be nice not to have to do a cast to
that type.
enum MyEnum: int{one=1,two=2}
MyEnum Mine = 1; // no error!
It would be nice to constrain an enum to a function call (makes code easier
to read, and prevents bad calls)
public int MyRouting(enum inEnum{... more >>
Threads very slow
Posted by PH at 3/7/2006 9:58:20 AM
Hi guys;
I got a single processor computer, running an application that launches
2 threads.
Each of these threads listens for incoming connections in a specific
port, so there is a Loop . Until inside each of them.
When a packet is received the thread calls a method that process the
... more >>
VB.Net to C# translation
Posted by Joseph at 3/7/2006 9:51:07 AM
Hi everyone,
I’m am new to C# and trying to convert to C# from VB.Net an article I found
at 4GuysFromRolla.com:
http://aspnet.4guysfromrolla.com/articles/090104-1.aspx titled Extending the
Calendar Control’s Date Navigation by Mehmet Genc.
What I am trying to accomplish is enhance the ... more >>
String to Byte? Convert.ToByte(textbox1.text)
Posted by Chris242 at 3/7/2006 9:11:27 AM
Hey guys I have written a small application that will send keys from the
keyboard depending on the users input. My thing is I can't use SendKeys.Send
because i need to emulate the keyboard pressing the keys so I am using
Keybd_Event from user32.dll.
When the user gives their input they pla... more >>
User Controls transparent
Posted by FredC at 3/7/2006 9:10:37 AM
I'm using VS 2003, C#.Net 2003.
I built a simple windows form app. with the following attributes:
- has a BackgroundImage set to a jpeg
I built a very simple user control that contains a picture box set to an
icon. The UserControl constructor sets
SetStyle( ControlStyles.SupportTranspa... more >>
Crystal Reports
Posted by sdibello NO[at]SPAM gmail.com at 3/7/2006 9:09:57 AM
Hi All,
I have a windows application. I've built a report section that
fills typed datasets and builds crystal reports off those datasets.
They work fine on my local dev machine, however on other machines I get
a Logon error, and a prompt appears. Anyway ever seen this before?
Thanks
... more >>
XML Parents
Posted by mauricecosgrave NO[at]SPAM gmail.com at 3/7/2006 8:12:29 AM
Hi,
I'm trying to create an XML file from a C# application. I can create
children of the root using this code:
-------------------------------------------------------------
//Save the variables
pbName = selPBTextbox.Text;
pbUnit = unitList.Text;
XmlDocument xmldoc;
XmlNode xmlnode;
Xml... more >>
Capturing button click event(WMI)
Posted by Sujoan at 3/7/2006 7:42:52 AM
Hi,
What is WMI? Is it possible to use WMI event to capture a Toolbar
button click(using RSOP_IEToolbarButton object) from a DLL(A Browser
Helper Object in my project)?If so,please provide me some help on this
issue.. or pls help me out if any other alternative exists in capturing
a button c... more >>
File or assembly name vme102_l.dll
Posted by John at 3/7/2006 7:37:52 AM
I created a webservice, uncommented the default code to show helloworld
webmethod.
When I open the Service1.asmx page in the browser and click on
Helloworld/Invoke button, I get this error
"File or assembly name vme102_l.dll, or one of its dependencies, was not
found."
Did I miss somethi... more >>
Multiple Configuration Files
Posted by UJ at 3/7/2006 7:30:06 AM
I've got two apps that need to share a configuration file. How can I do
that? It seems like ConfigurationSettings has built in to it to figure out
the name of the file.
... more >>
DataGrid and pushbutton
Posted by RicercatoreSbadato at 3/7/2006 7:20:41 AM
I'm becoming crazy! I thought was simplest!
How can I insert a button in a records of a DataGrid ?
... more >>
Best method for displaying a image based on a variable
Posted by esparkman at 3/7/2006 7:16:27 AM
Hey guys,
Kinda stuck in a rut on this one. I'm designing a online stats tracking
web app for the game battlefield 2. I want to display the players rank
represented by an image. That is in turn based on a variable int
number. I have this work in a win32 application. Just can't semm to
convert... more >>
ListView Scrollbars question
Posted by TomasFloyd at 3/7/2006 5:58:57 AM
Hi Everyone
I'm using the standard ListView control of VS 2003.
I would like to know if there is a way to catch the event of the scrollbars
attached to a ListView being 'scrolled' or 'clicked'? I would like populate a
ListView with 20 items at first, and then add items as the user scrolls.
... more >>
Trying to listen for remote connection
Posted by sgrenz NO[at]SPAM gmail.com at 3/7/2006 5:38:11 AM
For the Ensemble studio game "Age of Empires" i'm trying to detect a
remote connection to my computer at port 2300 (when a online game is
started from the game on the client).
I also need the process ID that har accepted the remote connection (Age
of empires).
i tried about everything i cou... more >>
Embed a windows application in a browser
Posted by johnThemod NO[at]SPAM gmail.com at 3/7/2006 5:17:29 AM
Hi,
Im new to these groups,
Im wondering is it possible to develop a windows application(c#) and
embed it into a browser. So if a user goes to this page, the
application woudl be downloaded.
kinda the way you can embed applications in applets for Java,
Thanks
John
... more >>
16-bit applications and System.Diagnostics
Posted by ChrisBowringGG NO[at]SPAM gmail.com at 3/7/2006 4:30:44 AM
Hi,
I am trying to get information about 16-bit applications using
Process.GetProcesses and variants, but none of the 16-bit
applications show up with these methods.
I tried to get at them by looking at the properties of the
ntvdm process (see
http://www.microsoft.com/mspress/india/Pages/W... more >>
StreamReader.ReadToEnd
Posted by Chris S. at 3/7/2006 3:31:44 AM
I'm curious - does StreamReader.ReadToEnd() handle chunk loading of
data or does it block until the whole stream is loaded? I've been use
to handling the buffer myself but I'm thinking maybe this is a quicker
way of doing it. In particular I want to ensure the UI doesn't hang
whilst loading, for... more >>
Visual Studio 2005
Posted by Mads Peter Nymand at 3/7/2006 3:29:18 AM
Hi,
Background: I'm a Java programmer new to c# and Visual Studio.
Problem: When I compile in Visual Studio 2005, the compiler complains,
that it can not find several different namespaces. Examples:
Error 1 The type or namespace name 'Soap' does not exist in the
namespace 'System.Runtime.... more >>
Problem with a Regex
Posted by taylorjonl at 3/7/2006 2:51:10 AM
I am having a problem matching some text. It is a very simple pattern
but it doesn't seem to work. Here goes.
<td[^>]*>.*?</td>
That is the pattern, it should match any <td></td> pair. Here is my
input data.
<td valign="top">Buyer<a href="http://www.google.com">google</a><img
src="www... more >>
Return reference to Structure from unmanage Code
Posted by [Yosi] at 3/7/2006 12:10:28 AM
I have an unmanaged DLL, which includes the following struct :
typedef struct TB_Board_Inf
{
char BoardOwner[20];
WORD BoardId;
BYTE BoardRev; //A,B,C...
} TB_Board_Info_struct;
and the following API :
TB_Board_Info_struct *iTB_BoardInformationBlock_Read( v... more >>
NUNIT vs VSTS ?? Which is better ?
Posted by Parag at 3/7/2006 12:00:00 AM
Hi,
I am trying to figure out best testing tool for my project. I have
narrowed down my requirements to two tools NUNIT and VSTS unit. But I have
used neither and I have to use only one of them. Hence can someone who has
used them before share his/her experience on them so that I can get ... more >>
How many threads is too many?
Posted by Alexander Walker at 3/7/2006 12:00:00 AM
Hello
Is it inefficient to create an application that has many threads that
individually may do a small amount of work over a given period of time as
opposed to an application that has a smaller number of threads that do a larger
amount of work over a given time period
here is an oversi... more >>
Catching web exception
Posted by Andrés_G._Aragoneses at 3/7/2006 12:00:00 AM
Hello.
If I just want to check whether a specific URL returns error (404, 403,
500...) or not, I do this:
HttpWebResponse oResponse = null;
try
{
oResponse = (HttpWebResponse)oRequest.GetResponse();
}
catc... more >>
Can I Run SQL Statement for DataSet ?
Posted by Dragon at 3/7/2006 12:00:00 AM
Can I Run SQL Statement for DataSet ?
... more >>
DataSet Table Join
Posted by Dragon at 3/7/2006 12:00:00 AM
Can I Join two Data Table in Data set ??
Is it using the DataSet.Merge ?
Any example ?
... more >>
Sort an IList object
Posted by tomb at 3/7/2006 12:00:00 AM
How to I sort an IList object?
... more >>
Rookie SQL Question
Posted by Ivan Sammut at 3/7/2006 12:00:00 AM
Hi,
This is a dump question most proably but totally fogot the SQL commands an
need a refresh. I have a table containing a list of cutomers (pcst), then I
have an other table (pcstmes) which contains some details about some of the
customer not all. The 2 tables are related by a fields named ... more >>
how to realloc arrays?
Posted by Egor Yu. Shkerin at 3/7/2006 12:00:00 AM
Hello.
Please tell me how can I grow size of arrays?
Now I do something like that:
sbyte [] a = new sbyte[ 1 ];
for( int i = 2; i < 10; i++ )
{
sbyte [] new_a = new sbyte[ i ];
a = new_a;
}
But I fill that it will be memory leak.
How can I free memory taken with "a" variable?
Or m... more >>
|