all groups > c# > february 2006
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
Problem in using "RequiredFieldValidator"
Posted by Anup at 2/28/2006 11:22:09 PM
Hi Group,
In my project I m using "RequiredFieldValidator" for the validations of
text box,
There are two TextBox, say "txtBox1" and "txtBox2" now I want to make
either of TextBox mandatory, means atlest one should contain some text
and both should not be empty at a time.(I am using ASP.NET... more >>
DataGrid custom styles
Posted by Peter at 2/28/2006 11:18:24 PM
I am using ArrayDataView from the following link, my question is how do I
apply column styles to this DataGrid that uses ArrayDataView instead of
DataSet
http://www.codeproject.com/cs/database/BindArrayGrid.asp
I have tried the following code, but it has no effect
Private Sub CreateCo... more >>
Mac Address Issue - Urgent Help Need
Posted by MVHaribabu NO[at]SPAM gmail.com at 2/28/2006 10:58:15 PM
Senario:
In a machine i have Ethernet Lan card and Wireless Card. When i
trying to read the Mac address of those thro WMI services or Parsing
IPConfig using c# code i am getting Mac address of both the cards.
Help Needed:
I need piece of code which will always return me only Ethernet Lan ... more >>
how to send xml file
Posted by jens d at 2/28/2006 9:59:06 PM
Hi NG,
I'm trying to send a XML file. The receiver should be able to work with
the content without saving it as a file. (Best with XMLReader, but that
will be part of further postings ;) )
I tried it the following way, but it doesnt work out.
Please have a look at my code:
Sender:
lon... more >>
unit testing in a controlled loop
Posted by David K Allen at 2/28/2006 9:50:27 PM
Here's my problem.
Have a database interface with several methods.
I created a database class to implement the interface,
and a set of unit tests to test each method.
Now I want to support another database provider.
The implementation is very easy: I simply
create a new database class, and imp... more >>
Playing animated gif file.
Posted by archana at 2/28/2006 9:37:41 PM
Hi all,
I am having application with threading in it.
While my thread is running i want to show one animated gif file in
panel control.
How can i do this.
Can some one give me some idea about doing this or control to be used
for doing it in .net.
Any help will be truely appreciated.... more >>
VS 2003 to VS 2005
Posted by JRB at 2/28/2006 9:11:27 PM
Hey, I've got a few apps written in Visual Studio 2003 .NET that I've
converted to Visual Studio 2005. I noticed that when I do the conversion, the
old style of windows controls such as buttons and progress bars are not
converted to the new style. How do I convert them to have the new look and... more >>
OnMouseOver + Tooltip
Posted by conckrish NO[at]SPAM gmail.com at 2/28/2006 9:07:12 PM
Hi all,
Can anyone tell me how to display a image and some texts in tooltip
while mouse over a image or imagebutton in asp.net ?.. plz give me some
code samples for onMouseOver event...
Thanx in advance...
Regards,
Krish.
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
trouble using delegate in WndProc
Posted by shengmin.ruan NO[at]SPAM gmail.com at 2/28/2006 9:00:10 PM
when i use delegate like this:
-----------------
[System.Security.Permissions.PermissionSet(System.Security.Permissions.SecurityAction.Demand,
Name = "FullTrust")]
protected override void WndProc(ref Message m)
{
delegate_ReplyFromDataProcess = new
PrepareDelegate_ReplyFromDataProcess(R... more >>
StringBuilder and internal memory question
Posted by DV at 2/28/2006 6:01:52 PM
I have a StringBuilder that has a string with 12,000,000 characters.
When I do a ToString(), I expect to have ~25,000,000 bytes worth of
memory, yet, I end up with ~43,000,000 bytes. That's almost double
the size. The string returned from ToString() is actually of size
StringBuilder.Capacity... more >>
Convert Date
Posted by tshad at 2/28/2006 5:31:27 PM
I am trying to find a way to convert a string date from the format
01/05/2006 to 01/05/06 or 010506.
How would I do that in C#?
Thanks,
Tom
... more >>
Mysterious BindingList linkages (.NET 2.0)
Posted by Dave Booker at 2/28/2006 5:21:27 PM
Is there a reason why the BindingList constructor doesn't create a new
BindingList?
Create a form with four ListBoxes and the following will result in them all
containing the exact same thing. The expected behavior would be for each of
the first three to contain different sets numbers.
... more >>
Sine function
Posted by Owkmann at 2/28/2006 4:47:59 PM
Can someone give me a rough idea how a value is obtained for a trigonometric
function like Math.Sin? What is the algorithm? I'm finding that putting a
large number in this function ( > 8000 ) really slows things down. Why is
that?
Thanks,
Owkmann
... more >>
Blue tooth devices
Posted by vj at 2/28/2006 4:40:00 PM
How do I get a list of Bluetooth devices that my system ( i.e Laptop) is
connected with. Also if the device is available in the list, but
disconnected I should be able to connect to. Can I do this programmatically?
Vijay
... more >>
.NET 2.0 ConfigurationManager
Posted by Janiek Buysrogge at 2/28/2006 4:06:53 PM
Hello,
Can somebody please tell me how I can read values from the following
configuration file. It is generated by VS 2K5 Express when I add
settings using the project properties front-end:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup ... more >>
OT - Software license key generator
Posted by Joe at 2/28/2006 3:48:51 PM
Sorry this is OT...
I'm looking for recommendations for generating license keys (machine
specific) for our application. I was looking at Quick Licenses Manager which
looks pretty good.
Is there any favorites?
-Joe
... more >>
TabControl Change event
Posted by Jason Rangle at 2/28/2006 3:08:09 PM
I am not sure how to use this even properly. When I have it as follows I
have to click on the tabPage1 for anything to show. TIA.
namespace TabLayout
{
public partial class TabLayout : Form
{
public TabLayout()
{
InitializeComponent();
}
... more >>
Control from HWND
Posted by MultiMarine at 2/28/2006 2:41:56 PM
Hello
I have just started using .NET and C# from a c++ background using
win32. Now i want to do something that i used to do, without using the
win32 API.
I use Spy++ to get a HWND from another application in hex form from a
RICHEDIT control.
now i want to turn this hex value (HWND) into ... more >>
Using C# .dll within C++ .dll
Posted by slooper at 2/28/2006 2:17:53 PM
I am trying to instantiate a Windows Form that I have created in C#.
The problem is that I am instantiating it within a C++ .dll. Here's my
example of what works and what doesn't:
WORKS:
///////////////////////////////////// START CODE
///////////////////////////////
#using <mscorlib.... more >>
Dynamic code execution at run-time?
Posted by Dave at 2/28/2006 2:09:29 PM
Is there a way dynamically execute a a piece of code at run-time in C#? Such
as representing a custom method "UserInfo.GetEmail()" as a string and get
'evaluated" during execution and return it's value? this method represents an
already existing method in my app.
I'm trying to avoid creati... more >>
General design question
Posted by Nick at 2/28/2006 1:41:26 PM
Hello,
This isn't specific to C#, but that is what I am using to develop my app. I
am trying to figure out how to organize my code and I'm not sure what the
best way of doing it is. For the sake of simplicity let's say I have three
classes - car, engine, and body. The car class has an insta... more >>
Byte[]
Posted by Michel Racicot at 2/28/2006 12:43:36 PM
What is the best way to read datas in a byte[] that contains several
datatypes?
Some of the datas needs to be peeked before being read, so I can't use
anything that advances while reading without permitting peeking any number
of bytes first...
Normally, I would have used a StreamReader b... more >>
Form Loading in Same Window
Posted by Andy at 2/28/2006 12:04:26 PM
Hello Guys:
I have a main window when my .exe loads. It loads up with a menu system.
What I would like is when a user selects an option from the menu: that the
form loads in the portion of my application BELOW the menu, instead of
opening a new window. I was thinking of using a panel i... more >>
DropDownList Databind getting headers
Posted by tshad at 2/28/2006 11:55:02 AM
I have a DataTable which has the headings in row 0.
I do the following:
PayDates.DataSource=mDt;
PayDates.DataTextField= "Pay Date";
PayDates.DataValueField="Pay Date";
PayDates.DataBind();
PayDates.Items.Insert(0, "Select Date");
But when I look at the DropdownList, the 2nd item, after... more >>
File I/O on DMZ
Posted by Vai2000 at 2/28/2006 11:53:12 AM
Hi All, I have couple of servers in DMZ , I need to do some File I/O on them
from my internal servers...The File I/O are going to be quite large so
obviating WebService option (not sure about Remoting....)
What alternatives do I have which come canned? Don't wanna write a server or
client code..... more >>
Unassigned local variable
Posted by tshad at 2/28/2006 11:38:10 AM
I am getting an error:
Use of unassigned local variable 'postDateRow'
But it is assigned.
Here is the code:
int payDateRow;
int postDateRow;
for(ktr=0;ktr<= rtDataBean.dataTable[0].GetUpperBound(0);ktr++)
{
mDt.Columns.Add(new DataColumn(rtDataBean.dataTable[0][ktr]));
... more >>
Strange behavior when setting the icon of a window.
Posted by hansolox1 at 2/28/2006 11:07:26 AM
The following program simply sets the icon of a form called form1. When I
get the name of the embedded icon using GetManifestResourceNames(), I store
the name in a string variable called s. The value of s is "test2.icon1.ico".
This program will compile and run just fine from visual studio .... more >>
DataGrid - Editable Column Format Question
Posted by Frank at 2/28/2006 9:57:42 AM
Hello,
I am working with an editable column in a datagrid for the first time.
I am using VisualStudio.Net 2003 on the ASP 1.1 framework.
I am having trouble with setting the width of a text box that is generated
once the 'Edit' button is clicked.
The text box that is generated seems to... more >>
Convert String to Char[]
Posted by Rick at 2/28/2006 9:35:53 AM
Hi guys, i've seen it in VC++
but in C# how do i conver string to char[20]??
in c++ is like http://support.microsoft.com/?kbid=311259
Regards
... more >>
params keyword and reflection
Posted by csperler at 2/28/2006 9:24:42 AM
Hi There -
The code that follows does not work. I'm trying to dynamically invoke a
method that contains a params-attributed parameter. However, the array of
objects that are passed into the method are not put into an array, so the
method signature never matches the object array of paramet... more >>
AutoFill in C# for Logon screen
Posted by fischertm NO[at]SPAM hotmail.com at 2/28/2006 9:13:41 AM
Does anyone know where to find code to use Autofill to add user names
and passwords into a login screen.
For example: We would like to use Single Sign on in SharePoint Portal
server, but need to be able to use it with several windows applicatios
too.
... more >>
OO - Question
Posted by Lee at 2/28/2006 8:35:56 AM
Hello all,
Please excuse me if this is not the right group to ask in.
Assume that I have a Person object that reflects data held in a
datastore (DB, XML FIles, etc). Gernally, where should the job of
populating that object be bound?
Should code that instantiates the object fill it?
... more >>
How far\
Posted by Lee at 2/28/2006 8:29:47 AM
--
Warm Regards,
Lee
"Upon further investigation it appears that your software is missing
just one thing. It definitely needs more cow bell..."... more >>
Saving to XML file; something locks the file after first use; Any ideas?
Posted by chad.a.morris NO[at]SPAM gmail.com at 2/28/2006 7:57:08 AM
I'm new to Crystal Reports, so this may be a dumb problem, but I just
can't figure it out.
Basically, I want to control the selected data in the C# code as
opposed to Crystal Reports (since SQL is truly for querying, and
Crystal Reports is more a reporting tool). The only way I've found to
d... more >>
Removing inherited properties from an object.
Posted by UJ at 2/28/2006 7:45:29 AM
I have a text object (see my previous post) that I've added some
functionality to. But I don't want the user to be able to change the text
without calling my routines. So I added the following code:
public override string Text
{
get
{
return base.Text;
}
}
but ... more >>
using statement not having any effect
Posted by Steve at 2/28/2006 7:29:02 AM
This is a very strange bug (I think it's a bug)
I have a class:
Test.MyNamespace
public class MyClass
public static int GetNumber();
Then in another class I have added the using statement like this:
using Test.MyNamespace;
Then later I use the above class
int i = MyClas... more >>
Application auto reload after cold boot
Posted by Sumantra Bhattacharyya at 2/28/2006 7:13:18 AM
Hi Forum,
Application auto reload after on cold boot: Is there any possibility
of autoreloading pocketpc application on cold reboot. The conditions,
and configuration could be stored in some boot file that could be run
automatically after the device cold boots. SSE technolgies, who we
p... more >>
Format and it's syntax
Posted by M.A at 2/28/2006 6:38:35 AM
Hello all!
I have some difficulties to understand the syntax of String.Format.
I didn't find any nice articles of it in MSDN either.
Does anyone of you know any documentation of Format's syntax so I could
get start with it?
Cheers
... more >>
Event Invocation List
Posted by robinhoode at 2/28/2006 6:08:16 AM
I'm trying to serialize my menubar for use later, however I want to use
XML to serialize this list. Not a problem with the Text property of the
MenuItem control, however the ClickEvent is a bit trickier. I managed
to find some code in the MSDN on getting a class method (and therefore
a delegate)... more >>
C# beginners question
Posted by susan.f.barrett NO[at]SPAM googlemail.com at 2/28/2006 4:05:09 AM
Hi
I'm sure there is a very simple answer to this but it's got me stuck
for hours!
How do you change the properties of parent forms? e.g. if you have a
dialog box that has a textbox on it, when the user clicks an OK Button,
and the value is saved to the database, how do you then update the
... more >>
How to detect font size
Posted by Jesper at 2/28/2006 4:01:30 AM
Hi,
If a user has selected enlarged fonts for the OS in general, where is this
reflected in the registry base.
Propety is found here via OS GUI
Control Panel->Display properties->Settings->Advanced->General->Display->Dpi
settng.
regards Jesper, Denmark
... more >>
ListView: Event when Item is added?
Posted by andreas.baus NO[at]SPAM meta-level.de at 2/28/2006 2:54:07 AM
Hello. Is there a way to add custom code that is executed every time a
ListViewItem is added to the Items collection of a ListView control?
There does not seem to be an event that I could hook into, and I can't
figure out how derive a custom ListViewItemCollection to override it's
Add() Method..... more >>
Debuggin and Shadow Copying. How to avoid copying dll in temp fold
Posted by Michael Nemtsev at 2/28/2006 2:31:28 AM
Use Win2003 Server and VS 2003.
When I'm trying to debug COM+ lib, I've stumble over ShadowCopying feature,
when my dll being copied in temporary folder, and I can't step in my dll. No
breakpoits are rised.
How to turn off Shadow Copying or to tell VS to debug moved DLL?
--
WBR,
Mich... more >>
Default value for int?
Posted by Chris Ashley at 2/28/2006 12:54:45 AM
What is the default value for the int
QuoteParameters.Quote_Claims[0].Claim_Code when it is instantiated like
below?
public struct Claim
{
public int Claim_Code;
public System.DateTime Claim_Date;
public bool Claim_Outstanding;
public decimal Claim_Amount;
}
public class Quot... more >>
semaphore and mutex feature joined together, is it possible?
Posted by Jun Kusanagi at 2/28/2006 12:22:05 AM
Is there any way to solve process synchronization between more than 1
resources.
I'm already trying to use Mutex.WaitAny, but I confused to execute
Release method from the corresponding mutexes.
Any comment will be appreciated.
Best Regards,
... more >>
DllImport - Function use as parameter an array of structures
Posted by McKool at 2/28/2006 12:00:00 AM
Hello everybody. I have a problem importing a function from a Dll. =
This dll was made in C++. I get in troubles when I try to use the =
following function:=20
Function
DLL DWORD __stdcall ReadWithArray(
byte MyByte, =20
TStruct* pStruct,=20
... more >>
Connection Pooling
Posted by Dragon at 2/28/2006 12:00:00 AM
By default, DB Connection is pooling ? (SqlConnection, OdbcConnection)
Or I have to write my own Connection Pooling class ?
... more >>
Mixed assemblies and C#
Posted by Ubergeek at 2/28/2006 12:00:00 AM
I recently came accross an article that stated that there were
unresolved issued with calling native (i.e. "unmanaged" C++) from
managed C++.
Does anyone know what the precise details of this issue is, and if there
have been any fixes/workarounds yet?. I am using C# (VC7.1) for my
fronten... more >>
Drag and Drop how to handle ?
Posted by Dragon at 2/28/2006 12:00:00 AM
Is there any examples of Drag and Drop
how to handle in C# ?
... more >>
Redirecting Standard Input Interactively
Posted by Sudesh at 2/27/2006 10:11:27 PM
Hi,
I am a newbie to C# and Im trying to redirect standard input, output and
error of a console program written in C (MS VC 6.0) to a textbox on a form.
The code for the redirecting looks like this:
private System.IO.StreamWriter c_StreamInput = null;
private System.IO.StreamReader c_Stream... more >>
|