all groups > c# > november 2004 > threads for tuesday november 30
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
Check Memory
Posted by Hayato Iriumi at 11/30/2004 10:45:20 PM
Is there any way I can check how much memory is consumed by the currently
running .NET application within the application?
... more >>
Bind to a Radio button?
Posted by Andrew J. Kelly at 11/30/2004 10:41:56 PM
How do you data bind to a group of radio buttons? I can bind to an
individual radio button just fine but how do you bind a single field to all
the buttons so it works like a Radio button should?
--
Andrew J. Kelly SQL MVP
... more >>
event bubble
Posted by Tom Gao at 11/30/2004 10:37:09 PM
Hello friends
I'm trying to perform event bubble on a user control from the example on
http://odetocode.com/Articles/94.aspx
but this example doesn't work... when I run the code it says BubbleControl
does not exist which makes sense as nothing was assigned to BubbleControl...
I'm just curi... more >>
Combo box weirdness
Posted by dimension at 11/30/2004 10:17:01 PM
Hi,
I have a combo box that is bound AFTER a user makes a selection from another
unbound drop down. The problem is, the SelectedIndex of the combo box is
always initialized to 0, not -1. This makes it difficult to determine
whether an item was selected or not, since the items collection is ... more >>
How to change the Properties for read only by dynamic
Posted by Chaoxiang at 11/30/2004 9:51:01 PM
hello everyone,
I have the code,
public bool CanLoad
{
get
{
return _canLoad;
}
set
{
_canLoad = value;
}
}
public string LoadText
{
get
{
return _loadText;
}
set
{
_loadText = value;
}
}
i want... more >>
Reading Stream using Threading ??
Posted by AtherMurtuzapurwala at 11/30/2004 9:35:02 PM
Hi All,
Client/Server Program using Sockets...
Server sends request in form of CSV format in NetworkStream...
So I want to read this using threading because it is in very large volume
so threading is faster for that....
But how I read stream using threading...?
or any other suggestion...... more >>
Serial connection behavior C#
Posted by Daniel Passwater via DotNetMonster.com at 11/30/2004 9:33:24 PM
I have a serial connection in C# with a device running embedded C. My problem is that if the owner of the C code puts interupts in, I receive data. Without the interupts the transfer seems to be too fast. The interupts are an un acceptable solution. We are both connecting at 19200 baud. Does anyone ... more >>
How to control download file from IIS?
Posted by Tom at 11/30/2004 9:15:02 PM
Hi,
I have a website providing pdf file downloading for registered member.
Member needs to login and be able to download pdf file.
I save pdf file in a directory. e.g. http://www.downloadpdf.com/pdf/abc.pdf
However, I needs to restrict those non-member to download the pdf file
directl... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
event bubbling
Posted by Tom Gao at 11/30/2004 9:08:13 PM
does anyone have an example of event bubling from a usercontrol bubling
event onto the aspx page?
I searched on the web for days and could not find anything or the fact that
I searched through at least 5 books and could not get them working..
The resources that I found on the web describes i... more >>
inline code
Posted by Tom Gao at 11/30/2004 9:03:23 PM
how come something like
NavigateURL = 'foo.aspx?cpid=<%# DataBinder.eval( Container.DataItem,
"DataItem.Foo"%>&nid=<%# DataBinder.eval( Container.DataItem,
"DataItem.Foo2"%>'
forgive me if I made a mistake in typing.. I just typed off the top of my
head.
The problem is when I do something ... more >>
About references and/or the use of the using keyword...
Posted by clintonG at 11/30/2004 8:41:22 PM
When using Visual Studio.NET I observe adding a new Web Form may have
default References added such as...
References
o- System
o- System.Data
o- System.Drawing
o- System.Web
o- System.XML
The source code will often contain what seems to be redundant declarations
as follows...
using S... more >>
Windows Service System Account Permissions
Posted by Daniel at 11/30/2004 8:39:40 PM
My windows service runs under the system account but the system account
can't see a domain on the LAN. Is there some sort of permissions that have
to be set for the system account to see the domain on the lan? my user
account when i log onto my own machine can see it but my serivce that runs
... more >>
Object Transfer Over Network ( Socket )
Posted by rawCoder at 11/30/2004 8:16:01 PM
Hi All,
I need some advanced samples or references for passing custom objects over
the network using sockets.
Without using Remoting what are other options in .NET Framework for this
binary serialization.
Thank You
rawCoder
... more >>
Plug-In Models in .NET
Posted by Saradhi at 11/30/2004 8:15:44 PM
This is a multi-part message in MIME format.
------=_NextPart_000_0021_01C4D719.5F2DFC60
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi all,
Can any one give details about plug-in models in .NET?=20
We have an application which will cons... more >>
SharpDevelop
Posted by Junaid Hussain at 11/30/2004 8:03:31 PM
Hey,
I have a question for those developers here using Sharpdevelop. I just
recently started using Sharpdevelop, but I keep getting errors regarding
assembly references. I have used the 'assembly scout' to locate the assembly
dll's however when I run compile I get the same errors notably;
... more >>
Custom MenuItems
Posted by Carlos_Guzmán_Álvarez at 11/30/2004 7:41:45 PM
Hello:
There are any way to make a MainMenu that creates the menu items
based a custom MenuItem implementation ??
Thanks in advance !!
--
Best regards
Carlos Guzmán Álvarez
Vigo-Spain... more >>
[OT] What's with this Server?
Posted by C# Learner at 11/30/2004 7:40:08 PM
It seems that anyone not specifying "Outlook Express" or "Microsoft CDO for
Windows" as their user agent doesn't have their 'Lines' field correctly
reported on posts to this server -- the number will be reported as *one* no
matter what.
Kinda curious, eh?... more >>
Curious about someting shown in the IDE
Posted by Just Me at 11/30/2004 6:49:24 PM
I have a Solution containing 25 Projects.
In 3 of them the IDE Solution Explorer show folders obj and bin
The other projects do not show them.
I believe all projects have these folders.
Why do they show in only 3 in IDE the Solution Explorer???
Thanks
... more >>
regex how to match a line that doesn't have a certain char string
Posted by larrym996 NO[at]SPAM yahoo.com at 11/30/2004 6:25:07 PM
I guess I'm missing some obvious stuff.
But I'm having trouble doing the following:
Delete all lines of text that does not contain "myString".
Any help would be appreciated.
Thanks... more >>
SelectSingleNode with multiple namespaces (sort of)...
Posted by 455 at 11/30/2004 6:21:43 PM
Hello all,
I've been trying to figure this out for hours now... can anyone help?
I have an XML document like this:
<?xml version="1.0" encoding="utf-8" ?>
<ICE:ServiceCall xmlns="ICE" xmlns:ICE="http://www.ice.net">
<ICE:Service name="">
<ICE:RetVal/>
<ICE:ConnString/>
<ICE:Para... more >>
TypeConverterAttribute
Posted by Jason at 11/30/2004 6:04:20 PM
Is it possible to make a TypeConverterAttribute ExpandableObjectConverter
for a class that is defined in another assembly and you have no access to?
The definition only seems to apply to the class defined immediately after
the [TypeConverterAttribute.. line
Jason
... more >>
Sending pointer to struct to C DLL
Posted by LR120 NO[at]SPAM LYCOS.COM at 11/30/2004 5:42:21 PM
Hello,
I have a C dll with a method signature of:
int activate(datastruct *data)
where datastruct is defined as:
typedef struct datastruct {
long result;
unsigned char data[1024];
char id[20];
} datastruct;
In C#, I have a small test class defining a struct and using the... more >>
casting hwnd to windows form handle
Posted by The Real Andy at 11/30/2004 5:33:36 PM
Sorry if this question sounds stupid, its early days for me when it
comes to c# and com interop.
I have a method imported from Win Media PLayer SDK,
IWMPPluginUI:DisplayPropertyPage, like so:
void DisplayPropertyPage(IntPtr hwndParent)
I need to pass hwndParent to a dialog, but I cant for... more >>
Input Data to Web Form
Posted by TimSLC at 11/30/2004 5:15:04 PM
Hi there,
I will preempt by saying I am quite new C# but I am trying ;) so bare with
me. I am developing a simple application that opens a preexisting web page
with a form in it. It starts a process of IE, maximizes the window, goes to
the URL, inputs text into the form and submits that for... more >>
Some Exception.StackTrace Info is Omitted
Posted by RC at 11/30/2004 3:15:09 PM
I have implemented an error logging routine in an ASP.NET Web application
that writes out the stack trace (associated with the Exception object). It
tells me the exact line(s) of code that lead up to the Exception.
Sample:
at MyApp.MyPage.Page_Load(Object sender, EventArgs e) in
c:\inetpub\wwwr... more >>
System.Double.Parse not accurate?
Posted by slylos at 11/30/2004 2:33:08 PM
I've got a section of code in my app that keeps track of how much time an
employee has accrued, which equals out to 1.33 days of PTO per month. I'm
trying to store the time accrued so far in an XML file. I have no problems
writing to and reading from the XML file and all my values are correc... more >>
transfer file from domain directory
Posted by Dan at 11/30/2004 2:27:00 PM
i am developing an application that should import a file from a active
directory domain drive.
i have tried to use
System.DirectoryServices.DirectoryEntry,
but DirectoryEntry.Children
didn't return anything,
and System.DirectoryServices.DirectorySearcher
produced an error, s.th. like no sea... more >>
Determining which groups are assigned to a folder
Posted by agarrettb NO[at]SPAM hotmail.com at 11/30/2004 1:53:35 PM
Need any help in determining which groups have been given security
access to a folder. Searched DirectoryServices to no avail...
Any Help?... more >>
Get Winamp info?
Posted by Lasse Edsvik at 11/30/2004 1:21:34 PM
Hello
I was wondering if you guys could help me.
My goal is to make a program that just show's what my winamp on same comp
with a button-click or something.
Now I was wondering if you guys could tell me the "steps" i need to do to
accieve it? If anyone has managed to do it please share yo... more >>
String.Format
Posted by Jaroslav Jakes at 11/30/2004 1:20:12 PM
Hi,
crazy, can't find a simple way.
Have a table with columns: ElementValue, ElementFormat (both string-format)
Would like to format ElementValue according to ElementFormat
e.g.
ElementValue: 0000545
ElementFormat: #####.##
Result: 5.45
Do you have ... more >>
ComboBox text change event notification
Posted by zfeld at 11/30/2004 12:31:30 PM
I need an event notification when the user types anything in the combobox
textfield? I know about the TextChanged Event but the problem is this is
also fired when the user selects an item in the combobox which updates the
textfield, and there is no way of knowing what fired the event other the... more >>
Removing a folder share?
Posted by pnp at 11/30/2004 12:29:32 PM
Hi all,
How can I remove a specific folder share from a folder, through C# code?
Thanks in advance,
pnp... more >>
Re: Accessing Excel files from C#
Posted by Dennis Myrén at 11/30/2004 12:17:44 PM
I have written a very simple component for simplifying the task of working
with
Excel using OLEDB.
It defines objects like ExcelBook, ExcelSheet, ExcelTableRow, ExcelTableCell
and ExcelDataType. I had to perform some Excel parsing, and using Automation
was not an option, but i think this com... more >>
All data is text in ADO Update to Excel...
Posted by Vagabond Software at 11/30/2004 11:44:42 AM
I am updating several excel worksheets using ADO.NET (OLEDB objects). =
Everything is working fine except all the data is inserted as text =
despite being typed in the DataTable object and when the Excel worksheet =
was actually created.
If the user-specified Excel Workbook does not exist, on... more >>
Thread Problem
Posted by bernardpace NO[at]SPAM yahoo.com at 11/30/2004 11:34:14 AM
Hi,
I created a thread, that is creating an array of labels and is
writing them to my windows form, exatly on a tab page. But it is
giving me the following error.
An unhandled exception of type 'System.ArgumentException' occurred in
system.windows.forms.dll
Additional information: Con... more >>
Shortcut Key Question
Posted by Ian at 11/30/2004 11:18:01 AM
Hi
In Visual Basic 6 when you click on a variable of a procedure name you can
go <Ctrl + F2> And it will take you to the Declaration of the variable or
Procedure. Then <Ctrl + Shift + F2> take you back to where you came from.
In C# if you right click there is an option <Go to definition> (I ... more >>
Password Reset for Workstation Login
Posted by Ian at 11/30/2004 10:55:10 AM
Hi
I know there are products out there that can do this like
http://www.psynch.com/technology/ska.html
What is the code that is used to Reset a Users password so the next time
they logon to the domain they are promoted for a new password?
I know the code will have to run under the Admin. ... more >>
TimeSpan/Duration 2 SQL Server
Posted by Zürcher See at 11/30/2004 10:39:52 AM
I was wondering if was possible to have a dataadapter load a TimeSpan
(called 'duration' in a DataSet) from a SQL Server, but because the TimeSpan
stuct doen't implement the IConvertible interface and the SQL Server hasn't
an TimeSpan/Duration field I think is not possible. Or am I wrong?
T... more >>
Removing duplicate BitArrays in an ArrayList
Posted by vbportal at 11/30/2004 10:33:02 AM
Hi,
I would like to add BitArrays to an ArrayList and then remove any duplicates
- can someone please help me forward. I seem to have (at leaset ;-) )2
problems/lack of understanding (see test code below):
(a)When adding BitArrays to the ArrayList and then looping through the
ArrayList I see... more >>
asp.net security
Posted by IvanG at 11/30/2004 10:31:40 AM
SGkuDQoNCkkgaGF2ZSB3aW5kb3dzIHNlY3VyaXR5IGluIG15IGFzcC5uZXQgd2ViIHdlYiBhcHBs
aWNhdGlvbiwgYnV0IGNhbm5vdCBicm93c2UgcmVtb3RlIG5ldHdvcmsgc2hhcmVzIHVuZGVyIGlt
cGVyc29uYXRlZCB1c2Vycywgd2h5PyBBbGwgdXNlcnMgc3VyZWx5IGhhdmUgYWNjZXNzIHRvIHRo
ZXNlIHNoYXJlcy4NCg0KVGhhbmtzLg==
... more >>
File Permission
Posted by Jim Heavey at 11/30/2004 10:31:02 AM
Hello, I have an Console Application (my first endevor in Console
applications) which works fine when I and using Visual Studio to run it on my
workstation. Now I take the application and move it to a "server". I
created a ".bat" file to invoke the application, but now when I run I get a
... more >>
Satellite assemblies modifying Program Configuration settings
Posted by Roger Webb at 11/30/2004 10:23:45 AM
Hey.
Is there a way to attach a satellite assembly to a specific programs'
App.Config File? I have some assembly functions that get used in multiple
programs... each configured in its own way. If I pass them in as
parameters, then I cant update them. Anyone have an idea??
- Roger
... more >>
DateTimePicker Checked Property (Bug In Control?)
Posted by John Smith at 11/30/2004 9:52:18 AM
Hey folks,
Got some strange behavior going on here. I have a datetimepicker with
showcheckbox = true;
If I set Checked=true and set the Text of the datetimepicker, then then the
Checked property is always = true....even after the user unchecks the
checkbox.
This is fully reproducable.
... more >>
Set Crystal Report Namespace
Posted by Mythran at 11/30/2004 9:36:35 AM
In .Net, how can I go about and set a Crystal Reports namespace? Right now
they use the Root Namespace (VB) from the project. How can I extend the
namespace for a single report (which will be set on all reports)?
Thanks for any and all help, in advance :)
Mythran
... more >>
Fw: Com Interop error!!!
Posted by Ramakant at 11/30/2004 9:23:33 AM
Hi,
I have created a component say MyAssembly.dll in .net and gave it t strong
name.
I have compiled the dll with 'Register for COM Interop' to true. Then I used
Regasm to register it and create a tlb to use it in VB6.0. It works on my
machine but dosent work on other machine. I get an follow... more >>
How to change these ifs to switch
Posted by Tim Cowan at 11/30/2004 9:13:17 AM
Hi
I was wondering if someone could help me change these ifs to a switch
statement. I tried but I can't make it work.
Thanks Tim
Code below:
protected void SetThisControl(System.Web.UI.Control WebControl1)
{
if (WebControl1 is BaseValidator)
{
//Do stuff
}
if (WebContro... more >>
xml string - validation with typed dataset
Posted by R.A. at 11/30/2004 9:10:55 AM
Hi
I have the following method:
public string FindNameList (string XmlStore)
I have a dataset based on xml schema. I have created the schema in vs editor
and created the dataset based on the schema.
When The 'FindNameList' method gets called it needs to take the input string
and constr... more >>
Debugging C# assembly called from C++
Posted by listerofsmeg01 NO[at]SPAM hotmail.com at 11/30/2004 9:09:06 AM
Hi,
I have a C# assembly that is being called from VC6 via COM.
I open the C# project in .Net, set a breakpoint, set debug type to
"program", and specify my C++ app.
F5 runs the C++ app, but my breakpoint never fires?!
The C# dll is not in the GAC, and the build path is different to the... more >>
Deployment and Setup
Posted by source at 11/30/2004 8:49:46 AM
I have a setup project and I am adding registry entries in my setup.
For one of my regitry entries I need to assing the value of the [Application
Folder] path.
When I put the value of my registry as [Application Folder]\mypage.htm
when I install my app, the value is simply set as "\mypage.htm" w... more >>
Updating & Deploying a single dll in a C# Application
Posted by premsal2004 NO[at]SPAM hotmail.com at 11/30/2004 8:49:12 AM
Hi All
I have a portal application that we have built that contains links to
different modules. There is no static binding to these dlls from the
application so that we can deploy some modules to some users and some
modules to other users. This allows us to have a centralized
application that... more >>
xml Documentation of a different c# file
Posted by Binith Ashok at 11/30/2004 8:49:06 AM
Hi,
I have a C# dot net program that accepts another C# dot net program as
its input (The file with .cs extension is being given as input to the
program). Is it possible for me to now document this input file in xml???
Thanks in advance...
Regards
Binith... more >>
get file names of files
Posted by HateBSOD at 11/30/2004 8:46:19 AM
Say I want to get the file name of C:\temp\something.xml and have that
put into a variable so I can encrypt the file and output it to
c:\temp\filename.enc. I have not found anything that solves this for
me.
I tired this
static void Main(string[] args)
{
string fileName = @("C:\","*.xml");... more >>
treeview
Posted by Mike at 11/30/2004 8:39:05 AM
I'm creating a windows form where I'm connectiing to a web service to get my
data from. I want to display the data into a treeview for navigational
purposes. How can I display the data in a treeview with the data seperated?
Ex:
--Cars
-- vette
-- BMW
--Trucks
-- Hummer
... more >>
File Location
Posted by Jim Heavey at 11/30/2004 7:59:08 AM
I have a console application which reads the config file to obtain the path
of the file where a file is to be written. Everything works fine on my
workstation, but now I need to move the application to a shared drive and so
I need to change the value in my config file to point to this shared ... more >>
Console Application - Stop and await input
Posted by Jim Heavey at 11/30/2004 7:51:02 AM
I am wanting to stop my console application and see the information which has
been written to the console at a certain point in my program. I have seen
people do some sort of keyboard prompt when the application is awaiting some
key from the keyboard to proceed further. I do not recall how t... more >>
Socket.BeginConnect cleanup
Posted by Peter Chapman at 11/30/2004 7:23:02 AM
Hi
I am using the BeginConnect function on my socket but I am not exactly sure
how I am supposed to clean up after this call.
After the connecion attempt has completed I call EndConnect passing in the
IAsyncResult I received from the BeginConnect and then I close the socket.
However when ... more >>
Book for C#
Posted by Kiran at 11/30/2004 6:38:41 AM
Hi,
As I am preparing for Microsoft Certification, Can some one Suggest me one
good book for C#
Thanks
Kiran
... more >>
Passing boolean value from one form to another form in C#
Posted by Daniel Passwater via DotNetMonster.com at 11/30/2004 6:36:11 AM
I'm working on a C# multi-form app in the compact framework. The forms are called from a main menu that stays in the background. Since there is no yes/no MeassageBox in the compact framework, I'm displaying a third form as a secondary check of the user's intentions. (i.e. Are you sure that you want ... more >>
Column with buttons in DataGrid
Posted by Will at 11/30/2004 6:22:31 AM
Hi
I've been looking a way to put buttons in a column, but almost every example
is for WebForms and I need it for WinForms...
I found a way for doing it, with the DataGridColumnStyle class, but in my
example, the button is unique for the entire grid and it's visible only when
I click the... more >>
How to midified the privilege of a directory
Posted by ad at 11/30/2004 6:04:22 AM
After I create a directory with the System.IO namespace.
How can I midified the privilege of a directory?
... more >>
Is .NET framework installed with COM wrappers
Posted by Niklas at 11/30/2004 5:51:01 AM
Hi
In the framework directory I found a lot of tlb files. Does that mean that
the framework can be used by COM by default?
I want to do the following from COM/vba with .NET wrappers. Is that possible?:
Public Shared Function Load(ByVal FilePath As String, ByVal MyType As
String, ByVal MyM... more >>
How to create a directory with web-base program?
Posted by ad at 11/30/2004 4:07:47 AM
We can use System.IO namespace to create a directory in win-base program.
But when I want to create a directory in the server with web-base program,
System.IO namespace can't work?
How can I do that?
... more >>
how do u call a vb.net form in c#
Posted by Shaggyh at 11/30/2004 3:37:28 AM
hi
im having trouble wondering can anyone help
i have created a vb.net form in visual studio 2003
i would like to create a driver class to call this form in csharp
im having trouble finding the right code
to do this..
does any one have any idea if this is possible and point me in the right
d... more >>
Windows Form Message Loop
Posted by Brian Keating EI9FXB at 11/30/2004 3:31:01 AM
Would I be correct in saying that the only way to get a user message into a
Windows form would be to use P/Invoke with [Send/Post]Message?
Of is there some part of the .NET API that I am totally un aware of?
Thanks for any help
Brian... more >>
try catch finally
Posted by tilli NO[at]SPAM weissenberger.at at 11/30/2004 1:29:51 AM
Hi,
I am a bit confused as to what the FINALLY block is meant for.
What's the difference between:
this.Cursor = Cursors.WaitCursor;
try { //do some stuff }
catch { //handle exception }
finally { this.Cursor = Cursors.Default; }
and this one:
this.Cursor = Cursors.WaitCursor;
tr... more >>
|