all groups > c# > november 2004
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 >>
|