all groups > c# > february 2006 > threads for friday february 3
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
Array.Sort a struct
Posted by Gerrit at 2/3/2006 11:44:07 PM
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;
public string title;
}
and than I have this:
mp3file[] mp3 = n... more >>
Using a form purely programatically - by proxy.
Posted by Simon Tamman {Uchiha Jax} at 2/3/2006 10:59:49 PM
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
and pass those on to Form2, thus changing the gra... more >>
MSBuild frustration.
Posted by Jianwei Sun at 2/3/2006 8:58:45 PM
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"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
W... more >>
Books download
Posted by elnahrawi at 2/3/2006 8:51:44 PM
http://www.books-download.com
All for free
... more >>
Set DefaultValue property attribute to non constant value.
Posted by Steve at 2/3/2006 8:40:44 PM
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?
I can... more >>
Problem with threading/marshalling COM within .NET (?)
Posted by Bryce Calhoun at 2/3/2006 6:22:02 PM
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 im... more >>
Formatting
Posted by CK at 2/3/2006 6:03:45 PM
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
... more >>
NDIS from c#
Posted by raji at 2/3/2006 6:01:39 PM
hai all,
can any one specify how to call NDIS from c#?im new to NDIS .can anyone
tell where to start ?
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
how to get info about users in workgroup in c#
Posted by raji at 2/3/2006 5:55:19 PM
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.
... more >>
I need to consum a java webserice in my C# app.
Posted by jens Jensen at 2/3/2006 5:11:38 PM
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
reference" . The button is just not enabled. I do see the webservice
... more >>
Does project load DLL multiple times?
Posted by Brett Romero at 2/3/2006 4:14:50 PM
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?
Thanks,
Brett
... more >>
Programatically Set The Width of a column in a datagrid.
Posted by UJ at 2/3/2006 4:08:33 PM
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.)
TIA - Jeff.
... more >>
Network Statistics
Posted by Radi Radichev at 2/3/2006 4:08:15 PM
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.
... more >>
Can an object be passed to a WebMethod?
Posted by Ray Stevens at 2/3/2006 3:53:01 PM
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
wondering if what I am attempting is even doable?
Even this simple tes... more >>
XmlReader for immediate descendents
Posted by Marc Gravell at 2/3/2006 2:59:36 PM
I have an xml-reader positioned at an element.
I want to read a: all of the attributes of the element, and b: all of the
immediate child-elements of the current element.
The first (attributes) seems very simple:
if (reader.MoveToFirstAttribute()) {
do ... more >>
Code access permission to access processes running in memory
Posted by Simon Hart at 2/3/2006 2:55:39 PM
Does anyone know the standard code access permission to be able to
manipulate a process using the Process class?
Thanks
Simon.
... more >>
dynamic type at runtime?
Posted by netnet at 2/3/2006 2:50:37 PM
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:
public ... more >>
Response.Redirect
Posted by Peter Kirk at 2/3/2006 2:40:28 PM
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.
To add a parameter I guess it's as easy as adding "?myparam=myvalue" to the
u... more >>
Debugging a Web Service
Posted by Sathyaish at 2/3/2006 2:19:16 PM
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
to debug WinForms apps, Console Apps and ASP.NET apps in Visual Studio
..NET 2003.
... more >>
Interesting performance odities
Posted by Fernando Cacciola at 2/3/2006 2:10:21 PM
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;
public interface I { void Do (... more >>
dataGridView Memory Leak
Posted by Peter at 2/3/2006 1:55:34 PM
..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;
long mem = GC.Ge... more >>
'Modal' ContextMenu?
Posted by DrBonzo at 2/3/2006 11:33:15 AM
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,
but I don't know where the 'handle' argument would come from. D... more >>
JScript Memory Leak
Posted by Mitch Freed at 2/3/2006 11:31:49 AM
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:
http://www.odetocode.com/Code/80.aspx, seems to handle memory the most
efficiently. However, if executing in a tight loop (say, wh... more >>
How to get filenames from shared network directory?
Posted by Goran Djuranovic at 2/3/2006 9:51:29 AM
Hi All,
The following code works fine in VB.NET (Windows app and Web app =
projects) when converted to VB.=20
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).
Why does it not work in C# Web app... more >>
Java finally has a fantastic gui builder
Posted by surabhi at 2/3/2006 9:03:49 AM
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
Java IDEs had a half-decent gui ... more >>
Expanding a tree view with a path
Posted by James L at 2/3/2006 8:20:30 AM
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,
can i do this via the path... more >>
Compact Framework: Counting lines in a TextBox
Posted by anoehre at 2/3/2006 8:11:20 AM
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
was filled with a string.
Any ideas?
Greetings,
Arne
... more >>
Reading CSV File into SQL never completes
Posted by Antonio Tirado at 2/3/2006 8:10:33 AM
(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
gets stuck. All rows are read and insert... more >>
My Documents Folder
Posted by John at 2/3/2006 7:33:40 AM
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... more >>
Array of datasets....
Posted by Diogo Alves - Software Developer at 2/3/2006 7:10:11 AM
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
array of datasets, but it's not working...here is the cod... more >>
Quotation marks in string arguments
Posted by bcastaing NO[at]SPAM gmail.com at 2/3/2006 7:08:20 AM
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.... more >>
from excel to delimited.txt (hidden values in excel?)
Posted by KBuser at 2/3/2006 7:05:50 AM
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
tried different date/custom formats for those fields in excel, always
with the sa... more >>
Catching java exceptions
Posted by apandapion NO[at]SPAM gmail.com at 2/3/2006 5:19:22 AM
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?
... more >>
Reference COM component fails in Visual Studio (ResolveComReference exception)
Posted by ffhansix NO[at]SPAM hotmail.com at 2/3/2006 5:15:39 AM
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
the compiler when trying to compile the solution.
Does anyone know why this occur... more >>
clicking button in external app
Posted by blah at 2/3/2006 5:01:10 AM
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
winapi and the interop services, but I cant quite set the code up to
work. Ive managed to ge... more >>
adding acrobat control programatically
Posted by Khadim at 2/3/2006 4:58:49 AM
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
while ... more >>
JCLA Runtime error
Posted by Aleksandar at 2/3/2006 4:44:23 AM
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
JCLA Wizard.
The dialog wi... more >>
Security exception while opening an OleDBConnection
Posted by CyberLotus at 2/3/2006 4:29:39 AM
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";
str... more >>
Datagrid combobox Column
Posted by Christopher at 2/3/2006 3:35:55 AM
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... more >>
Bitmap printing through a NetworkStream
Posted by mottebelke NO[at]SPAM hotmail.com at 2/3/2006 3:26:57 AM
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);
NetworkStream printStre... more >>
How to handle every character within a 'StreamReader'?
Posted by francescomoi NO[at]SPAM usa.com at 2/3/2006 3:18:43 AM
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();
}
return result;
-----------
It wo... more >>
Good books about .NET and C#?
Posted by Ahti Legonkov at 2/3/2006 2:16:00 AM
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#
experience. So far the books I have come accross start with basics
like "writing loops" an... more >>
Interview Questions Feb 03 2006
Posted by Jobs at 2/3/2006 1:22:08 AM
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.
Full Intervi... more >>
Code review
Posted by Filippo at 2/3/2006 12:53:05 AM
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
optimizate this task?
We actually use .Net 2003 and source safe 6.0d.
Thanks in ... more >>
Error shown when I goto complie the application that converted from v1.1.
Posted by Benny Ng at 2/3/2006 12:00:00 AM
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
following shown. Any suggestion?
Error 8 The type 'SalesCh... more >>
changing UI state generate UI events
Posted by # Cyrille37 # at 2/3/2006 12:00:00 AM
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).
Here the scenario :
<code>
SomeObject data ;
....
void U... more >>
Assigning values to variables
Posted by Kiran A K at 2/3/2006 12:00:00 AM
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
the value of the string?
Any help w... more >>
C# and administrator rights
Posted by Laurent at 2/3/2006 12:00:00 AM
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
programmaticaly launch ... more >>
Structures v/s Classes
Posted by Kiran A K at 2/3/2006 12:00:00 AM
Hi,
can anyone give specific examples where structs are preferred to classes?
... more >>
ListView control odd question
Posted by Jason Huang at 2/3/2006 12:00:00 AM
Hi,
In my C# Windows Form MyForm, it has a ListView ListView1.
Saying that the ListView1 has now two items like:
ID Name
1 John
2 Marry
But the ListView1 still has some empty space within the ListView1.
What will be the event or property if I CLICK the empty space rather th... more >>
C# and DotNetNuke
Posted by Jason Huang at 2/3/2006 12:00:00 AM
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
... more >>
Pause COM object
Posted by OBINT at 2/3/2006 12:00:00 AM
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
option so that i can pause the COM to work and resume whe... more >>
|