all groups > c# > march 2008 > threads for monday march 3
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
XmlSerializer over NetworkStream
Posted by Newbro at 3/3/2008 11:38:01 PM
I'm developing a server client programs which handle communications between
PC and PDA devices. XmlSerializer is used to serialize Packet object and
send/receive over networkstream.
The program works just fine initially, but choke when there's a constant
stream of data coming, which cause ... more >>
Debugging XL addin using Visual C# 2005 Express Edition
Posted by Schizoid Man at 3/3/2008 10:54:54 PM
Hi,
At work I have Visual Studio 2005, and I can debug my Excel add-ins by
attaching to the Excel.exe process and it works like a charm.
However at home I only have access to Visual C# Express 2005 Edition,
which does not have any 'Attach To Process' functionality.
How do I debug anythi... more >>
control questions
Posted by Analizer1 at 3/3/2008 10:04:57 PM
Hi hows it going
ive made dynamic buttons and added a button click event
ButtonClick(object sender,eventargs e)
Im sending all the Buttons created 1 to 3
I dont know how to get which button was clicked
thanks
... more >>
Going slightly mad - Insert sql not working from code but does in Access?
Posted by JamesB at 3/3/2008 9:59:11 PM
I am trying to insert a row to an Access database:
INSERT INTO tblTest (Val1, Val2, Val3, Val4, Val5) VALUES ('blah', 0, '',
'', 'foo');
If I run this in my code:
String insStr = "INSERT INTO INSERT INTO tblTest (Val1, Val2, Val3, Val4,
Val5) VALUES ('blah', 0, '', '', 'foo');
OleDbCom... more >>
referencing ref variables in forms
Posted by doofy at 3/3/2008 9:35:27 PM
I've got a form associated with a custom control I'm doing.
I want to include a ref variable in a constructor for the form, so I can
feed info back out to the calling control.
When I try to reference that variable in the Ok button code, it can't
see it. I tried prepending it with 'this', ... more >>
Need help using Raw Input under C#
Posted by Jason at 3/3/2008 4:59:57 PM
I have an application that uses an attached GPS through the COM port.
Unfortunately it seems that time has moved on and more and more GPS devices
are native "HID" devices connected to a USB port. (Good news for Vista 64bit
users I guess!) Unfortunately as far as I can tell I need to use Raw In... more >>
ListView Grid Distortion
Posted by Liz at 3/3/2008 4:40:28 PM
My ListView components seem to produce distortion when they are scrolled in
Details view; it looks almost like the text has a "strike-through" attribute
applied to it.
Does anyone know of a fix for this? If not, is there an alternative
component available (that behaves like a ListView) ?... more >>
Load Page aspx at runtime
Posted by Giorgio at 3/3/2008 4:24:08 PM
Hi,
I use successfully the Page.LoadControl(string virtualPath) method (with
*.ascx files) and Control.Render(writer) to create template and then
serialize them into a stringWriter to store the result into a file.
I would like to do the same with some pages (file *.aspx), but i cannot find... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
[LINQ] GroupBy vs ToLookup
Posted by Wiktor Zychla [C# MVP] at 3/3/2008 2:39:14 PM
could someone enlighten me on what would be the difference between GroupBy
and ToLookup?
I try hard but am not able to spot any difference between these two. the
syntax and behavioral semantics is the same.
is there any explanation on why we need them both?
Thanks in advance,
Wiktor Zy... more >>
Extensions hurting my brain
Posted by Joe at 3/3/2008 1:37:34 PM
Hi all,
My brain is hurting. Here's the MSDN page about extension methods:
http://msdn2.microsoft.com/en-us/library/bb383977.aspx
If you don't feel like reading through it, just trust me on this next
point.
On this page, it says this:
"An extension method with the same name and signat... more >>
ADO.Net - Field size and precision
Posted by Claude at 3/3/2008 1:36:02 PM
How can I get the complet schema of a datacolumn using ADO.Net objects (the
equivalent of ADOX in ADO 2.8) ?
I need to know the DataType, the DataSize, the Precision...
The DataColumn object only gives DataType.
Thanks,
Claude... more >>
System Time Changes Seen by C# DLL
Posted by Mike at 3/3/2008 1:03:25 PM
How can I get my C# DLL to be aware of changes to the system date/
time? I am familiar with using WM_TIMECHANGE in a C++ app but how do I
get a C# DLL to see the same message?
Thanks,
Mike... more >>
common DataBinding scenario: Yes/No backed by true/false
Posted by sklett at 3/3/2008 11:45:44 AM
I have the need to display a DropDown with 2 options: Yes/No.
I want to bind this control to an entity which represents the field in
question with a bool.
What I've done in the interim is to manually add "YES" and "NO" strings to
the control, then in the SelectedIndexChanged event set the bo... more >>
Linq a viable solution for XML?
Posted by DBC User at 3/3/2008 11:37:18 AM
So far all the examples I have seen been working with simple XML
files. Just curious, is Linqq a viable solution for handling a large
XML file, when I say large, it means it has almost 2K+ nodes in it and
it keep growing as well?
Thanks.... more >>
hooking into the validation summary control, adding a custom error message
Posted by DotNetNewbie at 3/3/2008 10:46:56 AM
Hello,
I have a validation summary tag in my .aspx page, and when a user
clicks on a submit button I check the database for a duplicate
username that the user entered into a textbox control.
If I find a duplicate username in the database, I want to insert a
message into the validationsummary ... more >>
Skinning a Windows Application?
Posted by Matthias at 3/3/2008 10:24:15 AM
Hello,
I'm just wondering whether there are (if possible free)
toolkits/classlibraries available which support skinning of a c# windows
application (.net 2.0).
Any ideas, links, hints?
Thanks a lot in advance!
Matthias... more >>
ClickOnce fails to load after digital signature expired / renewed
Posted by George at 3/3/2008 9:54:59 AM
Recently, i was unable to publish my ClickOnce application because my
Thawte Code Signing certificate had expired. I had renewed it, but
had not yet gotten around to changing it in the project/properties/
signing section of visual studio. I then took the new PVK and SPC
files provided by Tha... more >>
My context menu does not work
Posted by Dom at 3/3/2008 9:27:10 AM
I have a control called MyDataGridView, and the property
ContextMenuStrip is set to ContextMenu Control.
The problem is ... when I write click on MyDataGridView, the context
menu comes up in edit mode. That is, I can click on an item and edit
it. Also, the menu does not go away after I click... more >>
DataTemplate for Custom Control with ContentPresenter
Posted by Wonko the Sane at 3/3/2008 9:14:07 AM
Hello,
I am using a custom control (based on Button), which has in its generic
implementation:
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="local:BasedOnButton">
|
|
<ContentPresenter .... /... more >>
generating C# classes from XSD with Custom Attributes..
Posted by parez at 3/3/2008 8:53:42 AM
Hi All
I am trying to generate classes from XSD which looks like this
namespace WindowsFormsApplication1.Something.Some
{
public class Address
{
public Address()
{
}
[FormMapper("TextBox2")]
public string StreetAddress { get; set;... more >>
images in list view
Posted by RobcPettit@yahoo.co.uk at 3/3/2008 7:37:32 AM
Hi, I have a 'star' in my imagelist and I use:
listView.SmallImageList = imageList1;
ListViewItem itemSize = listView.Items.Add(new
ListViewItem("",0)); to add this to my listview. All works ok. What Id
like to know is, this displays 1 star in the cell, is it possible to
add more th... more >>
c# install and uninstall app
Posted by freddy at 3/3/2008 7:16:00 AM
I would like to uninstall app form both local and remote computers without
the user knowing what is going on. I have admin right to all the computers so
this is not a problem. Can this be done?
Thanks
Freddy... more >>
c# coding
Posted by viji at 3/3/2008 6:46:06 AM
How to allocate and de-allocate the memory thr' C# with example coding?... more >>
Linq. Count.
Posted by shapper at 3/3/2008 5:55:26 AM
Hello,
I have a table named Tags which is related to other two tables
ArticlesTags and FilesTags.
My linq query to select my tags would be something like:
var query = from t in db.Tags
select new
{
TagId = t.TagId,
... more >>
".NET Research - Bangladesh" is live!
Posted by Tanzim Saqib at 3/3/2008 2:53:49 AM
This user group consists of .NET preachers from Bangladesh who perform
extensive research on different aspects of the platform and futures of it
that impact ranging from traditional way of software development to daily
life coding. The purpose of the group is to discuss and share not limited to
... more >>
Linq to Sql: Adding nullable association in O/R Designer
Posted by Stefan Wilhelm at 3/3/2008 1:37:01 AM
Hi all,
I have a table that has an optional entry so that column is defined as int.
I want to associate it with a column in another table. That column must be
present so it is defined as int NOT NULL.
O/R Designer will not associate them saying that their definition does not
match. That d... more >>
Underlining datagridview column caption
Posted by Andrus at 3/3/2008 12:48:57 AM
..NET 2 Winforms DataGridView.
I noticed that if column width is small
column.HeaderCell.SortGlyphDirection = ListSortDirection.Ascending;
does not display sort glyph.
To fix this I desided to underline column caption when mouse
in clicked in column header.
I tried
dataGridViewC... more >>
|