|
ms
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Visual C# .NETmicrosoft.public.dotnet.languages.csharp
best method of reading XML and adding data to ListView
Joe -
4 Feb 2006 10:49 PM - 3 messages
Anyone can suggest the best method of reading XML and adding data to ListView? Here is the xml data structure:: <xml> <site> <url>[link] <lastupdate></lastupdate> ...
Uninitialized data-binding
Viraptor -
4 Feb 2006 9:55 PM - 3 messages
Hello I've created a form with 2 listboxes. Both have data-binding. First one is "normal", 1:1 view of table. Second is filled using parameter from the first one. this.xxxTableAdapter.Fill(this.mainDataSet.XXX, (int)this.BindingContext[yyyBindingSource, "id"].Current); ...
Jagged and Multi-Dimensional Array Declaration Subtleties
Alan Foxmore -
4 Feb 2006 9:41 PM - 5 messages
Hi everyone, I'm new to C# and I was hoping I could get some clarification on the syntax for jagged and multidimensional arrays. Here is my question: The following syntax is correct for declaring a multi-dimensional array: int[,] v = {{ 3, 6, 4 }, ...
Formatting datetime
Joe -
4 Feb 2006 9:20 PM - 4 messages
I need to format the DateTime into such format "yyyymmdd HH:mm" how do you do that? ...
ListView Control access
Joe -
4 Feb 2006 9:19 PM - 2 messages
I set up two columns in listview. I use Add to add items, but how do I access the second column? and add text? ...
c# key sequence
jpierson -
4 Feb 2006 9:07 PM - 5 messages
Hi, I'm trying to simulate a break sequence to a serial device ctrl + pause/break I tried it with limited succcess using this SendKeys.SendWait("^{BREAK}") I'm putting this code under a button click event,I think it may have ...
Choosing implementing class for interface in config
hans -
4 Feb 2006 9:00 PM - 4 messages
Hallo! I want to be able to make my application configurable for which implementation of XmlReader should be used. App.config: <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="XmlReader" value="System.Xml.XmlValidatingReader" /> ...
Suppression of incorrect warnings.
Peter Ritchie -
4 Feb 2006 8:15 PM - 5 messages
Does anyone know how to suppress a specific warning for a line or block of code in C#? C++ has a nice facility to disable a warning for a block of code with #pragma for warnings that are incorrect or don't apply. ...
Uninstall previous version
chris.dannemiller@gmail.com -
4 Feb 2006 7:58 PM - 4 messages
The software I am developing is targeted to users with minimal computer skills is it possible with the installer to setup up the following logic. Detect if previous version is installed, If So ask the user if they wish to uninstall the previous version. ...
Help combinging 3 numbers into 1 with bitwise operatioons
john conwell -
4 Feb 2006 6:00 PM - 3 messages
I have 3 5-digit numbers that i'd like to combine into one 15 digit number, and later rip back into the original 3 5-digit numbers. I know i can do this easily with some string manipulations, but i'm pretty ...
VS 2K5 freezing up on you?
Brett Romero -
4 Feb 2006 5:57 PM - 4 messages
Starting yesterday evening, VS2K5 starting doing this thing were it will spike the cpu at 100% for a few seconds then every thing is fine and then another spike. It just keeps going like that cycle over and over. I'll be typing or something and everything freezes and the cpu ...
string.Empty or String.Empty or ""?
Charlie@CBFC -
4 Feb 2006 5:10 PM - 7 messages
Hi: Is there any difference between string.Empty and String.Empty? And what is the benefit of using it over "". Thanks, Charlie ...
C# Control
Greg -
4 Feb 2006 4:37 PM - 2 messages
Can a custom control DLL develped in C# be used in any .NET project e.g. C++/VB? Also, any ideas on the best ways to share GUI controls among both Web Forms and Windows Forms app? i.e. is there any way to avoid having to develop the ...
picturebox image does not have a Location ??
**Developer** -
4 Feb 2006 2:03 PM - 3 messages
During debug I noticed that a picturebox image does not have a Location Is the image object always located at the upper left of the clientsize of the picturebox. If the picturebox clientsize is bigger then the image size the background ...
about concurent access : event/timer
# Cyrille37 # -
4 Feb 2006 1:47 PM - 4 messages
Hello, I've got a method which could be called by a UI Event and a Timer. I would like to be shure that not 2 concurents calls append. I don't know if I can use System.Threading.Monitor. ...
Best place for global constants
Dave -
4 Feb 2006 11:39 AM - 5 messages
If I have some constants I want to use throughout my application, how should I implement that? const string USA = "US" const string CANADA = "CA" etc. ...
Winforms printing
Code Monkey -
4 Feb 2006 11:11 AM - 2 messages
I have a winform application in c#. I've worked out how to print a single page to a printer. I cannot, however, work out how to print more than 1 page. Can anyone help and maybe provide a small code snippet? ...
Generics, use mathematical operatos on type parameter
Jock -
4 Feb 2006 10:50 AM - 8 messages
Hi all, I would like to use mathematical operators (*, +, etc) on a generic parameter, see the code below: public class TestGenerics<T> where ??? { private T d; ...
C# & XP Taskbar grouping
hohrin -
4 Feb 2006 6:19 AM - 3 messages
Hopefully someone here will be able to point me in the right direction.
In my C# application I have several forms which get a taskbar button
when open. These buttons appear correctly with proper form name and
application icon. however when the taskbar automatically groups the
buttons together, the group button has no name, and the icon changes to
the basic .exe icon. ...
Re: Cluster API
sarita -
4 Feb 2006 3:20 AM - 3 messages
hi willy, I tried your code snippet but it does not seem to work with my clusters. Is this supposed to work if i run it from a remote machine. My cluster is on an IA64 win2k3 machine and i am running this program ...
Problem with threading/marshalling COM within .NET (?)
Bryce Calhoun -
4 Feb 2006 2:22 AM - 11 messages
Hello, First of all, this is a .NET 1.1 component I'm creating. SUMMARY ----------------------- This component that I'm creating is, for all intents and purposes, a document parser (I'm actually deserializing a SOAP document into an object and parsing out the fields, but that's fairly immaterial to this ...
NDIS from c#
raji -
4 Feb 2006 2:01 AM - 4 messages
hai all, can any one specify how to call NDIS from c#?im new to NDIS .can anyone tell where to start ? ...
MSBuild frustration.
Jianwei Sun -
4 Feb 2006 1:58 AM - 2 messages
I am trying to edit an MSBuild project file in the Visual Studio 2005. I tried to use the Intellisense of the editor, so I reference the xmlns at the first line like this: <Project DefaultTargets="DDTI.Utilities.Clean" ...
how to get info about users in workgroup in c#
raji -
4 Feb 2006 1:55 AM - 2 messages
hai, can any one tell me is there any API to get hostnames in workgroup and server?im writing code in c#.and tell me where we can download API reference. ...
Does project load DLL multiple times?
Brett Romero -
4 Feb 2006 12:14 AM - 23 messages
If my UI app uses three DLLs and two of those DLLs reference something named utilities.dll, does the UI app load utilities.dll twice or does the compiler recognize what is going on and load utilities.dll just once? ...
Can an object be passed to a WebMethod?
Ray Stevens -
3 Feb 2006 11:53 PM - 6 messages
I have a C# dataclass object that I would like to pass to a Web Service WebMethod, modify some strings, and return it to the caller but I am getting compiler errors in the client. I'm not an expert on Web Services and am ...
Using a form purely programatically - by proxy.
Simon Tamman {Uchiha Jax} -
3 Feb 2006 10:59 PM - 5 messages
Scenario: Two System.Windows.Forms: Form1 and Form2. Form1 is displayed, Form2 is hidden. At this juncture, is it possible to take the graphics from Form2 and output that to Form1's display and take all of the mouse and key events from Form1 ...
Array.Sort a struct
Gerrit -
3 Feb 2006 10:44 PM - 17 messages
Hello, Is it possible to sort an array with a struct in it? example: I have a struct: public struct mp3file { public int tracknr; public int length; public string filename; public string artist; ...
Debugging a Web Service
Sathyaish -
3 Feb 2006 10:19 PM - 4 messages
How do you debug a web service in Visual Studio .NET 2003? To give you some background, I have been programming for some over 8 years now and know how to debug VB, VC++ apps in Visual Studio 6.0 and also know how ...
Programatically Set The Width of a column in a datagrid.
UJ -
3 Feb 2006 9:08 PM - 3 messages
How can I set the width of a column in a datagrid? I'm creating a new table, defining the columns then tying it to a datagrid and want to make the column wider than the default (the default value is cutting off some of a string.) ...
Set DefaultValue property attribute to non constant value.
Steve -
3 Feb 2006 8:40 PM - 3 messages
Hi, I would like to set the default value of a property on my control by: [System.ComponentModel.DefaultValue( typeof(Color), SystemColors.WindowText.ToString() )] but can't because SystemColors.WindowText is not a constant. Microsoft controls do it, can I - is there a work round? ...
dataGridView Memory Leak
Peter -
3 Feb 2006 7:55 PM - 5 messages
..NET 2.0 Windows Forms app It seems like there's a memory leak in the DataGridView I have the following code: this.dvOpenOrders.Table = dt.GetOpenOrders(whse_code, this.dtpStartDate.Value, this.dtpEndDate.Value); this.dataGridView1.DataSource = this.dvOpenOrders.Table; ...
dynamic type at runtime?
netnet -
3 Feb 2006 7:50 PM - 7 messages
I have a asp.net page with a method to track down a dynamic control.... private void findAndSetTheControl(Control theControl, object theType, string nameOfControl) { theControl = (theType)(PH.FindControl(nameOfControl)); } It gets called here and a couple of other places: ...
'Modal' ContextMenu?
DrBonzo -
3 Feb 2006 7:33 PM - 2 messages
I'd like to bring up a context menu and block execution until the user either makes a selection or dismisses the menu. As in the Win32 TrackPopupMenu. Another post indicated that I might actually be able to call TrackPopupMenu, ...
JScript Memory Leak
Mitch Freed -
3 Feb 2006 7:31 PM - 4 messages
I have been using the JScript eval() method from C# to evaluate conditional logic at run-time. I found that implementing a solution similar to the example posted at: [link], seems to handle memory the most ...
Formatting
CK -
3 Feb 2006 6:03 PM - 2 messages
Newbie question. This has to be simple but what's the easiest way to take a string and format it as currency? What about a percentage? Thanks In Advance, Chris ...
Interesting performance odities
Fernando Cacciola -
3 Feb 2006 5:10 PM - 11 messages
Hi, I was initially benchmarking inlinine capabilities of C# in VS 2005 while I stumble on the following surprising results. Please take a look at the following complete sample (you can just copy+paste and compile it yourself) using System; ...
Java finally has a fantastic gui builder
surabhi -
3 Feb 2006 5:03 PM - 11 messages
A while ago I evaluated Eclipse vs Visual Studio, and settled on Visual Studio 2005. Eclipse is better in many ways, but the lack of a gui builder was the deciding factor. Visual Studio 2005 has an excellent gui builder. Eclipse doesn't, and in fact, none of the ...
Expanding a tree view with a path
James L -
3 Feb 2006 4:20 PM - 5 messages
I have a tree view with a root, 3 noodes(1,2,3) each having one sub node. I drill down to a node. I get the path by saying treeView1.selectedNode.fullpath and assign it to a variable. If I redraw the tree, or close it up and want to expand the same node again, ...
I need to consum a java webserice in my C# app.
jens Jensen -
3 Feb 2006 4:11 PM - 5 messages
I have just realised that i can no longer add web reference as i usually do when it is .net to .net. webservice-webservice client. When i use the "add web refrence " men with the url of the webservice, then i can use "add ...
Compact Framework: Counting lines in a TextBox
anoehre -
3 Feb 2006 4:11 PM - 5 messages
Hi! I have a multi-line text box in a compact framework c# application. I need a method to calculate the excact number of lines of the textbox and a method to calculate the number of used lines after the text box ...
Reading CSV File into SQL never completes
Antonio Tirado -
3 Feb 2006 4:10 PM - 3 messages
(ASP.NET c# Question) Hi, I have this odd problem: I receive a CSV File through file upload. Using an OleDB.Datareader i read each row of the file and insert it into SQL. The problem is that for some reason when the file goes over 15k the program ...
My Documents Folder
John -
3 Feb 2006 3:33 PM - 7 messages
Hi I would like to get the path to the My Docuemnts Folder so I can list all the files / folders in a TreeView. Thanks John ...
Array of datasets....
Diogo Alves - Software Developer -
3 Feb 2006 3:10 PM - 2 messages
Hi all, I am trying to do the following: I have a db column that stores xml inside I want to create one dataset for each field with xml ( this means that I don't know how many datasets I will have...) anyway I had a great idea, and ...
Quotation marks in string arguments
bcastaing -
3 Feb 2006 3:08 PM - 3 messages
My Windows service includes the following lines: string Arguments3 = @"%OvAgentDir%\bin\OpC\cmds\ref-ovo-services.vbs ServiceApplicatif ServiceOVO"; string expandedArguments3 = Environment.ExpandEnvironmentVariables(Arguments3); this.process3.StartInfo.Arguments = expandedArguments3; this.process3.StartInfo.FileName = "cscript.exe"; ref-ovo-service.vbs runs with two arguments: ServiceApplicatif (windows ...
Network Statistics
Radi Radichev -
3 Feb 2006 3:08 PM - 4 messages
Hi All! I want to make a program that monitors the active network connections. Can somebody give me a tip or links with tutorials or something where i can see how is that done? Thanks Greetz Radi. ...
from excel to delimited.txt (hidden values in excel?)
KBuser -
3 Feb 2006 3:05 PM - 6 messages
I'm working on a program which reads through a directory of excel files and parses them into a delimited text file. However, in each date field 12:00:00 AM is added at the end of the date (format: mm/dd/yyyy). I've ...
Code access permission to access processes running in memory
Simon Hart -
3 Feb 2006 2:55 PM - 6 messages
Does anyone know the standard code access permission to be able to manipulate a process using the Process class? Thanks Simon. ...
How to get filenames from shared network directory?
Goran Djuranovic -
3 Feb 2006 2:51 PM - 5 messages
Hi All, The following code works fine in VB.NET (Windows app and Web app projects) when converted to VB. It also works fine in C#, BUT only in Windows app project. All tested applications contain only this code on loading of the application (form). ...
Response.Redirect
Peter Kirk -
3 Feb 2006 1:40 PM - 4 messages
Hi I need to write a method which accepts a url (string) and redirects to it. In addition to this I need to either (a) add a parameter to the url; or (b) add the parameter to the header of the redirect request. ...
Catching java exceptions
apandapion -
3 Feb 2006 1:19 PM - 5 messages
I have a dot net web service that consumes a number of other web services, one of which is in java. Is there anything special I need to do to catch the exceptions that this service generates? ...
Reference COM component fails in Visual Studio (ResolveComReference exception)
ffhansix -
3 Feb 2006 1:15 PM - 5 messages
Hi, I am trying to reference a COM component (.dll) from Visual Studio 2005 in my windows application in C# by adding a reference to a third party.dll file (tried .type library also), and i get this error from ...
clicking button in external app
blah -
3 Feb 2006 1:01 PM - 8 messages
Hello everyone, my program is supposed to click a button on another application when I click a button on my application. If I use a spy program to get its identity, how can I do this? I know I should use ...
adding acrobat control programatically
Khadim -
3 Feb 2006 12:58 PM - 2 messages
greetings, i am trying to develop an application which is supposed to show pdf. i have added the activeX control from the acrobat in my application. everything was working fine, until i got to test it on another system which had acrobat 6.0 installed.... there my application gave error ...
JCLA Runtime error
Aleksandar -
3 Feb 2006 12:44 PM - 3 messages
Hi, I need to convert set of Java classes exported from IBM Modeling environment to C# for implementation. When I invoke JCLA conversion from File->Open->Convert in Visual Studio 2005 it starts just fine parsing file after file but then it breaks on page 7 of ...
Security exception while opening an OleDBConnection
CyberLotus -
3 Feb 2006 12:29 PM - 6 messages
Hi, I've created a web application and through this I want to import Excel data to database. Following is the code that I've written, ******************************************************************* string fileLocation = txtboxFileName.Text.ToString(); string sheetName = "Import"; string connectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data ...
Datagrid combobox Column
Christopher -
3 Feb 2006 11:35 AM - 4 messages
Is it possible to implement a textbox, combobox,button column without creating a custom table style? Any code samples and comments from the experts would be appreciated ...
Bitmap printing through a NetworkStream
mottebelke -
3 Feb 2006 11:26 AM - 3 messages
I have a bitmap I want to print on a network printer using a network stream. This is the code I'm currently using: chartBmp.Save(ms, System.Drawing.Imaging.ImageFormat.Gif); byte[] printChart = ms.GetBuffer(); TcpClient client = new TcpClient("10.0.0.18", 9100); ...
How to handle every character within a 'StreamReader'?
francescomoi -
3 Feb 2006 11:18 AM - 2 messages
Hi. I want to make a script which reads a file and shows its contents: ------------ using (StreamReader sr = new StreamReader(objResponse.GetResponseStream(), System.Text.Encoding.GetEncoding("iso-8859-15"))) { result = sr.ReadToEnd(); sr.Close(); ...
C# and administrator rights
Laurent -
3 Feb 2006 10:37 AM - 3 messages
Hello, I would like to create an application which would run with administrator rights when launched by a simple user. Is know the RunAs() command in SHELL, but the password is still needed. Isn't there a way, knowing the administrator's password, to ...
Interview Questions Feb 03 2006
Jobs -
3 Feb 2006 9:22 AM - 2 messages
Where is version information stored of a assembly ? Version information is stored in assembly in manifest. Is versioning applicable to private assemblies? Versioning concept is only applicable to global assembly cache (GAC) as private assembly lie in there individual folders. ...
changing UI state generate UI events
# Cyrille37 # -
3 Feb 2006 9:13 AM - 7 messages
Hello, When we update an UI control by code, that control generates a event. For example, if we make a CheckBox Checked, then the CheckedChanged event is fired. That is a goog behavior, but not at the first time (initialization). ...
Error shown when I goto complie the application that converted from v1.1.
Benny Ng -
3 Feb 2006 9:12 AM - 5 messages
Dear All, Now my application is going to migrated into .NET v2. And it's already converted into v2 by Visual Studio 20005. (the auto convert tools) But when I goto compiled the application. Some error likes the ...
Structures v/s Classes
Kiran A K -
3 Feb 2006 8:53 AM - 3 messages
Hi, can anyone give specific examples where structs are preferred to classes? ...
Code review
Filippo -
3 Feb 2006 8:53 AM - 4 messages
Hi, In my organization we would like to activate a code review system, in wich a developer have to pass a review from a reviewer before check in the modified files in source safe. Is there any way or software to ...
how to introduce intellisense
vinaykinagi -
3 Feb 2006 7:15 AM - 2 messages
I have an XML file with a deep heirarchy for which I generate an xsd. Using this xsd I generate C# classes. Then I deserialize the xml to generate an object of the root element. Typically this object would contain an array of it's child elements and ...
Pause COM object
OBINT -
3 Feb 2006 6:12 AM - 2 messages
Hi I am using one API to do some process for me, but unfortunately API dont have a option of pause the process and resume it back. How can i do this using C# API take more then 2 hours in processing and takes 100% CPU usage, I want a ...
Assigning values to variables
Kiran A K -
3 Feb 2006 5:44 AM - 4 messages
In C#, i have seen values being assigned to strings in 2 ways. 1) string name = "Bill Gates"; 2) string name = ("Bill Gates"); what is the difference betn. the 2 methods if any? the second method uses parentheses. does this have any special influence on ...
String function not working while debugging.
archana -
3 Feb 2006 5:36 AM - 7 messages
Hi all, I am facing some wierd problem in quick watch at a time of debugging my application. I have one variable of type string, say suppose i have code as below: string FileName; FileName = FileName.Substring(0,FileName.LastIndexOf(".")); ...
C#2: Can we have a partial class consists of 3 source files?
Maxwell2006 -
3 Feb 2006 4:23 AM - 8 messages
Hi, Typically partial classes consist of two .cs files. Can I have them in 3 source file? Thank you, Alan ...
Using CDO to connect to remote SMTP servers
desais -
3 Feb 2006 3:40 AM - 3 messages
I am using the cdo.dll to send out emails in C#. But instead of connecting to my local smtp to forward the email I am changing the smtp server to the recipients server for each email. This works just fine in ...
Text file access in .NET 2.0
Michael A. Covington -
3 Feb 2006 3:39 AM - 5 messages
One of Microsoft's pages says it's easier to read and write text files in ..NET 2.0 than 1.1. It doesn't say what exactly was done (to System.IO or what class?). Can someone tell me? ...
.NET Certifications Advice Please
Steven Nagy -
3 Feb 2006 3:09 AM - 3 messages
Hi all, I am interested in getting certified and want advice about what would be best. We have not fully switched to VS2005 at my work yet, still running 2003 for almost everything. I have heard that the new certification is much ...
C# and DotNetNuke
Jason Huang -
3 Feb 2006 1:57 AM - 2 messages
Hi, I am thinking if someone knows how to build a website like DotNetNuke using C#. Or even better that there is a C# nuke version. Thanks for help. Jason ...
Good books about .NET and C#?
Ahti Legonkov -
3 Feb 2006 12:16 AM - 16 messages
Hello! I am a software developer with 5+ years of C++ experience and VB experience since version 1.0 until 6.0. I would like to learn more about C# and .NET framework. I have some VB.NET, C++/CLI and C# ...
UBound conversion from vb.net to c#
sunshine -
2 Feb 2006 9:41 PM - 3 messages
I'm having trouble converting this FOR loop from VB.NET to C#: Here's the VB.NET code: Dim localCart As Object localCart = Session("cart") For i = 0 To UBound(localCart, 2) If CStr(localCart(CARTID, i)) <> "" Then ...
How to get this XML tag?
Brett Romero -
2 Feb 2006 9:14 PM - 17 messages
Rather than this type of tag: <File Type="Criteria"> </File> How can I get this: <File Type="Criteria" /> I only need the closing tag if there will be elements or children inserted there. ...
C#VS 2.0 CrystalReport Question
BrianDH -
2 Feb 2006 9:11 PM - 3 messages
Hi Must you always use a Literal path for the CR? // Example DataSet theReportDataset = DataCalls.GetReportDate(parameter); Report1 = new ReportDocument(); string reportPath = Application.StartupPath + "\\" + "Reports.rpt"; Report1.Load("Reports.rpt"); Report1.SetDataSource(theReportDataset); crystalReportViewer1.ReportSource = Reports; crystalReportViewer1.Visible = true; \\ Is there not a way to reference the report thats within your project without ...
How to Marshal a string array
Blue Ice -
2 Feb 2006 8:54 PM - 3 messages
Hello, I am writing an application that uses libMySQL.dll, which is unmanaged C code. I try to use this in my C# app, however a function called mysql_fetch_row returns an array of strings and I don't know how to get that ...
typed dataset
spooke -
2 Feb 2006 8:37 PM - 3 messages
Hi all someone kows where to find a siple project where undestand how typed dataset works. thaks all and excuseme for the stupid questin but i'm a beginner! ...
Is it possible to access a control in another form?
Doru Roman -
2 Feb 2006 8:28 PM - 11 messages
Hi, In a MDI environment I am in one form (main or child). How can access a value from a text box placed in another form? An example please. Thanks, Doru ...
nvarchar(max) sql data type equivalen in c#
skg -
2 Feb 2006 8:04 PM - 3 messages
i am writing a UDF which takes nvarchar(max) as input parameter. Can any one tell me what is the equivalent of this data type in C#. Thx ...
Creating a truly transparent control
melanieab -
2 Feb 2006 7:42 PM - 3 messages
Hi, I found this online: protected override CreateParams CreateParams { get { CreateParams cp = base.CreateParams; cp.ExStyle |= 0x00000020; //WS_EX_TRANSPARENT return cp; } } so I created a new class (called TransparentControl), put the above in it, then on my normal form I made the label private TransparentControl label7; ...
call c# dll function from another app
dotnetchic -
2 Feb 2006 7:16 PM - 5 messages
What I'm trying to do is invoke a c# dll from a c++ application. I don't know whether my problem is in the c# or the c++ code. My c# dll contains a public static function that I'm trying to invoke. ...
will a client application using ado.net get an exception if the command is executing a stored proced
Daniel -
2 Feb 2006 7:11 PM - 6 messages
will a client application using ado.net get an exception if the command is executing a stored procedure that does a RAISEERROR in its tsql? ...
What are Constrained Generics good for??
Fernando Cacciola -
2 Feb 2006 6:50 PM - 20 messages
I'm puzzled, Why and how _exactly_ is this: void Foo<T>(T v ) where T : Interface/Value/Class/class any better than this void Foo( Interface/Value/Class/object v ) ?? Are generics ANY useful for anything but to avoid boxing?? ...
hibernate and stand by
Steve Teeples -
2 Feb 2006 6:43 PM - 5 messages
Does someone have an example of C# code (VS 2005) that puts a system into hibernation or stand by and then after some period of time wakes up the system? I need to write a test that does this functionality. ...
Thread Start Delay
ales -
2 Feb 2006 5:40 PM - 38 messages
Hello, I have a problem with creation of new thread. The method .Start() of newly created thread delays current thread for 0 - 1 second. Cpu while delay occurs is about 5%. Any idea? Here is code used for measuring: Thread t = new Thread(...); ...
Web Service Deployment Issues
Sathyaish -
2 Feb 2006 5:39 PM - 6 messages
I have a Web Service developed using C# and the .NET framework v1.1. When I access the DLL on the localhost, using the URL http://localhost/Folder/bin/MyService.dll it works fine. However, when I x-copy deploy the DLL and its web.config ...
C# Performance
Greg -
2 Feb 2006 5:31 PM - 15 messages
1. What work is in progress to bring C# performance closer to C++/CLI? Can we expect C# to equal C++/CLI performance? If so when? 2. Also what work is in progress to improve MSIL/CLR/JIT performance in ...
platform dependent calls and environment detection
Joe -
2 Feb 2006 5:27 PM - 3 messages
i would like to my c# project to have the Platform target be set to any cpu. i would like to detect at run-time whether the environment is x86, x64 or Itanium, any ideas? ...
Difference between .NET Remoting and Aysnchronus sockets
Macca -
2 Feb 2006 5:19 PM - 2 messages
Hi, I am writing a C# server app that listens for clients over a TCP/IP link. The clients are embedded devices with their software written in C. The clients establish connections and then send a series of data which my ...
Weird
cql90 -
2 Feb 2006 5:13 PM - 4 messages
Hi All Pro, I try to delete item from the listbox control, but I am always got this error message after the item was removed from the list: " There is no row at position 0 " Here is how I do it: ...
Connecting to DB2
Peter -
2 Feb 2006 4:46 PM - 15 messages
I am trying to connect to a DB2 database with IBM.Data.DB2 provider and getting the following message ERROR [08001] [IBM] SQL30081N A communication error has been detected. Communication protocol being used: "TCP/IP". Communication API being used: ...
Calling Sql Server 2000 from C# Express
RvGrah -
2 Feb 2006 4:41 PM - 4 messages
If I use a Sql Server 2005 Express copy of a database on my local machine to develop my apps, can I then just substitute (Ctl+Shift + H "replace all") the server name of my local machine with the server name ...
TCP Socket Flush
Nuno Magalhaes -
2 Feb 2006 4:20 PM - 4 messages
How to do a TCP socket flush in order to get the packets to their real sizes (and not accumulate) like when we send a datagram UDP. When we send UDP it comes with the real packet size, in other words, the packet ...
transparent label over textbox
melanieab -
2 Feb 2006 3:59 PM - 4 messages
Hi, I'd like to put a transparent label over a textbox. I set the label backcolor to transparent, and set its parent as the textbox. But setting the textbox as the parent resulted in the label not showing up at all (I changed ...
Property to store an Array???
dfetrow410@hotmail.com -
2 Feb 2006 3:55 PM - 11 messages
Is there an example of how to store and access an array in a Property Dave ...
Is the way a picurebox draws itself different from how a panel does it
**Developer** -
2 Feb 2006 3:23 PM - 4 messages
I have a usercontrol that contains two pictureboxes One is on top of the other. The bottom one is the parent of the top one. The top one is transparent. I invalidate the top one often I don't need all the bells and whistles of a picturebox so I change the top ...
|
|||||||||||||||||||||||