all groups > c# > february 2008 > threads for wednesday february 13
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
Perform painting
Posted by K Viltersten at 2/13/2008 10:15:47 PM
I'm going to design some custom painting on a component
and the way i'm going to start off is to inherit a Form and
then override the following method.
private void onPaint(object sender, PaintEventArgs e)
{
Graphics g = e.Graphics;
g.doCoolStuffToMe();
}
Is this a recommended way to go?... more >>
Asp.Net Sessions and Web Services
Posted by james at 2/13/2008 10:13:11 PM
Hey Guys,
I am working on a RIA that uses Flex backed by Asp.Net Web Services,
and I am not sure how to manage user sessions. I have used sessions
in Asp.Net before, but I haven't figured out how to plug my web
service calls into Asp.Net's mechanism, or what the plumbing would
look like to p... more >>
C# database project
Posted by Jelle de Jong at 2/13/2008 8:48:39 PM
Hi,
I want to start a new project, I want to build my own database server and
start very simple. I want to create a file-based database server, with
XML-files. Does anyone know a good site or book to get some more information
about this kind of project (like 'How to build your own database ... more >>
System.IComparable<T>
Posted by Tony Johansson at 2/13/2008 7:10:16 PM
Hello!¨
I read a book and here it says that it's most often an advantage to
implement the generic interface IComparable<T>
instead of the general interface IComparable. This is correct!
Now to my question this book also say that both interfaces can be
implemented something that some of th... more >>
Confusing data types...
Posted by Andy B at 2/13/2008 7:06:08 PM
I am working with AdventureWorksLT database. I ran across these datatypes in
the Product table: money, decimal and UNIQUEIDENTIFIER. what are the
equivalent of these in c#?
... more >>
Can't specify a location for new class code file on class diagram>new class dialog?
Posted by Andy B at 2/13/2008 5:49:42 PM
When I add a new class diagram to my asp.net 2.0 project and then add a new
class to it I cant tell the class diagram where to put the new class code
file. How do you do this?
... more >>
C# and native resources
Posted by Carl Daniel [VC++ MVP] at 2/13/2008 2:20:27 PM
Problem: C# 2.0 doesn't imbed a UAC manifest in the EXE files that it
produces.
Problem: The suggested solution on MSDN is unworkable (manually opening the
EXE using VS as a resource editor and inserting the manifet resource).
Problem: Changing the C# project to explicitly link a .RES file ... more >>
Replacing escapsequences with characters
Posted by Christof Nordiek at 2/13/2008 1:55:32 PM
Hi,
i have to interpret a string in wich escape sequences are used to escape
special characters. How can I replace these sequences by the character they
replace?
Escapint rules are:
\ -> \\
: -> \:
" -> \"
so the characters \ : and " are escaped by \
I figured out a solution, bu... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
WPF Popup always topmost in z-Index
Posted by sundarvenkata at 2/13/2008 1:53:41 PM
Hi All,
I use a popup control in WPF. I see that even when I switch to another
application, the popup remains the topmost window. Is there a
workaround for this. Please note that I have tried the workaround
posted here but I do not know how to determine posX and posY
http://blogs.msdn.com/d... more >>
Multiple Interfaces
Posted by Gav at 2/13/2008 1:46:54 PM
I have a class that implements 2 interfaces and have got myself a bit stuck.
What I am trying to do is hide the implementation of the class so that you
are forced to use one of the interfaces. Problem I have now is that my
constructor needs to call a method that is from one of the interfaces a... more >>
Priority Backgroundworkerthread
Posted by Analizer1 at 2/13/2008 1:36:57 PM
how to set priority on a backgroundworker thread
when i create the thread , do i use
thread.currentthread
not sure how to accomplish this
thanks
... more >>
Modal forms and notification box
Posted by Claire at 2/13/2008 1:30:56 PM
Hi,
I've a problem.
Our app has a main screen, a user logs in to the system using a smart card.
After login, several loops through a switch statement are performed to check
for certain conditions. One or more screens may be shown modally in
succession, finally ending in the user's work centr... more >>
My styles are leaking
Posted by DanThMan at 2/13/2008 1:17:00 PM
I wrote a style in XAML that applies a DropShadowBitmapEffect to some
DockPanels in my Window. This works great. The problem is that, thanks
to property value inheritance, now *everything* inside these
DockPanels has a drop shadow.
I generally like property value inheritance, but I would like ... more >>
Replacement for CTypedPtrList
Posted by Robert Wells at 2/13/2008 1:14:13 PM
I am converting a C++ project management program I wrote to C#. Each Protask
obect represent a task and includes two CTypedPtrList objects: the lists of
pointers to the prerequisite tasks and dependent tasks. There doesn't seem
to be an equivalent to the CTypedPtrList in C#. I'm not sure if Ar... more >>
timer/threading
Posted by RobcPettit@yahoo.co.uk at 2/13/2008 12:51:32 PM
Hi, Im using a timer every 1 second to update a datagridview, but Im
haveing problems getting it to run on a seperate thread. At the moment
the form freezes when the thread runs, I think its because im firing
the thread with in the timer, Ive tried fireing the timer from thread
start. This is my... more >>
signing assembly files
Posted by Tem at 2/13/2008 12:37:03 PM
Do signed assembly dll files run a little bit slower? due to the extra
overhead?
the dlls will be used on our own web server and won't be distributed. Is it
still worth signing the files?
Tem
... more >>
IList implementation as data source for DataGridView
Posted by t.mall01@yahoo.com at 2/13/2008 11:39:36 AM
Hi,
I'm implementing a custom biz object list for use as a DataGridView
data source.
Is there a way to implement ListChangedEventHandler similar to how it
is used by a BindingList<T> object without actually using
BindingList<T>?
I am instead attempting to implement said event handler thr... more >>
Never Mind, I got it
Posted by Mike Borrowdale at 2/13/2008 11:26:28 AM
Hi Marc,
ignore my last post, I finally realised that it will correctly retrieve
the version of an installed application but nothing while debugging. So
my help form fetches the build number while debugging and this version
when installed. Just what the doctor ordered! Thanks.
Mike
--
... more >>
String#LastIndexOf
Posted by Mathias Weyel at 2/13/2008 11:03:35 AM
Hi Group!
I encounter a strange behaviour of String.LastIndexOf when specifying
start and count values.
The following works:
string tempString = orgString.SubString(0, mycount);
int index = tempString.LastIndexOf(mychar);
The following causes an ArgumentOutOfRangeException:
int ind... more >>
I'd appreciate your opinion(s)
Posted by Arnie at 2/13/2008 10:49:39 AM
Hi all,
If this is the wrong group, please redirect me.
I/we do native C++ and know next to nothing about C#/.NET or Java/J2EE.
We're looking at doing at least a partial rewrite of our product. It
contains about 200 EXE and DLL files - some written in Borland C++ Builder
and some in VC+... more >>
Major mode equivalent in Visual Studio 2008
Posted by sundarvenkata at 2/13/2008 10:38:55 AM
Hi All,
Is there a major mode equivalent in Visual Studio 2008?. Since I am
from Emacs background, I am finding it hard to draw equivalent
terminologies.
Thanks in advance.
Sundar... more >>
COMM control works in debug mode, but not in release
Posted by barbara_dave@yahoo.com at 2/13/2008 10:37:57 AM
Hi All,
I have an application using mscomm32.ocx to open a serial port. I am
using VS.net 2003 on XP. when I built the program in debug mode, I got
0 errors, 0 warnings. Build: 1 succeeded, 0 failed, 0 skipped. But I
change to release mode and build, I got the following error messages:
Co... more >>
Question regarding generics and type constraints
Posted by Fredo at 2/13/2008 10:15:49 AM
I'm new to Generics (years and years of VS.NET 2003 development, but very
little .NET 2.0+). I have some routines for conversion from RGB to different
color spaces and back. I would like the routines to support, at least, byte,
int, and double types without having to create different versions ... more >>
CONVERSION FROM DBF TO XML
Posted by sreejith s at 2/13/2008 9:25:18 AM
Hi to all,
Will any one help me with some coding to convert my DBF file to XML file
automatically,in every 3 hrs?
Thanks in advance
jith
*** Sent via Developersdex http://www.developersdex.com ***... more >>
Finding the object instance from the attribute instance
Posted by tobiwan_kenobi at 2/13/2008 9:13:00 AM
public static InfoAttribute GetInfo(Enum instance)
{
Type type = instance.GetType();
MemberInfo[] mis = type.GetMember(instance.ToString(), BindingFlags.Public
|
BindingFlags.NonPublic | BindingFlags.Static |
BindingFlags.FlattenHierarchy);
Type attributeType = typeof(InfoAtt... more >>
XmlSerializer again
Posted by The Last Danish Pastry at 2/13/2008 9:05:27 AM
Why is it that I can serialize a DateTime using XmlSerializer, but not
a TimeSpan?
Also, and perhaps more importantly - how could I have known ahead of
time, using the published documentation, that DateTime is going to
work and TimeSpan isn't?
Trying to serialize a TimeSpan does not thro... more >>
Other file name extensions for SQL files - how?
Posted by Tom Dacon at 2/13/2008 8:22:34 AM
Google groups didn't offer any help on this, and I tried this in the
vsnet.ide newsgroup but didn't get a response. I'm trying it here in hopes
that someone might have a clue:
The company I work for uses a couple of non-standard file name extensions
for files containing SQL: .vw for views,... more >>
Validating user input using Sql DataType
Posted by Penn at 2/13/2008 8:12:00 AM
I need to validate user's input against all possible SqlServer data types
(int, tinyint, money, etc, etc.) Not only it needs to satisfy data types, it
also needs to satisfy precision and scale.
Are there any tools for this? Any suggestions on the most efficient method
to achieve this? I hat... more >>
Version Numbers
Posted by Mike Borrowdale at 2/13/2008 6:40:26 AM
Hi,
forgive the newbie question...
I'm using VS2008 Express with c#, clickonce publishing. I can see that
my published versions have version numbers 1.0.0.1, 1.0.0.2 etc. How
can I access this version number at run time to go on a 'help about'
page? AssemblyVersion doesn't seem to have quit... more >>
Best practice on VS project layout regarding DLL references
Posted by Stefan at 2/13/2008 5:46:22 AM
Hi,
I'm a VS/C# beginner and have a question on how I should structure my
C# projects.
I'm currently coding the basics for a larger project (base classes,
data access, business logic, UI stuff, main application). Up to now I
put each of these tiny bits in its own project that finally result... more >>
Line 1: Incorrect syntax near 'sp_Collect'.
Posted by Andrew at 2/13/2008 4:38:01 AM
Hi,
What is wrong with this code ? I got this error:
" Line 1: Incorrect syntax near 'sp_Collect'. "
which appears at the last line when | call the cm.ExecuteScalar . The sp
takes an int ID and returns a string Data. Using the debugger, I see that the
value of ID is correct.
Is this a... more >>
copy folder in c#.net using scrrun.dll
Posted by seema at 2/13/2008 3:43:32 AM
code to copy entire folder in c#.net using scrrun.dll
From http://www.developmentnow.com/g/36_2005_2_0_25_0/dotnet-languages-csharp.htm
Posted via DevelopmentNow.com Groups
http://www.developmentnow.com... more >>
Managed code & Unmanaged code
Posted by Swapnil at 2/13/2008 2:49:01 AM
When to use Managed code & when to use unmanaged code in the application?
please give one example.... more >>
passing a string into a command parameter
Posted by nologo at 2/13/2008 1:17:24 AM
hello chaps,
how can i pass a string value into a parameter to be called in a batch
script.
i'm building a archive function using 7zip, i wish to be able to
select a location to save which i was going to call in command line as
%1. the problem is getting the location to %1 within c#.
thanks... more >>
|