all groups > c# > november 2007 > threads for tuesday november 20
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
Splitter Container Resize
Posted by Jeffrey Walton at 11/20/2007 11:52:28 PM
Hi All,
I have a horizontal Splitter, for which I would like the top panel to
remain 20 pixels in height. I do this because I have a containter on
it, and I overide the OnPaint method. It is being painted as a band
similar to that of Disk Defragmentor.
Any ideas on how to disable a Splitter... more >>
Program crashes after a few executions
Posted by Thomas Neubauer at 11/20/2007 11:01:12 PM
Hello,
i am learning c# and have created now a simple project that just creates 6
random numbers.
My form includes a button and 6 labels for the random numbers. The program
seems to work correct,
however when after a few button clicks the program crashes.
Does anyone know where the reaso... more >>
List delimiter
Posted by Peter Holschbach at 11/20/2007 9:40:35 PM
Hi all,
where can I get the current selected list delimiter which is defined for
each country ?
There is nothing in CultureInfo.CurrentCulture.NumberFormat which seems to
be the right value.
Any idea ?
thanx
Peter
... more >>
Activex in C#
Posted by santel at 11/20/2007 7:41:42 PM
Hi,
I would like to embed the Word, Excel documents in C# windows forms.
While searching the forums, I came to know that WebBrowser control or
DSO Framer can be used for this purpose. Is there any other way to
embed the MS documents in C# forms? Anyone please suggest.
... more >>
How to create or use the XAML Designer control like Expression Blend or Visual Studio?
Posted by unclepony at 11/20/2007 6:19:50 PM
I just want to make application like a Expression blend but it is not
easy for me.
And I already know that we can make custom form designer control that
behave like visual studio. Microsoft provides a good example how to
make custom form designer but I am not sure if I make application with
thi... more >>
Assembly.Load(string name)
Posted by TS at 11/20/2007 6:16:23 PM
for some reason i have code in a projcect that uses this method and it
works. i have almost the exact same project/files (i just renamed some
stuff) in another directory. the code works in the 1st application and the
name of the parameter is just the name of the assembly, real short. the
ass... more >>
config file changes
Posted by Vinki at 11/20/2007 5:40:01 PM
Below is the code that i using to change the config file settings. When I do
the changes to the config file through this code, It seems that it updated
the config file with the changes, but when I got the file, the changes are
there.
I am having hard time finding out why this is happening.
... more >>
VStudio 2008 EE C# UI blocked with strange message,...
Posted by Kerem Gümrükcü at 11/20/2007 5:34:31 PM
Hi,
for some unknow reason the UI of the VS2008 didnt
respond to any kind of input even like Ctrl+F4 or Exit
Command. The Save,Open,Save As, commands didnt
respond and the IDE gave me that MessageBox, but best
of all: There was NO Modal Box at all, nothing to close,
nothing in background, no... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Create IIS Virtual directory on Vista
Posted by zion at 11/20/2007 5:24:35 PM
Hello,
How can I programaticly create IIS virtual directory on Vista?
Thanks
... more >>
Tabcontrol without the tabs
Posted by Antônio_José_Formiga_Neves at 11/20/2007 4:42:41 PM
I want to merge two form into one, with 2 buttons choosing which form must
apper and hide the other. And the 2 forms must be in the same position.
Someone help me indicating which any class or tutorial.
Thanks
Formiga
... more >>
C# Memory Leak
Posted by Chris Mullins [MVP - C#] at 11/20/2007 3:53:05 PM
As someone who regularly gives presentations on Garbage Collection, and
application profiling and tuning, I found this Slashdot article the other
day to be really funny:
http://developers.slashdot.org/article.pl?sid=07/11/17/0552247
I especially loved the slashdot spin that it is a bug in ... more >>
Targetting a class library for both 3.5 and 2.0
Posted by Lasse_Vågsæther_Karlsen at 11/20/2007 3:38:31 PM
I have a rather big class library solution with lots of projects.
Some of these projects I'd like to include .NET 3.5 things in, but only
when I'm targetting 3.5.
Basically, I'd like to be able to target 3.5 and rebuild, getting new
things into the new dll's for 3.5, and also be able to ta... more >>
RAPI being block buy Windows mobile Security model?
Posted by ink at 11/20/2007 3:17:55 PM
Hi all,
I have written a C# application that is to be used to commission(install and
setup) Symbol HHT (Windows mobile devices) with drivers, Wifi network
setting, phone settings and software.
I have got the application doing all the basics like coping files, deleting
files, editing the ... more >>
StringBuilder to byte array
Posted by Peter at 11/20/2007 3:06:56 PM
What is the easiest way to convert StringBuilder to byte array?
Thanks
... more >>
How to pass Composite Control messages to the parent Form?
Posted by Eitan at 11/20/2007 2:55:02 PM
Hello,
I developed a Composite Control with Visual C# (Rocker Button). The button
detects MouseUp events inside the control. However I would like these
MouseUp events to be transferred to the parent form of this control so I can
update the form with the new information.
The messages ar... more >>
Universal String (4 Byte Canonical Encoding) and UTF-32
Posted by Jeffrey Walton at 11/20/2007 2:54:30 PM
Hi All,
BMP Strings are a subset of Universal Strings.The BMP string uses
approximately 65,000 code points from Universal String encoding. BMP
Strings: ISO/IEC 10646, 2-octet canonical form, Universal String: ISO/
IEC 10646, 4-octet canonical form.
An excellent discussion occured with respe... more >>
Adding text to a richtext box and keeping vertical scroll bar at the bottom
Posted by Jon at 11/20/2007 2:28:11 PM
If I add text to a rich text box, when there's too much to display, the vertical scroll bar stays at
the top. I'd like it to be at the bottom, so I can see the last item of text added. How do I do
this?
... more >>
C# 2008 - no news feed on Home page
Posted by Steve Thackery at 11/20/2007 1:52:04 PM
My newly installed Visual C# 2008 is failing to show the "Visual C#
Developer News". It says:
"The current news channel might not be a valid RSS feed, or your internet
connection might be unavailable." Well, the internet connection is just
fine - I've tested it extensively, including some... more >>
T61 String Decoding
Posted by Jeffrey Walton at 11/20/2007 1:51:05 PM
Hi All,
Here's the solution I've been able to put together thanks to Jon
Skeet. Poseted in case anyone else wanders upon this (or the previous
thread) while grepping the web for the solution.
Jeff
Jeffrey Walton
// Many thanks to Jon Skeet for the hand holding
private string GetT61Strin... more >>
Dataset,Datatable,DataColumn
Posted by Franck at 11/20/2007 1:16:28 PM
I need to know what is the limit of column you can put in a datatable
which is inside a dataset.
i search on MSDN but i was only able to find the maximum amount of
rows which is 16millions something. Column must have a limit also i
guess. what it is. because i have dynamic column builder and i w... more >>
Determine when dragging a form has stopped.
Posted by Bob Johnson at 11/20/2007 12:47:35 PM
How can I programmatically determine when a MDI child form has been dragged
from one location to another within its MDI parent form? Ideally I'd like to
trap some event that occurs when the dragging has stopped.
Thanks.
... more >>
Partial Methods and C# 3.0
Posted by Zach at 11/20/2007 11:56:59 AM
I was reading about partial methods in the upcoming C# 3.0 with a
friends and we were having a discussion about their usefulness.
One on hand, they seem to be ok at providing a solution for allowing a
class to be extended at compile time by users of the class, and as
pointed out in some articl... more >>
double get fractional part?
Posted by Yin99 at 11/20/2007 11:44:43 AM
If I have:
8.24
7.56
1.11
as doubles, how do I easily get just the ".24, .56, .11" ? Thanks,
Yin... more >>
Quick syntax question
Posted by Blip at 11/20/2007 11:41:58 AM
In a test function's return variables I see this:
public void foo(int _Bar1_, string _Bar2, string _Bar3_, short _bar4)
etc...
What do the underscores signify if anything? For what it's worth, the
variables w/ two underscores are both enum elements.
Thanks... more >>
Interact with 2 or more windows in the same application
Posted by Antônio_José_Formiga_Neves at 11/20/2007 11:38:29 AM
How i moving and interacting with 2 or more windows in the same application.
For example, one login windows when the login is ok, move to Main windows.
Thanks
Formiga... more >>
Instalation for application with database
Posted by Antônio_José_Formiga_Neves at 11/20/2007 11:35:05 AM
How I create one instalation of my windows aplication with a SQL data base
(or any database) for my client can install with no problem.
Thanks
... more >>
DirectoryEntry Pooling...
Posted by Hemant at 11/20/2007 11:27:11 AM
Hi,
In one of my application i am using System.DirectoryServices to get
some data from Sun One Directories.
I am using Asp.net & C# 2.0
I am worried about the performance. I have following doubts.
1. Which will be better
a. adding DirectoryEntry Object to session.
b. Createing n... more >>
MDI Child form Question
Posted by Alij at 11/20/2007 11:01:12 AM
Hi,
I have an MDI form with one child form (called firstform), which has a
button. The button creates a new instance of a form(called secondform) with
a button on it also, and this new form is also set to be an MDI child.
When the button on the first form is clicked, the second form is ini... more >>
UCS and BMP Character Sets
Posted by Jeffrey Walton at 11/20/2007 10:44:57 AM
HI All,
I' working on an ASN.1 parser. The Content Octets (data values) are
stored in a byte[]. The conversion of byte[] to char[] is fairly
trivial. BMP is a special case of UCS, using the lower 65 thousand
characters. Reference http://en.wikipedia.org/wiki/Universal_Character_Set#Encoding_fo... more >>
how to Create a menu on treeview mouse click
Posted by weird0 at 11/20/2007 10:40:51 AM
i have detected the event of treeview node mouse click. All i want is
that when a user clicks, a menu appears.
How can i create a menu? Not the static one, that appears on the top.
The one that appears just like when you click the desktop screen and
Arrange Icons options come.
Regards
Th... more >>
XML to database?
Posted by Gary at 11/20/2007 10:37:56 AM
I have a requirement to read element values (can be in thousands) from an
xml file, and eventually write them all the SQL Server database.
I was thinking we could first write all the values from xml to some
datastructure (arraylist etc.) and then write from that datastructure to the
DB with a... more >>
Function Keys Saving
Posted by Wingot at 11/20/2007 10:25:16 AM
Hey,
I am using Visual Studio 2008 Beta 2 for some application development in
C#, but I presume that the following question applies equally well to
any environment.
I have created some data entry forms for customer details, transactions,
etc. What I would like to do is make it so ... more >>
Passing data between Windows Forms(newbie to desktop applications)
Posted by weird0 at 11/20/2007 10:21:09 AM
Hey!! someway( what i call i a MindFreak Technique!!) I managed to
pass data from one form to another. But still i can't really
understand the reference thing to pass data between forms.
I have three forms:
class Form1
{
}
class TreeViewForm
{
event()
{
// create object and... more >>
description in the code
Posted by Jeff at 11/20/2007 9:05:22 AM
hey
..NET 2.0
I'm wondering if it is possible to add some description to the code. Text
which describe for example what a property of a class does etc - I don't
mean comments
Lets say I have this code <lets say it is from a class named Car>;
private string _plate;
public string Plate
... more >>
using setup project
Posted by TonyJ at 11/20/2007 8:27:29 AM
Hello!
Is it possible to use setup project that exist in VS2005 to deploy
application written in MFC.
//Tony
... more >>
Splash image and jpeg usage
Posted by R.A.F. at 11/20/2007 8:00:13 AM
Hi,
I have a splash form which has a background JPEG image (back mainly with
some blue and white logo).
on this form i want to display a text which will be updated dynamically
to reflect the progression of application loading and checking.
however, even if i setup the text in white, the w... more >>
.Net COM interop
Posted by RP at 11/20/2007 7:57:06 AM
In COM I have an interface method that takes in
IMyInterface::MyMethod([in] ULONG ulCount, LPCWSTR* ppwszStrings);
So the client can do something like:
LPWSTR lpwszNet[2] ={L"String1" , L"String2"};
pMyInterface->MyMethod(2,&lpwszNet[0]);
Now if I wanna use the COM component from .Net LCWST... more >>
asp.net 2. 0 security
Posted by ireallyneedtoknow2007@yahoo.com at 11/20/2007 7:28:02 AM
hi all
I have to secure an internet application to only allow certain users
and have come up with the following page load and web.config code.
basically I allow all users access then catch their user name in the
page load and allow/deny access based on <add key="allowed"
value="user1"/> in web ... more >>
Bug in 2008
Posted by Joey Joe Joe at 11/20/2007 7:22:11 AM
Can anyone verify this bug in 2008? (Express edition)
1. Create new Windows Form Application
2. Set the Form's FormBorderStyle to None then back to Sizable
3. Grab the lower right corner and resize the form smaller then bigger.
4. What happened, if anything? (the form should repaint improperly... more >>
Adding items in listbox
Posted by Mahmoud Shaban at 11/20/2007 4:39:00 AM
i have a problem in adding new listbox items
i don't need to allow adding multible items with the same textvalue
ex: if current items are:
green
red
blue
if red is tried to be added again then error
i thinked about the possible solution:
1.read the current values in listbox ... more >>
Is this code right?
Posted by Koliber (js) at 11/20/2007 4:20:44 AM
I feel i still do not understand maybe a bit a dispose pattern
So I have a question - is this code right? Is fs.Close() there where
it is right?
If I do understand it in place 'BBB' there can be a situation where
such member
obiect as fs can be finalised - so it may be wrong. Am I right or not?... more >>
Scroll DataGridView to the bottom
Posted by Gidi at 11/20/2007 2:37:00 AM
Hi,
I've a dataGridView and i want that when i start my form, the dataGrid will
be scrolled to the last row instead to the first.
How can i do it?
Thanks,
Gidi,... more >>
Form Inheritance
Posted by Alij at 11/20/2007 12:15:39 AM
Hi,
I have a simple form with two TextBox controls and two Button controls. I
have inherited this form, but I am not sure how to add the event to this
child class when its button is clicked.
I appreciate any pointers on how to do this.
Thanks,
Alij
... more >>
|