all groups > c# > march 2008 > threads for monday march 17
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
using your own class library
Posted by Christopher Pisz at 3/17/2008 11:29:55 PM
My C# book seems to leave out how to "link" to a class library I created.
I made a project of type class library called "Data Objects" and a project
of type windows application called "Economic Simulation" in the same
solution. Now I want to make use of one of the classes from "Data Objects" ... more >>
on load isn't executed
Posted by HÃ¥vard_Olerud_Eriksen at 3/17/2008 10:16:13 PM
I've got a WinForm MDI application. A little while ago (probably after I
made some changes) my Load method for the form stopped being executed. I had
some initialization done there and I suddenly noticed that this wasn't done
anymore. I haven't been able to get it to work again and have had to... more >>
deleting multiple rows in a datagridview .net
Posted by MMSJED at 3/17/2008 10:13:00 PM
How to let user delete multi rows from the BindingSource while the
SelectionMode Property set to RowHeaderSelect
I have in my program datagridview bound it to sql table
Throw Bindingsource
To fill it:
MyTableTableAdaptor.fill(MyDataset.Mytable);
MyTableBindingSource.datasource = MyD... more >>
How to sort a keyed collection?
Posted by Jon Slaughter at 3/17/2008 8:49:23 PM
topic says it all? Is there any simple way? msdn says that the keyed
collection is build from both a sortedlist and sorted dictionary.
http://msdn2.microsoft.com/en-us/library/5z658b67.aspx
(well, it doesn't say that specifically but it says it when talking about
the sorted versions so I'm... more >>
Best pracise for using Linq within a 3 Tier project
Posted by Ilyas at 3/17/2008 3:43:19 PM
Hi all
What is the recommended way for using Linq within a 3 Tier project?
Many thanks... more >>
Generating unique incremental integer ID for database tables
Posted by Claire at 3/17/2008 2:38:21 PM
Hi,
I can imagine this question has been brought up before but I've spent all
morning trying to find what I need on google without success.
My application sits on Mysql or MS sql server engines and to date I've just
been using auto-incremental int64 fields to generate my RecID field.
I know t... more >>
Signature verification
Posted by Ralph.Malek@gmail.com at 3/17/2008 1:37:35 PM
Would anyone happen to know how to determine if a digital signature
used MD5 or SHA1 as the digest algorithm?
I have a requirement to verify the authenticity of VeriSigned exe
file, and while validating the certificate chain is simple enough, I
am having a hard time figuring out how to determi... more >>
modify dictionary value
Posted by Jon Slaughter at 3/17/2008 1:22:15 PM
How do I modify the value of a dictionary object?
I have something like
Dictionary<string, A> Q = ...
Where A is a struct.
I want to change some values in A but
Q["somestr"].x = 1;
doesn't work because it makes them read only.
If I do something like
A a = Q["somestr"];
a.x... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Bluetooth in c# ?
Posted by Blue Doorman at 3/17/2008 12:24:03 PM
Hi,
I need to scan for bluetooth devices in a c# program.
I dont want to use components that you can buy, but write it my self.
But i cant find a good and working sample on the net.
Can anyone help me out please ?
I am working on a Vista Premium 64bit machine with Visual Studio 2005.
Tha... more >>
How name employee first name label and textbox, if not via Hungarian notation?
Posted by Ronald S. Cook at 3/17/2008 11:23:44 AM
For all those anti-Hungarian notation people out there, how would you name
an employee first name label and textbox on an create/modify employee form,
respectively (please)?
Thanks,
Ron
... more >>
c# features
Posted by Jarlaxle at 3/17/2008 10:59:02 AM
I have to say I think that lambda functions are incredible. Although a
little disconcerting at first I think they really unclutter code and are
extremely powerful when you understand them.
So here is my wish list for c#/cli features...
1. static extension methods - can't see a reason for... more >>
C# Equivalent to this VB.NET Code
Posted by Greyhound at 3/17/2008 10:45:01 AM
What is the C# equivalent?..,Thanks
Public Enum InetConnState
modem = &H1
lan = &H2
proxy = &H4
ras = &H10
offline = &H20
configured = &H40
End Enum
... more >>
C# and COM
Posted by Joe at 3/17/2008 10:15:48 AM
Hello,
I have to create an interface to allow another application to communicate
with ours. I'm thinking of adding a COM interface into our exe to allow this
but I'm not sure this is the best way to go.
The other application needs to be able to launch ours, send it some data and
call some ... more >>
3 general c# questions
Posted by Jarlaxle at 3/17/2008 9:31:02 AM
I have 2 general c# questions I was hoping someone could answer...
1. Is it possible to return a struct by ref?...
class A
{
private mystruct _ms = new mystruct();
public mystruct ms
{
get { return _ms; }
}
}
since ms is a struct it returns a copy can ... more >>
html and regex
Posted by Sean at 3/17/2008 9:27:44 AM
I have been trying to parse a webpage in my own free time and I have
come to yet another regex I can't quiet seem to get. I wanted to get
the data inside the <table> tags, however the html and other daata
inside it span multiple lines and nothing I use seems to work.
My first attempt was: <tab... more >>
DataSet and Schema
Posted by spastkchild at 3/17/2008 8:21:23 AM
I have a schema that I use for a dataset. After getting the data into
the dataset, I send it to an AST.Net Session.
I need to read the data from the session, and want to do so like a
Typed dataset (i.e. use the schema to increase readability). Does
anyone know how I can do this?... more >>
.NET class as COM class
Posted by Christian Havel at 3/17/2008 8:09:03 AM
Hi,
I defined a interface like following:
[ComVisible(true)]
[InterfaceType(ComInterfaceType.InterfaceIsDual)]
public interface IMyInterface
{
[DispId(30001)]
string FirstProperty{ get; set; }
[DispId(30002)]
string SecondProperty { get; s... more >>
Dynamically changing Variable name
Posted by AMP at 3/17/2008 8:01:14 AM
Hello,
I have ArrayLists that are Channel1, Channel 2......Channel16
I want to access them with a (for int s=1;s<17;s++) loop, but I dont
know how to do this:
"Channel+s"
Any help,
Thanks
Mike... more >>
Data Bound Applications with ADO.NET and Custom Objects
Posted by Vanessa at 3/17/2008 7:36:00 AM
Hi all!
I was reading this article about data binding:
http://msdn2.microsoft.com/en-us/magazine/cc163477.aspx
I have a question: if I add a new property (ContactName, for example) to
Customer class and add a TextBox (readonly), how can I bind it? What I want
is: when I change the Custo... more >>
College c# Project final report
Posted by ITrishGuru at 3/17/2008 6:57:54 AM
Hi All,
I am doing a C# project for my final year in college and I was
wondering about what chapters or sections I should have in the final
report. I'm not on a pure B.S. I.T. course so the I.T. dept, don't
provide any project managment classes I just have a project mentor who
ain't that good. ... more >>
How to extract static data out of an assembly?
Posted by Udi at 3/17/2008 6:12:31 AM
Hi all,
How can I extract the value of a static strnig field that resides
inside a dll?
Thanks!... more >>
XML Serialization - Remove XML-instance namespace?
Posted by Spam Catcher at 3/17/2008 6:03:08 AM
Hello Everyone,
When I'm serializing my objects to XML, .NET seems to put the following
namespace into certain elements:
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
Does anyone know what its for? Is there a way to prevent .NET from... more >>
How to show a ABOUT Form????????
Posted by Delphiscn at 3/17/2008 5:59:31 AM
How to show a ABOUT Form????????
Hello Everyone:
I use C# want to Create a Project. In my project. there are two
forms. One is main form, and another is a about form. In the about
form there are some information about my project. such as author's
information, product support and so on.
No... more >>
Linq is not updating my data...
Posted by Ilyas at 3/17/2008 5:29:12 AM
Hi all
I have the folowing code:
NorthwindDataContext nw1 = new NorthwindDataContext();
Category c1 = new Category();
c1.CategoryID = 1;
c1.CategoryName = "New Category2";
nw1.SubmitChanges();
//Note that the cate... more >>
Getting log4net to flush with each Log?
Posted by Artie at 3/17/2008 4:44:01 AM
Hi,
Does anyone know a workaround to get log4net to flush with every log?
I know that l4n version 1.2.10 as the .flush method, but we're stuck
on an older version.
Currently, if our process is killed (or there's a power cut etc) our
buffered log events are lost.
Any help much appreciat... more >>
Object management : keep alive or dispose and rebuild
Posted by Alphapage at 3/17/2008 4:40:02 AM
Hello,
I have built an object which does some jobs on a particular server.
There can have lots of this object running concurrently.
I want to know what is the best way to optimize my application:
- keep all those objects alive in memory without any timeout (the object is
built one time per ... more >>
business rules
Posted by hireprabhu@gmail.com at 3/17/2008 4:31:38 AM
Hi,
Can somebody let me know what is the best way to implement the
business rules. I am quite new to C# & oops
Class A {
Function Busrules { base class rules must run}
}
Class B: A {
Function Busrules { Having its own rules.}
}
When I create object of class B and call Busrules ... more >>
mouse double click event problem
Posted by Gaz at 3/17/2008 3:29:15 AM
Hi im trying to create a double click event on a list view and i have
it working perfectly ish, problem is the event will even fire if i
double click on the scroll bars any ideas on how i stop this from
happening?
Here is what i have already done..
Added this to the designer of the form:
... more >>
Best way to build an internet application?
Posted by (2b|!2b)==? at 3/17/2008 12:59:42 AM
I have a (3-tier) desktop application that I developed entirely in C++,
comprising mostly of Win32 Dlss as well as some ATL COM objects.
I want to "port the application to the internet", so that it can be run
over the internet - I'm sure there is more than one way to do this. BUT
- can anyo... more >>
winforms Vs Windows based applications
Posted by pavan2004 at 3/17/2008 12:13:54 AM
Hi friends,
Please help me on this. May i know difference between "winforms Vs
Windows based application developement" using c#.
thanks
pavan... more >>
|