all groups > c# > december 2004 > threads for thursday december 2
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
Enabling Interaction of Desktop in C# Services
Posted by Chakkaradeep at 12/2/2004 11:53:08 PM
hi all,
as it was discussed earlier in this forum titled,"Execution of Another
Application in Services", i got the answer that Services are not meant for
executing another applications, but Microsoft has given the options to
Interact with Desktop for the Services which need to...
I got m... more >>
How to modify value in ArrayList?
Posted by KalleD at 12/2/2004 11:29:05 PM
Given:
ArrayList al=new ArrayList();
int i=1;
al.Add(i);
How can I change the value of al[0] to 2?
(without removing the object and then adding a new one)
This won't work, since int is an value type object:
int k=(int) al[0];
k=2; //(al[0] is not updated since k is a not a referrence... more >>
How to import Matlab chart to C# window app
Posted by Jess at 12/2/2004 11:15:08 PM
Hi all,
I am doing a window application. Now i need to use Matlab to draw a chart
and display that chart in my dialog written in C#. How do i do this?
I know there is a C# wrapper but it is just for value functions. What is the
possible way out ??
Regards
Jess... more >>
DataGrid Column Boolean Value Formatting
Posted by Evan Brown at 12/2/2004 10:11:09 PM
Hi
I have a Datagrid with a boolean column in it. I currently have it set
as a textboxColumn and not a checkcolumn. what I want to do is have it
say yes/no not true/false. Any suggestions?
Evan Brown... more >>
Referring to a control with variables?
Posted by (tantiboh NO[at]SPAM hotmail.com) at 12/2/2004 9:55:15 PM
I've got a situation where I'm trying to refer to a control in terms of a counter.
I've got a 4x4 grid of labels, uniformly named according to their position in the grid, i.e. lbl00, lbl01, lbl02, lbl03, lbl10, lbl11, etc.
I'd like to refer to these controls with counters so that I don't hav... more >>
using gzlib from c#
Posted by Bonj at 12/2/2004 9:16:04 PM
I downloaded the gzlib library from zlib in order to do compression.
(http://www.gzip.org/zlib)
The prototype of the compression function seems to be
int compress (Bytef *dest, uLongf *destLen, const Bytef *source, uLong
sourceLen);
It is meant to be called by C, but I would rather use it fro... more >>
StringBuilder Remove function - How to remove single character?
Posted by deko at 12/2/2004 8:01:56 PM
I need to loop through a string and remove all characters except numbers or
letters. I am getting an ArgumentOutOfRangeException: "Index was out of
range. Must be non-negative and less than the size of the collection"
Not sure what is going on... any suggestions welcome!
public static strin... more >>
Plug-In Models in .NET
Posted by Srikanth at 12/2/2004 7:43:44 PM
Hi all,
Can any one give details about plug-in models in .NET?
We have an application which will consists of a different documents, which
will be displayed in 2 different tree views based on the type of document.
and now we are dispatching to our clients. One of clients requires an
addition... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
DllImport and NullReferenceException
Posted by Enrico Pangan at 12/2/2004 6:46:11 PM
I'm trying to call some functions in a C++ Dll, "Library.dll" from C#.
Some functions work but some return the NullReferenceException. I have
here the source code for the C++ version and for the C# version. The
C++ version works while the C# version returns the
NullReferenceException on a call... more >>
Drawing wrapped text
Posted by Sam Martin at 12/2/2004 5:50:01 PM
Hi all,
I want to be able to draw wrapped text started at a point x into the
rectangle on the first line
If there's not a GDI+ method for this, i'm guessing it's a common technique,
but can't seem to find an example.
for example
normal DrawString(string, font, brush, xpos, width) (from... more >>
HTML parser
Posted by Craig Kenisston at 12/2/2004 5:47:08 PM
Hi,
Could someone recommend any decedent html parser ? All what I need to do is
to extract the links from a given page.
I've found several tools in codeproject but all seems to be a bit inmature,
yet.
I'd like to hear opinions and personal experiences with any c# html parser.
Thanks in... more >>
check for value during debugging...
Posted by VMI at 12/2/2004 5:34:21 PM
I'm trying to debug a For loop but I don't want the compiler to break
everytime it enters the loop. Is it possible to tell the compiler to break
when a condition is met? In other words, if my loop says for (int
i=0;i<2000;i++) { ... }, I want the compiler to break when i = 1400. Does
the c... more >>
C# compact framework return true/false from MessageBox
Posted by Daniel Passwater via DotNetMonster.com at 12/2/2004 5:01:50 PM
I'm a newbie. So please be patient. I'm working on a C# app in compact framework for a PDA. It connects to a device and extracts and updates data. I need to double check with the user before I continue with the update. I would normally use a MessageBox with an OkCancelButton. However, the compact fr... more >>
Debugging remote C# webapp
Posted by Adam Clauss at 12/2/2004 4:46:31 PM
I have an ASP.NET (C#) web app on a remote server. Whenever I try to debug it, I get:
"Error while trying to run project: Unable to start debugging on the web server. Access is denied."
I did some research on this, and I do have the user as a member of both Administrators and Debugger Users. (... more >>
Reference uniqueness and object's ID
Posted by Fernando Cacciola at 12/2/2004 4:39:58 PM
Hi,
I need to produce an ID number that uniquely identifies a given object
instance.
(If the object is a boxed value, well, it won't really matter, but for
_shared_ reference-types I really need a unique ID)
What's the most efficient way to do this?
I'm thinking of using a Hashtable ... more >>
Learning problems...
Posted by newsgroupie at 12/2/2004 4:24:55 PM
Hi Newsgroupies,
I have a friend with 10 years MFC experience and who is now learning C#
and WebForms and who has run up against a conceptual problem.
I, erm I mean he, wants to know how to save and restore information
between renderings of a WebForms page before during and after a button ... more >>
Q: Startup Location of OpenFileDialog
Posted by Geoff Jones at 12/2/2004 3:39:29 PM
Hi
Can anybody tell me how to specify the startup location of an
OpenFileDialog?
Thanks in advance
Geoff
... more >>
Crystal Reports Manual
Posted by Alberto at 12/2/2004 3:25:36 PM
Do you know where I can find a free Crystal Reports manual?
Thank you.
... more >>
CheckBox in ListView
Posted by Alberto at 12/2/2004 3:23:45 PM
How can I insert checkboxs in some cells of a listView?
Is it posible?
Thank you.
... more >>
user display language
Posted by Loui Mercieca at 12/2/2004 2:19:31 PM
I am tying to retrieve the user's default language to display the resources
according to the language. For example, if the user is from germany, i will
display the german resources without asking him having to log in first.
Can anyone help me or just point me to the right direction.
... more >>
Com+ in .NET
Posted by Gas at 12/2/2004 1:46:35 PM
Hi all,
I am a .NET newbie, some people told me that with .NET, COM+ is not worth
anymore,
Is that correct?.
I want some comment on this?
thanks
Gas
... more >>
ListView that renders HTML in its items
Posted by Sam Martin at 12/2/2004 1:28:39 PM
Hi all,
I'm looking for a ListView/ListBox control that can render simple HTML
markup when drawing its list items.
Anyone got any ideas?
TIA
Sam Martin
... more >>
Converting Dataset to Recordset
Posted by Marathoner at 12/2/2004 12:59:13 PM
I have read Bill Vaughn's paper on this subject and I have one stumbling
block. Bill wrote his demo in VB.NET. He converts a DataTable to an XML
file. In VB.NET, he dimmed a recordset and used this syntax:
rs.Open(sPathToXMLfile)
When incorporating his code in my C# app, the ADODB.Recor... more >>
Newbie question.
Posted by Jensen Bredal at 12/2/2004 12:49:24 PM
Hello,
i do i mark part of my progam so that it only executes when i'm in debug
mode?
Many thanks in advance
JB
... more >>
Reading e-mail messages programatically...
Posted by Nishchal at 12/2/2004 12:45:07 PM
Hello,
I am trying to read the email messages for different profiles and I want to
do this without user's intervention. I am the administrator and I have the
rights and passwords but when I switch user it prompts me a dialog box to
confirm the user name and password even though I am providing... more >>
c# books
Posted by Francois at 12/2/2004 12:19:59 PM
Hi guys,
I am a daily average user of C# but I think I need to masterize the language
a little bit more to get full use of it and be able to do better
programming. I find myself programming the same way I did years ago.
I haev a basic understanding of OOP and do not need an introduction book f... more >>
how to execute commands in process?
Posted by Faraz at 12/2/2004 12:17:01 PM
Hey guys.
How cam I interface with the environment in C#. I want to execute commands
in a (separate) process, just like java Runtime.exec(string command) does.
Thanks in advance,
... more >>
Create video from JPG?
Posted by brian.hampson NO[at]SPAM gmail.com at 12/2/2004 11:32:25 AM
I'd like to be able to create either AVI, MPG, or MOV from a series of
JPGS (BMPS, etc).
I have no clue about where to start, or what to do. I've tried
Googling, but to no avail :(
Please help.
Thanks!
Brian Hampson
blog: http://www.blogontheweb.com/dragonspeed... more >>
SW Architecture: OOP in Mulit-Tier-Applications good practice anymore ?
Posted by Gordon at 12/2/2004 11:31:59 AM
Hi,
we are at the point to start a new big SW Project.
As probably many of you, we design our Applications in an Multi-Tier
approach,
where the UI as Thin Client (IE) accesses the Backend asynchronsously via
WebServices using XML Data.
Now my question:
Makes it sense anymore in this multi... more >>
How do I convert from string to Type?
Posted by Ken Varn at 12/2/2004 11:21:51 AM
I have an unknown numeric Type object passed into a function. I want to run
a conversion on a string to convert the string to that Type object and
return an object of that type. Is there some way to do a generic cast or
conversion on the type?
Here is sort of what I want to do:
object MyF... more >>
End of file
Posted by Michael at 12/2/2004 11:15:02 AM
Hi
When I read from a file through a binaryReader, how can I know when the end
of the file is reached?
thanks... more >>
Syntax error: Overloading the = operator?
Posted by Peter at 12/2/2004 10:59:03 AM
Hello,
Thanks for reviewing my question. I am trying to override the = operator
for my UserControl class; However, I am getting a syntax error.
public class MyClass
{
private int x = 0;
public static UserControl1 operator =(int y)
{
x= y;
return this;
}
}
M... more >>
My C# Corner article: Multiuser XML 'Database' Web Service
Posted by John Bailo at 12/2/2004 10:35:22 AM
C# Corner ( http://csharpcorner.com ) is running my article:
"Multiuser XML 'Database' Web Service"
Thanks to everyone in these newsgroups who gave me help and advice when
presenting the concept.
It's currently the first article listed on their home page!
--
http://www.texeme.com
... more >>
creating a list view like windows explorer view
Posted by Muhammad Aftab Alam at 12/2/2004 10:30:56 AM
Hi All,
I need to know how can I make a list contorl like of windows explorer. From
windows explorer view I mean when we open My Computer a list view is shown
and the headers are shown as follows
Files stored on This computer
-----------------------------
(shared documents) (dotnetdocuments)... more >>
OFF: Why Microsoft can blow-off with C#? ;)
Posted by Tamir Khason at 12/2/2004 10:03:43 AM
http://khason.biz/blog/2004/12/why-microsoft-can-blow-off-with-c.html
--
Tamir Khason
You want dot.NET? Just ask:
"Please, www.dotnet.us "
... more >>
Updating status bar from a class library
Posted by Venu at 12/2/2004 9:54:42 AM
Hi Everyone,
I'm very new to C# and I have the following problem - please help.
I have a Windows Forms application called 'FunApp' which has a status
bar. I also have a separate class library called FunTx compiled as a
DLL.
What I want to do is update the status bar from within a FunTx me... more >>
Using WMI
Posted by Mohammad-Reza at 12/2/2004 9:43:02 AM
Hi
I wrote a program that use System.Management refrence to control hardware of
computer using WMI refrences.
I simply get the system information from the given classes of this
namespace, but how can I set a specific property like mouse double click time
or wallpaper or keboard properties, .... more >>
Work with logical drive
Posted by Bun Him Dara at 12/2/2004 9:42:47 AM
Hi,
Does anyone know if c# can mount and unmount drive? if it does please
provide some sample code or if it not do you know any other way to work in
this situation?
Thank you,
Dara
... more >>
Is there an API to get File Description/Type
Posted by Craig at 12/2/2004 9:29:02 AM
Example: Take .doc or test.doc and retrieve "Microsoft Word Document". This
is the 3rd column in windows explorer when you're in detail view, and it's
named "type".
I can't find it in the FileInfo class or in the shell32.dll or the
dsofile.dll. (I must be missing it, or is there no API fo... more >>
detecting browser or os
Posted by Phil Townsend at 12/2/2004 8:25:21 AM
How does one detect for Internet Explorer on Windows CE? Does
Request.Browser.Browser return anything unique for IE CE? I have a
strange situation where I need to develop a user interface to a web app
for CE, but at the moment I do not have a pocket device on which to test
it. Anything else i sh... more >>
Why C++ is faster than C# for .NET apps
Posted by Tim Anderson at 12/2/2004 8:00:38 AM
I interviewed Craig Symonds, general manager of the Visual Studio product
team:
http://dnjonline.com/article.aspx?ID=dec04_vs2005
(click the link to Performance issues). It's to do with optimization: in
essence, the C++ compiler will optimize, while C# and VB leave optimization
to the ru... more >>
C# file access violation
Posted by phreakstar at 12/2/2004 7:43:03 AM
I am having trouble with an access violation in my program when I am trying
to clean-up on program exit. I create a temp directory and then i put some
files in it using FileStreams. The file streams are created using this call...
using (FileStream streamWriter = new FileStream(Application.Sta... more >>
Not quite HTTPWebResponse, HTTPWebRequest
Posted by TimSLC at 12/2/2004 7:15:02 AM
Hello again,
I have exhaustively looked into HTTP WebResponse and HTTPWebRequest classes
and I see how they might be able to help me in my problem. Let me outline
what it is:
1) I am creating a testing program for a web form. This form has 4 text
fields and a submit button. The HTTPWebRe... more >>
Hide Datagrid
Posted by jez123456 at 12/2/2004 6:47:04 AM
Not sure if I'm in the right thread but here goes.
I have an ASP.Net web page with a datagrid. The code behind is C#.
If the datagrid has no records the datagrid header section is still shown.
What I need is to hide all of the datagrid if there are no records.... more >>
Is there a problem with bug reporting at the moment?
Posted by digitig at 12/2/2004 6:43:08 AM
I don't seem to be able to report bugs.
From http://lab.msdn.microsoft.com/ProductFeedback/ I click "Report a bug".
That takes me to
http://lab.msdn.microsoft.com/ProductFeedback/reportbug/search.aspx where I
enter the product (Visual C#) and the keyword ("Unexpected error"), click
"searc... more >>
newbie question about object arrays and events
Posted by Peter Krikelis at 12/2/2004 6:07:03 AM
Hi,
I have a class library that I reference in my project. The class library is
a wrapper for the UDP client class. Now when data comes in on a socket, it
notifies my application and I can then retrieve that data. The problem is how
to handle events that might happen at the same time. If yo... more >>
Component that allows binding to it
Posted by ogs at 12/2/2004 3:37:05 AM
I need to create component that allows binding to it's properties. Maybe
there exists some interface or something.
Like:
===================================================
public class Cat : Component, ISomeBindInterface{
private String pCatName;
public String CatName{... more >>
Window handles limit exceeded
Posted by benc at 12/2/2004 3:07:02 AM
Hi
Can anyone enlighten why dispose() a form does not seems to release
window handles. My .NET app crushes after while, typically when window
handles > 1400 or so. My main form creates/inits about 50 forms, tag to
tree nodes, so it appears when user clicks the node. In each form there
are the u... more >>
disable event handler
Posted by bernardpace NO[at]SPAM yahoo.com at 12/2/2004 2:13:38 AM
Hi,
Is there a way to disable an event handler, like a clik on a button
at a certain stage of the program.
Thanks in Advance... more >>
System.Diagnostics.Process causig memory leak
Posted by sebastian.sosna NO[at]SPAM dregis.com at 12/2/2004 2:01:48 AM
Hello NG,
iam having a problem with the code block below. All what i do is to
trace processes that exited. Iam using a 5 sec timer to call the
following Method:
(wich i think is causing the leak)
private void GetRunningProcesses(){
System.Diagnostics.Process[] p =
System.Diagnosti... more >>
How to make Atomic timer callback?
Posted by Sharon at 12/2/2004 1:39:07 AM
I’m using a timer, and when the timer is invoking my callback; I want that
the callback code will be executed at once as a one atomic action so the CPU
will not leave this tread in the middle of the callback execution.
Can anybody tell me how to it?
--
Regards
Sharon G.... more >>
|