all groups > c# > may 2007 > threads for friday may 25
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
Octal Integer Constants
Posted by Gary Brown at 5/25/2007 10:03:48 PM
Hi,
I have a whole bunch of integer constants that are best given in octal
(PDP-1 opcodes). It makes a huge difference in readability and authenticity
if these
can be entered in octal. I haven't found a way to do this. Is there one?
Thanks,
Gary
... more >>
keyedcollection
Posted by GS at 5/25/2007 9:28:52 PM
please bear with me, I already tried the built-in help, Google but not
finding the solution.
I want to use generic KeyedCollection
first crack
private class RegexHolder
{
String Name;
bool Tested;
RegexOptions regexOption;
St... more >>
How to deploy dlls included in a project that is not the startup project.
Posted by BLUE at 5/25/2007 8:29:12 PM
I've 5 projects and in 2 of them I have added some dll I need to copy to the
handheld (add existing item).
When I build and deploy the solution these files are not copied to the
device: is there a workaround?
Thanks,
Luigi.
... more >>
checking for Open Files
Posted by Oblivion at 5/25/2007 8:20:46 PM
Newbie question: I've been looking for a utility that lists ALL open
files and can't find one so I'd like to write one in .NET. How can I
check for FileLocks as they happen? For instance, if I open a PDF
file in Acrobat, the name of the PDF would be listed in my GUI. Is
there functionality f... more >>
WPF Threading Model
Posted by Yehia A.Salam at 5/25/2007 8:17:33 PM
Hello,
I am building a network application that make use of .Net Sockets, I created
a class that works like a server and fires an event when anything arrives at
the server, however I ran into some problems because of the WPF threading
model, my code is like:
//***************************... more >>
Why invalid argument when connecting to an OracleDatabase ?
Posted by wmeister NO[at]SPAM hotmail.com at 5/25/2007 6:44:18 PM
From a CSharp program I would like to connect to an OracleDatabase
with thefollowing code:
using Oracle.DataAccess.Client;
using Oracle.DataAccess.Types;
....
string connectionstring = "User Id=peterm;Password=mypasswd;Data Source=XE;";
OracleConnection connection = new OracleConnection(co... more >>
Why invalid argument when connecting to an OracleDatabase ?
Posted by wmeister NO[at]SPAM hotmail.com at 5/25/2007 6:44:09 PM
From a CSharp program I would like to connect to an OracleDatabase
with thefollowing code:
using Oracle.DataAccess.Client;
using Oracle.DataAccess.Types;
....
string connectionstring = "User Id=peterm;Password=mypasswd;Data Source=XE;";
OracleConnection connection = new OracleConnection(co... more >>
Microsoft=AE
Posted by chozang at 5/25/2007 5:51:52 PM
Does anybody know what the names of the component volumes are in "MCAD/
MCSD Self-Paced Training Kit: Microsoft® .NET Core Requirements, Exams
70-305/70-315, 70-306/70-316, 70-310/70-320, and 70-300"? Is "MCAD/MCSD
Self-Paced Training Kit: Developing Windows®-Based Applications with
Micros... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
COM+ Application Config. Issue
Posted by Abbas at 5/25/2007 2:11:12 PM
Hello,
I have a COM+ application built using C# and the MSI for it runs just
dandy, its basically a COM proxy for .NET to ASP. However, when
running a test VBScript, I get the following message whenever I
attempt to execute one of the methods (object seems to get created
though)..
on this... more >>
Linq; expression parser?
Posted by Marc Gravell at 5/25/2007 1:01:03 PM
In Linq, you can apparently get a meaningful body from and
expression's .ToString(); random question - does anybody know if linq
also includes a parser? It just seemed it might be a handy way to
write a safe but easy implementation (i.e. no codedom) for an
IBindingListView.Filter (by compiling t... more >>
Is there an automatic re-build in VisualStudio when I change the source code ?
Posted by peterhofmann NO[at]SPAM yahoo.de at 5/25/2007 12:31:56 PM
When I change the source code and save it I have currently always to press
explicitely F6 zu "compile" the code (and get new error list).
Isn't there an automatic build function which is called whenever I save new code ?
BTW: What is the difference between the two menues:
Build->Build solu... more >>
What is the difference between GetOracleDecimal and GetDecimal ?
Posted by wmeister NO[at]SPAM hotmail.com at 5/25/2007 12:26:58 PM
In order to retrieve a NUMBER value out of a column from an Oracle Table iinto a local variable
there are two functions:
Decimal var = reader.GetDecimal(1);
or
Decimal var = reader.GetOracleDecimal(1);
What are the differences ?
I am using the standard (non optimized) Oracle.DatAcces... more >>
how stable is linq?
Posted by GS at 5/25/2007 11:48:53 AM
Is lint stable enough for production?
what is memory consumption like?
I am using 988M out of 3876M when I run vs cs with dotnet 2 along with a VPC
VM. actually I only have GAB of real RAM
... more >>
WebServices...?
Posted by weird0 at 5/25/2007 11:28:44 AM
I have worked on webservices as i can code them...?
But what is the underlying concept behind it?
How does it work?
Somebdy told me that webservices do not have security? Why is that
so ?
Its related to SOAP, xml or something? can somebody plz explain it so
i can remember the mechanism i... more >>
What is the difference between polymorphism and inheritance...
Posted by weird0 at 5/25/2007 11:13:51 AM
Can anyone explain briefly what is the difference between inheritance
and polymorphism?
i read and seem to forget it again and again...
Can anyone along with good examples of c# explain the fundanmental
concept so i can remember it forever as it is a common interview
question....
Tha... more >>
Missing Row in DataSet
Posted by Fred Chateau at 5/25/2007 10:22:58 AM
Still working on my XML DataSet...
Having moved on past difficult and complex problems, resolved with the
assistance of everyone here, I find myself facing yet another problem. My
XML document breaks the schema. There are missing tags everywhere, on
purpose I'm told, because we don't need t... more >>
Interface implementation question.
Posted by Larry at 5/25/2007 8:59:04 AM
I checked definition of class CollectionBase
public abstract class CollectionBase : IList, ICollection,
IEnumerable, it implements 3 interface IList, ICollection and
IEnumerable.
I found IList is derived or extended from ICollection and
IEnumerable. Why the definition of class CollectionB... more >>
How to read data from Excel spreadsheet?
Posted by barbara_dave NO[at]SPAM yahoo.com at 5/25/2007 8:05:13 AM
Hi All,
I need to read data from a Excel spreadsheet, but I got the problem
when I tried the code below:
StringBuilder sbConn = new StringBuilder();
sbConn.Append(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" );
sbConn.Append(excelFile);
sbConn.Append(";Extended Properties=")... more >>
Wrapper class template
Posted by Ralfeus at 5/25/2007 7:41:47 AM
Hi all.
I have a class, which has some data. I work with list of objects of
this class. The data of each object can have different types. For each
type of data should has its own Value property to be correct. It looks
like this:
public class DataElementInt32 : DataElement
{
... more >>
Fade or remove the DropShadow
Posted by Mark Collard at 5/25/2007 7:34:00 AM
I've created a form and added the following code in the CreateParams property
to display a drop shadow on the form.
protected override CreateParams CreateParams
{
get
{
CreateParams parameters = base.CreateParams;
parameters.ClassStyle = (parameters.ClassStyle | C... more >>
How to restrict variable (pointers) count to a single instance of an object ?
Posted by freefighter NO[at]SPAM abv.bg at 5/25/2007 7:28:51 AM
Is there such a way to ensure that at a time just one variable
(pointer to ref type) is used to maintain the object. This is needed
for a multi-threded application where shared data should be used
properly.
In general I`ve done this by locking objects` fields using mutexes or
lock(){} mechanism... more >>
Open two winforms at same time...
Posted by trint at 5/25/2007 4:52:40 AM
Hi,
I have a product entry program that I need, at the time of entering
the description,
to open an extra window for the image that goes with the description.
This product adding program is a windows application for updating our
companies
website.
Here is what I need help with:
When the ta... more >>
how to print this output in c#?
Posted by DAXU NO[at]SPAM HOTMAIL.COM at 5/25/2007 4:01:18 AM
Hi,
I know it is very easy, but I just can't fngure out the algorithm.
For example: I have these:
string[] a={"1","2"};
string[] b={"a","b" "c"};
string[] c={"d","e","f"};
How to write an algorithm to print all the combinations like:
1 a d
1 a e
1 a f
2 a d
2 a e
2 a f
1 b d
1 b ... more >>
Using System.IO.Ports namespace from VS2003
Posted by Lonifasiko at 5/25/2007 2:48:55 AM
I understand VS2003 cannot develop applications with .NET Framework
2.0.
But is there any tricky way to use from a Windows Application built
with VS2003, classes from System.IO.Ports namespace, that is, classes
from .NET framework 2.0?
If not, what's the best free C# class for serial commun... more >>
Objects, threads and construction order
Posted by Jon Harrop at 5/25/2007 2:14:34 AM
I'm trying to define a Show3D class that takes a scene graph and spawns a
visualization rendering that scene graph in a new thread but keeps it
editable via properties in the Show3D class. For example, I'd like to be
able to alter the camera in the spawned visualization via a property in the
S... more >>
An object reference is required for the nonstatic field, method or
Posted by AA2e72E at 5/25/2007 1:45:01 AM
I am getting the above error with this Class Library code:
namespace ClassLibrary1
{
public class Class1
{
private string FoundPathKey;
public string LastError
{
get { return FoundPathKey; }
}
public static string Read(string pa... more >>
asynchronous web app
Posted by Mike P at 5/25/2007 1:18:26 AM
Is it possible to create an asynchronous web application? If so, does
anybody have an example that I can follow?
Many thanks.
*** Sent via Developersdex http://www.developersdex.com ***... more >>
how to use GetLogicalProcessorInformation, win32api, under using csharp
Posted by ti at 5/25/2007 1:06:39 AM
Hello all,
Does anyone have any idea that how to use
GetLogicalProcessorInformation, win32api, under using csharp?
http://msdn2.microsoft.com/en-us/library/ms683194.aspx
For me, one of the most difficult things is how to define
SYSTEM_LOGICAL_PROCESSOR_INFORMATION structures and how to cast... more >>
Type.GetCustomerAttributes(...) Not Working as expected
Posted by Paul Hadfield at 5/25/2007 12:00:00 AM
Hi,
I'm running into one problem with trying to call =
"Type.GetCustomAttributes(...)" on my reflected code. Basically - I =
can't trap my own custom attribute - I can only catch / identify system =
"Custom Attributes" by type. The output below identifies that I can =
catch the "DefaultMemb... more >>
VS Goes to Sleep
Posted by Ian Semmel at 5/25/2007 12:00:00 AM
I have a solution with 5 projects ( 4 dll + main).
When I build it, the log comes up showing a successful build, but the cursor
is a thick arrow. When I click on the editor page, the hourglass cursor
comes on and stays on for about a minute or so.
Is this a known phoenomenon ?
... more >>
Show function
Posted by Xavier PACOTTE at 5/25/2007 12:00:00 AM
Hello,
I would like to add some actions to show function of a form with Visual
Stuio 2005.
Is it possible?
Is it possible to create a new Show function which inherit of old it?
Best Regards.
... more >>
What is the purpose of *.sln und *.suo files and why arey outside the project folder ?
Posted by m.poppers NO[at]SPAM lycos.com at 5/25/2007 12:00:00 AM
I found a *.sln and an *.suo file which belong to my current project because the have the same name
"TestDatabase33....." as my project.
What is the purpose of these files ?
If I delete them accidentially: Are they re-created automatically ?
Why are they currently not in the project folder... more >>
Which "using" statement for OracleConnection ?
Posted by peter2000 NO[at]SPAM yahoo.co.uk at 5/25/2007 12:00:00 AM
I thought "using System.DataAccess.Client"
would contain all necessary stuff for
OracleConnection, OracleCommand and OracleDataReader objects
but this is not the case. They are still unresolved after adding.
Do I have to install a separate package or enable Oracle specific extensions som... more >>
Preventing resizing of a Form ?
Posted by kenny00 NO[at]SPAM mercedes.com at 5/25/2007 12:00:00 AM
By default a Form is resizeable.
How do I prevent the resizing of a Form ?
Ken
... more >>
How to rename the current Project ?
Posted by wmeister NO[at]SPAM hotmail.com at 5/25/2007 12:00:00 AM
Assume the current name of my project is "mytestroj". A couple of project files are
named with this stem name like mytestproj.sln, mytestproj.suo, mytestproj.csproj,....
How can I rename my project to "testproj1" ?
Is it sufficient just to rename all file in WindowsExplorer?
Can I do this... more >>
Difference between Form1() and Form1_Load() ?
Posted by c.simi NO[at]SPAM subnet.net at 5/25/2007 12:00:00 AM
In general I have two procedures which are called at the beginning of a Form:
Form1() { InitializeComponent(); ..... }
and
Form1_Load();
What is the difference ?
Which one is called at first ?
Where sould I put my own initialization statements ?
Carla
... more >>
dialind modem to ISP
Posted by Kemo at 5/25/2007 12:00:00 AM
Hi all. I am sorry for my weak English.
I want to dial a modem to ISP with C#. All documentations about this I
could find are based on openning serial port and sending modem commands to
it like "ATD<number>" for tone dialing and "ATDP<number>" for pulse dialig.
Then how can I pass use... more >>
Getting the current time and format it to an own format ?
Posted by m.poppers NO[at]SPAM lycos.com at 5/25/2007 12:00:00 AM
I would like to get the current time(stamp) (including the milliseconds)
and assign it into a string variable with a format like:
xxxx mytime = getcurrentsystemtime();
string mytime = reformatto("yyy.mm.dd HH:MM:SS:MSMS", mytime);
How do I do this ? The hours should be displayed in 24h mode
... more >>
How to change the namespace in all project files simultaneously ?
Posted by peterhann NO[at]SPAM hotmail.com at 5/25/2007 12:00:00 AM
I would like to change the name of the namespace in all of my
project source files (after the rename of the project itself).
I found no way/menu to let VisualStudio do this for me.
Do I really have to change all the various
namespace myoldnamespace;
lines in dozends of files manually ... more >>
Making System.Console.WriteLine() text outputs visible in a GUI program ?
Posted by kenny00 NO[at]SPAM mercedes.com at 5/25/2007 12:00:00 AM
In general the program is GUI based.
However sometimes I would like to wirte some text lines to Console as if it is
a Console program.
When I write a System.ConsoleWriteLine() statement this is accepted without error (during build and
runtime). Unfortunately no Cosole pops up at runtime and ... more >>
Switch from "Form1.cs" to "Form1.ca [Design]" and back by HotKey in VisualStudio ?
Posted by peterhann NO[at]SPAM hotmail.com at 5/25/2007 12:00:00 AM
What si the easiest way to switch from the source of a Form to its corrsponding Design
and vice versa back ?
Currently I always click on the file in the Solutions explorer.
Is there way way with HotKeys ?
Peter
... more >>
Where is the information stored about the exact position of e.g. a button on a form ?
Posted by m.poppers NO[at]SPAM lycos.com at 5/25/2007 12:00:00 AM
Assume I position a button on a Form on position (x,y)=20,75pixel
Where (in which file) is this information stored ?
Marl
... more >>
How to write some text into the title bar and status bar of Form "Form1" ?
Posted by c.simi NO[at]SPAM subnet.net at 5/25/2007 12:00:00 AM
I would like to write seomthing into the title bar of the
current Form "Form1". How can I do this ?
How can I display/add a status bar (currently there is no such status bar)
and write something into this status bar?
Carla
... more >>
How to rename the current Project ?
Posted by wmeister NO[at]SPAM hotmail.com at 5/25/2007 12:00:00 AM
Assume the current name of my project is "mytestroj". A couple of project files are
named with this stem name like mytestproj.sln, mytestproj.suo, mytestproj.csproj,....
How can I rename my project to "testproj1" ?
Is it sufficient just to rename all file in WindowsExplorer?
Can I do this... more >>
|