all groups > c# > february 2007 > threads for tuesday february 27
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
how to lock the selected records using C#?
Posted by marxi at 2/27/2007 10:58:13 PM
Now I need to lock the selected records for some time and others can not
update these records meanwhile. How can I do?
any help will be very appreciated!!
--
marxi... more >>
Acess ADAM by IIS server
Posted by datta.adsule NO[at]SPAM gmail.com at 2/27/2007 10:23:06 PM
How To acess Adam from IIS server service provider...
... more >>
How to modify app.config
Posted by alberto at 2/27/2007 9:15:48 PM
Please, I need a example about how to modify the app.config with the class
ConfigurationManager.
Thank you very much.
... more >>
Confusion regarding C# and C#.net
Posted by archana at 2/27/2007 8:52:11 PM
Hi all,
Can anyone tell me is tehre any difference between c# and C#.net
any help will be truely appreciated.
... more >>
Validating a "PropertyGrid" row
Posted by John Brown at 2/27/2007 8:03:47 PM
Hi there,
I've got an "int" property in one of my objects that I need to conduct a
range check on in a "PropertyGrid" (whenever the user attempts to leave the
row). I know how to do this using the "TypeConverterAttribute" for
user-defined types but I'm not sure how to handle it for built-in... more >>
MI5 Persecution: Troubling Censorship Issues 20/8/95 (4738)
Posted by MI5Victim NO[at]SPAM mi5.gov.uk at 2/27/2007 6:55:23 PM
Fred Read (postmaster@foxhouse.demon.co.uk) wrote:
: He posts this drivel every week or so to a number of groups that
: I subscribe to and nothing seems to stop him. *ALL* of his posts
: are off topic and unwelcome to the groups he posts to.
: We have complained about him to his postmaster ... more >>
Retrieving a string from a dropdownlist with an index
Posted by marathoner at 2/27/2007 6:53:09 PM
I have added about 10 strings to a dropdown listbox. I would like to know
how to retrieve a string based upon the index I give it. What member
function do I use?
Marathoner
... more >>
DateTime.Parse with custom date format
Posted by schouwla NO[at]SPAM yahoo.com at 2/27/2007 5:54:46 PM
How do I use DateTime.Parse or DateTime.ParseExact to create a
DateTime object from a string?
I tried this without luck:
string dateString = "27-02-2007";
// DateTime dt = DateTime.Parse(dateString);
// Throws a FormatException exception
IFormatProvider culture = new CultureInfo("fr-FR", t... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
DateTime.Parse with custom date format
Posted by schouwla NO[at]SPAM yahoo.com at 2/27/2007 5:54:33 PM
How do I use DateTime.Parse or DateTime.ParseExact to create a
DateTime object from a string?
I tried this without luck:
string dateString = "27-02-2007";
// DateTime dt = DateTime.Parse(dateString);
// Throws a FormatException exception
IFormatProvider culture = new CultureInfo("fr-FR", t... more >>
MI5 Persecution: Stand up for Free Speech 14/8/95 (2083)
Posted by MI5Victim NO[at]SPAM mi5.gov.uk at 2/27/2007 5:34:49 PM
From: rji@cheetah.inmos.co.uk (Richard Ingram)
Newsgroups: uk.misc
Date: Mon Aug 14 10:08:32 1995
Some cencorship loving bore wrote :
> In article <GEVANS.95Aug14094119@mvagusta.uk.tele.nokia.fi> gevans@mvagusta.uk.tele.nokia.fi (Gareth Evans) writes:
>
> His sysadmin is also next to use... more >>
ListView SubClass Problem
Posted by Stuart at 2/27/2007 5:26:18 PM
Hello,
We are trying to subclass the ListView control and have a collection of a
class as the Items. Our implementation works at runtime. However at design
time if the user adds elements, we can not see them in the visual studio
designer.
Any help would be appreciated. The class is Na... more >>
get name of enum element programmatically?
Posted by Zytan at 2/27/2007 2:45:38 PM
I have an enum with a bunch of names / values. This is nice as I can
code using the names, instead of memorizing the values.
But, let's say something gives me a value. Now, while my code is happy
using a number, what if I want to display the name that this value
means?
Can I get the enum n... more >>
Decimal.TryParse failed in da-DK culture.
Posted by dehranph NO[at]SPAM gmail.com at 2/27/2007 2:39:19 PM
I have this code that always return zero whenever i passed 1,000,00 in
a da-DK culture or en-US culture. It works with amount less that 1000
like 99,99. but always returns 0 when greater than or equal to 1000.
Decimal separator is ",". I suspect its because the decimal and
thousand separator are... more >>
How to add date in access database
Posted by Tony at 2/27/2007 2:30:50 PM
I am trying this:
SQL = "INSERT INTO GradeList (Date) Values(#01-01-2007#)"
I get message "Syntax error in Insert statement".
How to add date field in access database?
... more >>
TreeView Control and DataRelations
Posted by Phil Townsend at 2/27/2007 1:31:38 PM
I have a dataset that contains multiple tables, each with the same
structure, and each tied to the next through a datarelation object. The
number of tables in the dataset can fluctuate. I am stuck on figuring
out the best way to use this structure to populate a tree view control.
I've experiment... more >>
Programmatically Format Removable Disk
Posted by MDB at 2/27/2007 1:02:06 PM
Hello all, is there a way to programmatically format a SD card?
... more >>
Incremental increase in setup size
Posted by Gaurav at 2/27/2007 12:45:03 PM
Hello...
I posted this a couple of weeks back, but could't get a reply, so trying
again!
I use the Setup project in C# to create a .msi file to be distributed to the
clients.
The size of .msi is 12 MB. This file works fine on all the target machines,
but on the development machine ever... more >>
Do local references destruct on method exit?
Posted by Zytan at 2/27/2007 12:37:34 PM
(Sorry, I accidentally posted this to
microsoft.public.dotnet.csharp.general, and I didn't mean to!)
In the following method, a byte array is made, and then passed to
Socket.BeginReceive. The byte array is local. But, presumably,
Socket.BeginReceive creates a reference to it, so the byte arr... more >>
Does C# have static local variables like C++?
Posted by Zytan at 2/27/2007 12:33:49 PM
I see that static is more restricted in C# than in C++. It appears
usable only on classes and methods, and data members, but cannot be
created within a method itself. Surely this is possible in C# in some
way? Or maybe no, because it is similar to a global variable (with its
scope restricted) ... more >>
Beginner Question - Application Design
Posted by --- at 2/27/2007 12:17:58 PM
I'm writing up a sample program to teach someone the basics of
database application design. I'm using the 2.0 framework and
Microsofts default "pubs" database.
What I'd like to do is create a simple app that connects to the
database and allows browsing, editing, creation and deletion of books
... more >>
how to store and retrive this data in an aspx page
Posted by sandeepkishanj NO[at]SPAM gmail.com at 2/27/2007 12:04:00 PM
please tell me which collection variable (or something else) should i
use to store and retrieve the following sample data...
i have the following in drop down list1..
Asia
North America
when i select Asia...my second drop down should show...
China
India
Mongolia
now my problem is ..i... more >>
Looking for some sample codes in C#
Posted by JoeZ at 2/27/2007 11:10:48 AM
Hi all,
I am looking for some sample codes in C#, in which, it can read a schema xsd
file and use it to validate an xml stream or file. Ideally the sample will
use XmlValidatingReader.
TIA,
JoeZ
... more >>
Passing an Object when including a class
Posted by mmatchyn NO[at]SPAM gmail.com at 2/27/2007 11:06:41 AM
Is there a way to pass an object when including a class?
For example...
namespace testclass
{
public System.Windows.Forms.TextBox textbox;
public class Write
{
public Write(string msg)
{
textbox.text = msg;
}
}
}
So when I call the following:
using tes... more >>
Trying to Create a Test Class for System.Data.SqlClient
Posted by mmatchyn NO[at]SPAM gmail.com at 2/27/2007 10:47:02 AM
I have been trying to create a class similar to SqlClient but one that
prints sql statements instead of running them on the database. This
way when I want to go into test mode I comment out the SqlClient class
and comment in the test class.
The problem I am facing now is I have to limit mysel... more >>
SessionEnding Event in Window Service not working
Posted by chitra g at 2/27/2007 9:36:03 AM
Hi,
I tried all the options below but did not work.
Your suggestions please.
Thanks,
Chitra G
Sent: Thursday, February 01, 2007 4:59 PM
Subject: RE: SessionEnding Event in Window Service
I'm not an expert here, and I don't quite know what you mean by "save code
c... more >>
trouble with connection to a db
Posted by Claudia Fong at 2/27/2007 8:54:18 AM
Hi,
I'm trying to connect to a sql db with my C# applciation but I'm having
trouble to connect..
It said - Error accessing the database: Cannot open database "LibDB"
requested by the login. The login failed.
but I didn't create any username and password, so I don't know how to
solve the pro... more >>
Serializing objects into application settings
Posted by michael sorens at 2/27/2007 8:46:41 AM
I have been experimenting with how to properly store objects into persistent
application settings in user.config. I have read everything I could on MSDN
(and elsewhere) and I have successfully stored objects of type String,
DateTime, and ArrayList, for example.
So I then tried an unbound Da... more >>
How do a loop this program? Learning CSharp
Posted by Trev at 2/27/2007 8:41:54 AM
Hi,
I'm learning C# and trying to write the program below, everything
works fine until the last section:
Console.Write("Would you like to play again y/n: ");
again = Console.ReadLine();
if (again.ToLower() == "y")
{
????
}
else
Console.WriteLine("GoodBye");
... more >>
Embedded Resources in an abstract class
Posted by ramhog at 2/27/2007 8:33:52 AM
I have an abstract class "TestClass" in a project. In the project
there are several icon files that are set to be an embedded
resource. In the abstract class is a private method attempting to
use one of the embedded icons. When I attempt to create the icon by
using
ctrl.Image = new Bitmap(G... more >>
"Logon failure" using Invoke("SetPassword"...
Posted by Joe at 2/27/2007 8:26:11 AM
I know that I have posted this question before, but it is still unresolved
and I don't know where to turn to next.
I have code that is creating a user (works fine), then sets the account
flags (works fine) and then sets the password (fails).
Here is the pertinent information:
Ex.InnerExcept... more >>
Overriding the add method of a generic dictionary
Posted by mmurrell NO[at]SPAM gmail.com at 2/27/2007 8:23:56 AM
I have a generic dictionary (lets call ChildCollection). I would like
to ensure that whenever a child is added to this collection
(SomeParent.Children.Add(new Child()), the parent of the child object
is set appropriately.
For some reason I would like to understand, the Add method of
System.C... more >>
Xml Read Single Line at a time using C#
Posted by sk.rasheedfarhan NO[at]SPAM gmail.com at 2/27/2007 8:15:18 AM
Hi ,
I have to extract a xml file line by line. Here is my xml
Step1: <category name= "name" guid="{guid}"state="enabled">
Step2: <rules>
Step3: <rule name="rule name" guid="{guid}"
Step4: <\rule>
Step5: <\rules>
Step6: <\category>
So I have to extract, only one step at a single time;... more >>
Showing HTML page in a windows application
Posted by C#Schroeder at 2/27/2007 7:34:15 AM
I am new to creating a windows application and have been asked to
display an HTML page when a certain button is clicked.
I have created the HTML page but don't know how to display it when the
button on the windows application is pressed. Can anyone point me in
the right direction.
Thanks
... more >>
how to scroll a webbrowser control down a page, e.g. the same as if a user hit page-down?
Posted by dr at 2/27/2007 6:46:34 AM
how to scroll a webbrowser control down a page, e.g. the same as if a user
hit page-down?
... more >>
automatic window scaling to any screen resolution
Posted by njuneardave at 2/27/2007 6:35:40 AM
hi,
i currently have a pretty large window that needs a minimum of
1280x1024 screen resolution so that it can fit on my screen. how do i
make the window (and ALL other controls on the window) automatically
adjust so that it is fully visible on any screen resolution setting?
... more >>
ftp http ping
Posted by erdinc.ayhan NO[at]SPAM gmail.com at 2/27/2007 5:45:23 AM
There are some adsl and dial-up internet connections on my computer.
My application has some operations like ping, http request, ftp
download etc. And i want to know which com port or which connection
being used when pinging,downloading...
... more >>
Marshaling variable length arrays
Posted by Bjarne Nielsen at 2/27/2007 4:36:46 AM
Hi all
From a C# program, I need to call an unmanaged (C++) dll. The dll fills an
array with variables and returns that to the C# program. When I have a
fixed sized array, this works fine by using the attribute
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 25)]
The calling program do... more >>
Build date
Posted by Bjarne Nielsen at 2/27/2007 4:15:06 AM
Hi all
In C++ there is a macro __DATE__ which gives you the compilation date. In
C# I need a similar functionality, is this not possible?
Cheers
Bjarne Nielsen... more >>
linked list ?
Posted by LTDEV at 2/27/2007 3:52:55 AM
Hi,
Im looking for a linked-list like structure in C#. Im a C++ programmer that
needs to make little module (TCP sockets communication) in C#.
I need to attach a buffer for incoming data because i have to decipher
incoming data and extract them into datapackets, and the forward them onto
... more >>
Interlocked on a string?
Posted by rosco at 2/27/2007 2:57:17 AM
I have a multi threading application where multiple threads can read
and write to the property.
I try to avoid the lock statement on properties that hold none
business critical data.
I could create a special '_propertyLock' object for this none critical
data but this could lead to more multithr... more >>
Retrieve the file in scope in C#
Posted by GruBByMaster at 2/27/2007 12:12:22 AM
Hello
I'm trying to build a function that retrieves the file in scope,
meaning that i'm building a log and i want to write in it the curent
file the debug is in. For example if i have a file called myClass.cs
and a method GetTotal() i want to have :
WriteToLog(string.Format( Function that re... more >>
How can i have multiple base classes.
Posted by iKiLL at 2/27/2007 12:00:00 AM
hi all,
I would like to be able to create an umbrella class for all my main global
sections but I would still like to keep them all in separate file something
like the below but I keep getting an error saying you are not allowed
Multiple base classes.
/// <summary>
/// This is the u... more >>
Word document
Posted by Alan T at 2/27/2007 12:00:00 AM
These are the codes I created a document:
_WordApp = new Interop.Word.Application();
_WordApp.Visible = false;
_WordDoc = new Document();
_Missing = System.Reflection.Missing.Value;
_WordDoc = _WordApp.Documents.Add(ref _Filename, ref _Missing, ref _Missing,
ref _Missing);
Th... more >>
MMC 3.0 managed start page
Posted by muriwai at 2/27/2007 12:00:00 AM
Hi,
I am developing a managed c# snap-in for MMC 3.0. According to
http://msdn2.microsoft.com/en-us/library/bb226798.aspx, the start page
should have smoothly expanding/collapsing sections. Unfortunately,
mmc30_samples in WDK does not contain a start page sample. Do I have to
derive the s... more >>
|