all groups > c# > march 2008
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
Dot Net Professional Require in Gurgaon
Posted by solutionsdxb@gmail.com at 3/31/2008 11:39:47 PM
Hi ,
We are looking for Dot Net Professional in Gurgaon , its in urgent
requirement , if you are having experience of 1 -2 years in ASP.net ,
kindly forward your resumes to solutionsdxb@gmail.com , can forward
the same to your friends or colleagues.
Salary and Opportunity would be best in t... more >>
AccessViolationException error
Posted by Billy B at 3/31/2008 10:52:00 PM
I have an application in C# with a form that displays webpages. There are 4
web pages with links to each other. I get an error (and not at the same
hyperlink) after navigating all the links numerous times. All the links work
so that is not the problem. The code stops on the line indicated in t... more >>
Regex to retain only the HTML body
Posted by Karch at 3/31/2008 10:39:16 PM
If you run this:
string result = "<html><head></head><body>The body</body></html>";
result = retainBody.Replace(result, "$1");
With the following Regex:
private static readonly Regex retainBody = new
Regex(@"<\s*body[^>]*>(.*)<[\s/]*body[^>]*>", RegexOptions.Compiled |
RegexOptions.Ign... more >>
How to change font size in WebBrowser 2.0 ?
Posted by Polaris at 3/31/2008 9:55:57 PM
Hi Experts:
In IE Explorer, users can change the text size by choosing one of the
pre-defined magnifying factors at the lower-right corner's "Change Zoom
Level".
Just wondering, does .Net WebBrowser 2.0 provide similar function to reduce
or increase text size?
Thanks in Advance!
Pola... more >>
Object reference set to a null reference?
Posted by Andy B at 3/31/2008 7:36:15 PM
I am having a problem with a few classes of mine. I have the 3 classes below
(sorry if they are quite huge). When I do the following, I get a Object
reference set to null reference error. Any idea what might be going on? Just
a note that the whole Contract design isn't included since it would ... more >>
Adding resource to a file!
Posted by CSharper at 3/31/2008 6:30:19 PM
Just curious, When you are in IDE, you are able to add a resource to
the project through resource tab. Later this resource can be accessed
using the resource manager. One good thing about this approach is
that, the resource file is build into the exe and using resource
manager you can later get ... more >>
Accessing a shared class from another assembly
Posted by Ron at 3/31/2008 5:18:31 PM
I have two seperate assemblies, my Main project which contains a static
class called MainProject.FormManager and a second assembly called
CustomControls.
Is there anyway to reference the MainProject assembly FormManager static
class from the CustomControls class?
The Static class is publ... more >>
Convert double to and from string alwasy using '.' as separator?
Posted by Bjorn Brox at 3/31/2008 3:44:50 PM
Hi!
In germany, norway and France(?) we are using ',' as decimal separator
and it always messes up when you convert a double to and from a string
where the interface expects double values stored as string is using '.'
What parameter shall I use in double.ToString() to ensure that the
output... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
a state machine design question
Posted by tat at 3/31/2008 2:02:16 PM
Hi all,
Sorry if this question is off-topic. I would like have your
suggestion .
I need to write one application which control a machine via serial
port. There are 5 states in the following sequence: active, set,
check, command, and clear. In each state, there are two sub-states: do
and wa... more >>
Silverlight
Posted by Peter Morris at 3/31/2008 2:00:34 PM
Can anyone suggest which is the best group to discuss silverlight 2?
... more >>
debugging slows down other actions
Posted by tshad at 3/31/2008 1:56:53 PM
I am using VS 2005 and find that if I am debugging my program and am still
in debug mode, certain functions slow down.
For example, if I tracing through some of my code and haven't stopped
debugging and try to open a Windows Explorer window, it will take close to a
minute for the window to ... more >>
How to run script in command prompt using .net code
Posted by moondaddy at 3/31/2008 1:38:53 PM
I have a c# 3.0 solution where I need to periodically run a script at the
command prompt for certain tasks. I would like to be able to do this from
executing some .net code rather than manually coping the path to the script
file into the command prompt and then running it. How can this be do... more >>
How to do subquery in linq?
Posted by Andy at 3/31/2008 1:18:51 PM
Hi,
I have a query I'm building dynamically.. I start off with this:
var query =
from documents in db.Document
select documents;
I then use the Method syntax to add filters
query = query.Where( d => d.CustPONumber.StartsWith( "ABC" ) );
This works, except that there... more >>
Many-To-Many Data
Posted by Arthur.Net at 3/31/2008 1:07:13 PM
Sorry, I am a newbie...
I have two table joined by a cross ref table...
CREATE TABLE [dbo].[ParticipationRole](
[ParticipationRoleID] [int] IDENTITY(1,1) NOT NULL,
[ParticipationRoleStr] [nvarchar](50) )
CREATE TABLE [dbo].[DealCategory](
[DealCategoryID] [int] IDENTITY(1,1) NOT NULL,... more >>
iGrid.NET
Posted by Sylfelin at 3/31/2008 12:36:21 PM
Hello,
Who use iGrid.NET component from http://www.10tec.com ?
If you use it, how is it ?
I want a component with more functionnality but with a correct price
(not between $1000 and $2000 for single user) ?
Thank's
--
--------------------------
Merci
Sylfelin
... more >>
How can I determine if a point is a given distance from a second point?
Posted by Tom P. at 3/31/2008 11:24:10 AM
I am writing a drawing program but I want to keep the scale down
(there could end up being several hundred objects on the screen).
I want to limit the points collected to a certain distance from other
points already collected, in other words, if you're drawing a line it
will only record points... more >>
SetCaretPos within OnPaint method of user control
Posted by Steve Richter at 3/31/2008 10:15:32 AM
How do I SetCaretPos within the OnPaint method of a user control?
The caret either does not display or is not positioned where I expect
it to be. I am guessing SetCaretPos is working outside the confines
and relative location of the ClipRectangle.
in the code that follows, the caret ends up ... more >>
compiler question.
Posted by CSharper at 3/31/2008 9:25:18 AM
I am using al.exe to build a exe from a .netmodule and adding a
resource. I was able to do it and al.exe ran fine. I was expecting
that the exe that get generated will have both my .netmodule and the
resource and it seems not. When I copy just the exe to another
directory and run it, I get filen... more >>
How do I change the current path for OpenFileDialog ?
Posted by Per at 3/31/2008 8:39:00 AM
I want to change the current path in the OpenFileDialog in runtime. When the
user presses OK-button I'm checking the selected path if it's valid for my
application. If it's not valid I want to set the path to a valid one in the
FileOk-event and set the e.Cancel = true. ... more >>
Getting a file version
Posted by Sharon at 3/31/2008 7:42:00 AM
How can I read the version of an existing file?
The file I checking is a COM dll file.
-------
Thanks
Sharon... more >>
ArrayList Question
Posted by Hoop at 3/31/2008 7:05:30 AM
Hello,
I am trying to create a property to read and write strings into an
arrayList.
What I have is I create an arrrayList in my class,
ArrayList m_circuitNames = new ArrayList();
And now am trying to create a property to read and write the list,
public ArrayList CircuitName( int locati... more >>
Value Types and Reference Types
Posted by Dom at 3/31/2008 7:02:13 AM
Let me explain my mental image, and then tell me where I've gone
wrong.
There is a stack and a heap. A reference type sits on the heap, and
its address sits on the stack. When you pass it to a method, you pass
the contents of the stack, which is the same as passing the address of
the object... more >>
ExtractAssociatedIcon Only 32*32?
Posted by Sin Jeong-hun at 3/31/2008 4:19:55 AM
Icon.ExtractAssociatedIcon() has no parameters. Surely we need all the
sizes of icons when we actually writing applications, but it seems
that ExtractAssociatedIcon returnes only one size, 32*32. How can I
get other sizes like 16*16, 48*48? Is it impossible without P/Invoke?
If there is a pure .... more >>
good opportunity for .NET DEVELOPERS...DONT MISS THE GOLDEN OPPORTUNITY
Posted by Rumki at 3/31/2008 3:45:23 AM
DEAR CANDIDATES, PHP & .NET DEVELOPERS
We are young entrepreneurs in the field of Information Technology and
have pleasure to introduce ourselves to you for valued co-operation
and esteemed order. We are presenting ourselves in your esteem service
as you desire. CFOTECH is an IT solution co... more >>
Setting the HttpRuntime.cache maximum size --- please help
Posted by almurph@altavista.com at 3/31/2008 3:32:05 AM
Hi,
I'm calling the following from inside a DLL framework:
HttpRuntime.Cache.EffectivePrivateBytesLimit;
I get a massive number returned. I want to be able to set it to a
lower value.
This DLL is fed into a Web Application. I am using the following tag
in the Web.config of the w... more >>
Come on guys!! Surely someone here knows something about custom serialization?
Posted by Jon Slaughter at 3/31/2008 1:11:39 AM
I am trying to write a custom method to serialize the class
[Serializable]
public class RTree<T> : IEnumerable<RTree<T>>
{
public T Value; // Value at this node
public RTree<T> Parent; // Contains the parent node
public List<RTree<T>> Nodes; // Container for Nodes
public RTree() { Nodes = n... more >>
Anonymous functions in C#
Posted by tshad at 3/30/2008 11:03:52 PM
In Javascript, you can create an anonymous function (function literal) in
one statement:
c = function(x,y){return x * y}; // define and assign in one line (how
poetic)
alert ("c = " + c(10,20)); // use it here.
But in C# it seems you need to use 2 lines - one being a ... more >>
new versions of DOTNET
Posted by Ramesh at 3/30/2008 10:40:35 PM
hi friends,
I am ramesh from chennai, INDIA. working as s/w eng(ASP.NET) also new
to this group.
happy to join with group members.
Now i want to know what are the latest versions of the followings
1. Visual Studio .NET
2.Net Framework
3.C#
4.ASP.NET
5.SQL SERVER
I searched in google.... more >>
Delegate question
Posted by tshad at 3/30/2008 10:36:24 PM
Here is a stripped down version of a delegate I am trying to get to work,
which is how an example program shows:
using System;
using System.Collections.Generic;
using System.Text;
namespace delegate4
{
class Program
{
delegate void Print(string s);
static voi... more >>
Access private members?
Posted by Gjoshi029 at 3/30/2008 10:06:24 PM
Is there any way to access private members in inheritance chain.... more >>
Skeletonizing / Thinning Algorithm for Images
Posted by Vincitori at 3/30/2008 9:59:41 PM
Hi,
I looking for an algorithm that will skeletonize / thin binary (black
and white) images. Something like shown in the image:
http://www.1delphistreet.com/Upload_PSC/ScreenShots/PIC20038201256376067.gif
Can somebody please point me to some source code that will do that?
Thank you,... more >>
switch or what?
Posted by Mike at 3/30/2008 9:24:11 PM
I want to test whether an int passed into a method is within various ranges.
In VBScript, this is pretty easy to do with a Select Case:
Select Case (myInt)
Case < 5000: i = 0
Case <10000: i = 10
Case <15000: i = 15
etc
End Select
C# doesn't seem to like this approach. What should I... more >>
How write this SQL in LINQ, please?
Posted by Ronald S. Cook at 3/30/2008 8:13:29 PM
Any idea how to write this in LINQ?
SELECT am.AnimalId,
MAX(am.AnimalMoveActualDateTime) AS AnimalMoveActualDateTime
FROM AnimalMove am
INNER JOIN Animal a ON am.AnimalId = a.AnimalId
INNER JOIN Lookup l ON a.StatusLookupId = l.LookupId
WHERE l.LookupCode = 'ONY'
GROUP BY am.AnimalId
... more >>
release resources by using a using statement
Posted by Tony Johansson at 3/30/2008 5:31:48 PM
Hello!
Below I have a simple using construction. When this go out of scope which
close will be called
is the one in TextReader or the one in StreamReader
It must be the one in TextReader otherwise it's very strange.
The reson I ask it that a book called step by step C# 2005 is saying that ... more >>
How to get monitor size?
Posted by Polaris at 3/30/2008 5:11:59 PM
Hi Experts:
Using C#, is there a way to get the display monitor's size in inches (for
example, I'd like to know if the monitor size is 15", 17" or whatever)?
Thanks in Advance
Polaris
... more >>
Manually choose where App Settings stored.
Posted by Sin Jeong-hun at 3/30/2008 3:46:16 PM
The Application settings which VS.NET provides are handy, but the
settings are stored in a predefined folder like ApplicationData\Company
\AppName.... or something. Can I override this behaviour so that *I*
can decide where it is stored? Is it impossible? Then I have no choice
but to write my ow... more >>
Argh... XmlSerialization with inherited types
Posted by Steve K. at 3/30/2008 3:08:40 PM
I'm getting an error deserializing some XML and it really doesn't make sense
to me.
Here are my classes that I'm serializing/deserializing:
<code>
public abstract class BusinessEntity : INotifyPropertyChanged
{
// only has one protected method, no need to serialize
}
[Serializable]
... more >>
A Security Problem
Posted by Dom at 3/30/2008 1:49:42 PM
I have a program finished, I created the exe, I tested it, works
fine. I move the exe to a network drive so that others can use it,
and suddenly it fails. The problem seems to be a security problem,
since the program tries to access the backend through SQLConnection,
etc.
When I move the pr... more >>
C# 1.1 and C# 2.0 difference
Posted by almurph@altavista.com at 3/30/2008 1:04:30 PM
Hi,
I'm looking for a good article that lists whats new in C# 2.0
from C#1.1 - just the new features is all. Would appreciate any
comments/suggestions/ideas/article that you would like to share that
you may have on this.
Thanking you,
Colm... more >>
how to pass lots of data from unmaged to manage code using CCW
Posted by lightdoll at 3/30/2008 8:18:00 AM
hello everyone
i want to send lots of data from unmanaged to mange code using CCW.
i have made this kind of code with variant, but it was slow..
for example
because i have to make variant type like safearray, before send variant to
manage code.
so there is loop to make variant type.... more >>
generating cs file
Posted by csharpula csharp at 3/30/2008 6:11:37 AM
Hello,
I need to generate cs files from XSD files. I would like to do it
automatically. What is the best way to do it? Is it better be done with
PreBuild inside VS (before compilation) or to activate this action
outside of VS in extrenal script (and not on each compilation)?
Thank you!
*... more >>
Programmatically Register and Unregister Shell Verbs
Posted by godshiva@gmail.com at 3/29/2008 11:42:24 PM
Hello!
I am designing a simple application to backup files. I would like to
offer right click windows explorer shell integration to queue files
for backup, or to select files and backup immediately. This is
similar to the behavior of "Shell integration" options for WinRar or
Winzip.
I a... more >>
Declaring DateTime variables and comparing them
Posted by Anil Gupte at 3/29/2008 10:34:24 PM
I am using the followig code:
SqlConnection con = new SqlConnection(strcon);
con.Open();
string strSelect = "Select PaidUntil from Users where username='" + un +
"'";
SqlCommand cmd = new SqlCommand(strSelect, con);
SqlDataReader dr;
dr = cmd.ExecuteReader();
dr.Read();
DateTime PaidUnti... more >>
Dedect pending changes in DLinq DataContext
Posted by Andrus at 3/29/2008 3:49:26 PM
I have invoice editing WinForms form containing TextBox controls and
DataGridView.
Text boxes are bound to entity properties, grid is bound to BindingList of
entities.
Entitites are returned from DLinq query and implement
INotifyPropertyChanged.
If user closes form I need to check for unsa... more >>
Location of Context Menu in Listview
Posted by O.B. at 3/29/2008 1:11:15 PM
Assume a context menu is associated with a listview. Upon opening the
context menu, is there a way to determine which row in the listview
that the context menu was invoked upon?... more >>
Custom Serialization
Posted by Jon Slaughter at 3/29/2008 1:08:00 PM
I have a recursive class that looks like
[Serializable]
public class RTree<T> : IEnumerable<RTree<T>>, ISerializable
{
public List<RTree<T>> Nodes; // Container for Nodes
public T Value; // Value at this node
public RTree<T> Parent; // Contains the parent node
....
So its... more >>
milk tities
Posted by izurewakaru at 3/29/2008 12:52:02 PM
For only fetish maniacs.
Here is a free sample movie from musha-burui.com
http://rapidshare.com/files/102726682/Lactating05.rar
http://rapidshare.com/files/102101127/lactating003.rar
by
http://www.musha-burui.com
Thanks... more >>
Possible to make files in application dir in Vista?
Posted by Sin Jeong-hun at 3/29/2008 3:07:44 AM
Since Windows 2000, all user setting files should be stored separately
in the user's application settings directory. But some users still
want all the files to be created in the application folder, to make
that app "portable".
I've created an application which creates an .mdb database in the
di... more >>
Method/Function name
Posted by pz at 3/28/2008 11:53:09 PM
How do I output the name of the method or a function without hard-coding it
in the application?
Say, I want application to write to stdout the name of the method that
currently is getting executed, to give me better idea how the program logic
is flowing (I am writing a multithreaded applicati... more >>
Insert and update in DLinq DataGridview
Posted by Andrus at 3/28/2008 11:52:18 PM
I tried to edit data in DataGridView.
Insert and delete operations in grid are not saved to database. Updating
works OK.
How to force grid to save Insert and Delete operations also ?
Andrus.
Northwind db = CreateDB();
var list = new BindingList<Customer>(db.GetTable<Customer>().ToList() ... more >>
|