all groups > c# > february 2007 > threads for wednesday february 7
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
dock windows
Posted by Alberto at 2/7/2007 9:05:51 PM
can i dock windows in my programs like Visual Studio 2005 do (for example,
the properties window) ?
Thank you
... more >>
application quit
Posted by Mark at 2/7/2007 8:52:09 PM
its there a application quit method to exit the application example
thanks
Mark
... more >>
c# functions
Posted by Mark at 2/7/2007 5:39:51 PM
are there functions in c# for just members of a class
myclass.Method/function
Thanks
Mark
... more >>
string to byte[] back to string + Compression Failed!
Posted by jeremyje NO[at]SPAM gmail.com at 2/7/2007 5:35:46 PM
I'm writing some code that will convert a regular string to a byte[]
for compression and then beable to convert that compressed string back
into original form.
Conceptually I have....
For compression
string ->(Unicode Conversion) byte[] -> (Compression + Unicode
Conversion) string
For D... more >>
DataGridView row spanning?
Posted by nwmotogeek NO[at]SPAM gmail.com at 2/7/2007 3:45:43 PM
Is it possible to span multiple rows with a single column? For
example I may want to associate two items with a persons name and want
that name spanned accross both rows (each item) . Is this possible?
If not what control could this be done with?
... more >>
Complex sorting problem with List<>
Posted by LarryR at 2/7/2007 3:39:00 PM
I need some help with a multilevel sorting problem with the List<>.
I have a List<ItemToSort> ( see below ) that needs to be sorted in the
following manner:
Sort by Level1Id ( ok that was the easy part)
Within the unique Level1Id's, sort by Level2Id
Within the unique level2Id's sort by name... more >>
i wanna record a sound in .net app
Posted by Abubakar at 2/7/2007 3:22:46 PM
Hi,
I want my app's user to be able to record sound through my app and save it
to the/some file. How can I do that? Are there any classes in the .net
framework that let us do this? Or will I have to buy some thirdparty
components, in which case plz suggest some cool n tested links.
Regar... more >>
CLASS PROBLEM
Posted by at 2/7/2007 2:57:39 PM
I have an object in my page
protected RProductList Rproductlist22;
public class RProductList : R_ListBase
{
public RProductList(Page Page);
public override void GenerateSQL()
{
if (base.SQL_Top == string.Empty)
{
base.SQL = this.getSQL(string.Empty);
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
throwing custom message?
Posted by VMI at 2/7/2007 2:50:07 PM
How can I catch an error and throw the exception message plus some custom text?
For example, I'd like to do something like this:
try
{
//generate error
}
catch
{
//throw ex + " my custom message";
// OR
//throw ex.Message + " my custom message";
}
How is this possible without w... more >>
Xpath containing '
Posted by Robert Mago at 2/7/2007 2:44:11 PM
How do you evaluate an xpath in c# containing a ' ? I tried using ' but
it did not work
Thanks
... more >>
Fill listview with references
Posted by kenny.deneef NO[at]SPAM gmail.com at 2/7/2007 2:34:06 PM
Hey,
I'm searching for a methode to get the the reference to an object I
added into a listview.
I got this class Address
class Address
{
private string street;
private string numb;
private string city;
private string country;
private string phone;
private string gsm;... more >>
Is there a good way to turn regex patterns into properly-escaped c# regex patterns?
Posted by sherifffruitfly at 2/7/2007 2:12:42 PM
.... Becuase GOD am I getting sick of happily whipping out a rexex
pattern, and then spending 45 minutes squinting my eyes at the c#
code, trying to see if I have 4 backslashes, or only 3.
Suggestions greatly appreciated,
cdj
... more >>
how to resolve System.Configuration.ConfigurationErrorsException?
Posted by Jeremy Chaney at 2/7/2007 2:05:35 PM
It appears that my user.config file got corrupted causing my
"InitializeComponent" routine to throw an exception "Root element is
missing." when I start my app.
I figure I can just go into Explorer and delete the file to get things
working again, but I'd rather just catch the exception and res... more >>
DSOFramer Successor
Posted by RobKinney1 at 2/7/2007 1:47:14 PM
Hello,
Does anyone know if there is going to be or already is a successor to the
DSO Framer? I wonder what ever happened with the ActiveDocumentHost....
We use the DSO Framer in one of our C# apps but strange things are happening
when using it with Word 2007 including some missing feature... more >>
Build DateTime manually
Posted by sippyuconn at 2/7/2007 1:16:32 PM
Hi
I am getting an Exception and trying to fix as MS suggest
From C# help this comes
>>Make sure your method arguments are in the right format.
>>The format of your method arguments must meet the parameter specifications >>of the invoked members.
>>When converting a string to DateTime, ... more >>
Inheritance Part 2
Posted by JimHeavey at 2/7/2007 1:12:00 PM
I have a class (base) which has 1 field (_MyField) and 1 method
(DoSomething() ).
This class is inherited by another class (MyClass). This class sets
_MyField to a value and then invokes DoSomething. When Do Something is
invoked, _MyField is always null. Why?
public abstract base
{
... more >>
Read XML file
Posted by Alan T at 2/7/2007 12:53:43 PM
This is my xml file content:
<?xml version="1.0"?>
<server>
<mssqlChicago>
<host>www.chicagoserver.com</host>
<user>managerA</user>
<password>ceoman</password>
<db>dbCEO</db>
</mssqlChicago>
<mssqlLA>
<host>www.LAserver.com</host>
<u... more >>
FxCop Do not pass literals as localized parameters warning
Posted by Tim Sprout at 2/7/2007 12:53:43 PM
FxCop gives a "Do not pass literals as localized parameters" warning on the
dot Text properties of my Form1 components in Form1.Designer. These are the
strings that label the buttons and form. I assume that I don't really need
to retrieve these strings using ResourceManager, or do I? How do I avo... more >>
exception bubbling
Posted by jay.meerdink NO[at]SPAM gmail.com at 2/7/2007 12:50:05 PM
I have a simple app that opens in Program.cs with
try
{
Application.Run(new Shell());
}
catch (Exception ex)
{
LogErr(ex)
}
In the development environment, any exception thrown anywh... more >>
Clear Keyboard Buffer
Posted by Mike at 2/7/2007 12:13:27 PM
Does anyone have a simple function to clear the keyboard buffer? I
need to make sure and clear any keystrokes before I exit my
application.
Thanks,
Mike
... more >>
Do we have managed newsgroupss for WWF and WCF questions?
Posted by Max2006 at 2/7/2007 12:02:58 PM
Hi,
Do we have managed newsgroups for WWF and WCF questions? If not, which
newsgroup should I use for WWF and WCF questions?
Thank you,
Max
... more >>
Inheritence
Posted by JimHeavey at 2/7/2007 11:51:01 AM
I have an abstract class. I want to define a field and a few methods which
reference the field defined for that abstract class. The field is defined in
the abstract class but is populated in the class which inherits the class.
The only way to reference the field in the abstract class is to ... more >>
Reflection: How to get the type of an array?
Posted by Achim Domma at 2/7/2007 11:46:30 AM
Hi,
I'm analyzing the fields of an object like this:
foreach (FieldInfo info in obj.GetType().GetFields()) {
...
}
Some of the fields are arrays, so I check for info.IsArray which works
fine and info.FieldType contains MyType[] for example. But how do I get
the base type of the a... more >>
C# project reference
Posted by JoeZ at 2/7/2007 10:57:18 AM
Every time I open the C# project, it copies all assemblies the project
references into the output path.
How can I disable it?
TIA,
JoeZ
... more >>
Can VS2005 publish build a single exe?
Posted by Tee at 2/7/2007 9:42:34 AM
Hi,
I am trying to build my application into a single installation exe so that
my client can start installing and test on their machine. My question can MS
VS2005 publishing feature able to doing this?
Many thanks in advances :)
... more >>
Suspending a thread from another thread
Posted by Max at 2/7/2007 9:28:22 AM
Hello,
I made an application that uses the main thread for the UI, and another thread to communicate through the RS232 port. I would
like the communication thread to be suspended immediately when the user presses the ESC key. It should resume when the user answers
a dialog box. The Thread.... more >>
Regular Expressions problem
Posted by tshad at 2/7/2007 9:24:59 AM
I am trying to turn my html page into text only (except for <a> tags -
links).
I have changed everything except remaining tags.
************************************
// Remove remaining tags like <a>, links, images,
// comments etc - anything thats enclosed inside < >
result = ... more >>
VB6 automation error trying to use a COM-exposed C# DLL
Posted by Tremendo at 2/7/2007 9:11:16 AM
Hi,
I have two PCs:
PC1: Visual Studio 2005 (including .NET framework 2.0.
PC2: Visual Studio 6 (using Visual Basic 6) + .NET framework 2.0 installed separately.
On PC1 I wrote and built a C# DLL (see code below), and created one .tlb and one .reg file to expose
its methods to COM.
On PC... more >>
dropdown list control populating with db query as well as default one
Posted by mamun at 2/7/2007 8:57:25 AM
Hi All,
The problem is as follows:
I have a table from where I am getting consultant's name and
populating the dropdown list control. But I want to populate the
default one which I got it as a query string from the previous page.
How can I do that?
I do appreciate your help.
Thanks a ... more >>
DateTime.Parse problem with Time Format using period
Posted by sippyuconn at 2/7/2007 8:39:01 AM
Hi
I am having a problem formatting a string when the time is in format
hh.mm.ss - used in Europe
Parse seems ok when the date uses "/" or "." as seperator
but I get an exception when time uses "." as seperator as used in Europe
I have US regional setting and I have tried switching my reg... more >>
Oracle 8i Backup on a Click of a Button reg.
Posted by snramkumar NO[at]SPAM gmail.com at 2/7/2007 8:06:25 AM
Dear Friends,
We are using Oracle 8i Enterprise Edition of Windows 2000 Server as
the Backend.
For backup purpose we are using the following command @ command prompt
viz;
c:\> exp scott/tiger file=07-FEB-2007.dmp
Is there any other way for simple backup, so that the user by enter
... more >>
Invoking a Static Method in a Static Class
Posted by JimHeavey at 2/7/2007 6:53:01 AM
I want to invoke a static method of a static class using a TEXT variable
which has the namespace and class name which should be executed. I looked at
the "CreateInstance" method, but this looks like a way to create an instance
of a class, which is not what is needed. I attempted to use this ... more >>
Command Objects
Posted by JimHeavey at 2/7/2007 6:33:01 AM
Typically, I create a command object and execute it and then if I want to
execute additional SQL I create another command object to do this. Is this
correct or can/should I re-use the existing command object? If it is
appropriate to create another command object, do I need to use the Dispose... more >>
List.Exists method
Posted by Tarscher at 2/7/2007 6:13:33 AM
Hi all,
I have a list of integers and simply want to check if a number exists
in that list. In the manual I found the List.Exists method but this
apparently only works for constants values via a predicate? Am I wrong
here?
What I want to do
List<int> id = new List<int>();
...
populate li... more >>
Trying to get values of each column in a datagrid view
Posted by Chris at 2/7/2007 5:38:01 AM
I am usign the code below to find the current row and cell. Which works OK.
Then hwat I want to do is get the value of each other cell in the row. So
below I am trying to get at least one values. The last line gives me an error
that I am not passing the correct arguments. But I am passing two ... more >>
crash in release build
Posted by bjornms NO[at]SPAM gmail.com at 2/7/2007 4:19:06 AM
The application i build in C#.net is crashing once a month. I can't
reproduce the crash.
Is there a way to track down where the program crashes, without
putting logging everywhere in the code? Is there a way to get a stack
trace of the crashing program (by the way, i'm new to C#.net, i have
e... more >>
Icons
Posted by technical0 NO[at]SPAM gmail.com at 2/7/2007 4:15:19 AM
Hi,
I have a 48x48 icon named <ApplicationName>.ico which, when I build my
application, is therefore used as the executable icon. However, in
Windows Explorer it is possible to use various different views that
require different icon sizes. Explorer will automatically scale the
icon to the corre... more >>
Run Thread when form open.Plz urgent.
Posted by abid gee at 2/7/2007 3:53:27 AM
Please give a kind look on my question. and please comments.
I am Using C# as development tool of Dot Net 2.0.
I wrote a function read_data() that read data from Serial Port
continuously.Till application gets close.
But When Form loaded read_data() function take tooo much CPU. Even I can... more >>
Custom Validation Message in a Property Grid
Posted by technical0 NO[at]SPAM gmail.com at 2/7/2007 2:11:08 AM
Hi,
I have a property grid used for editing the members of a class of
which one is an int. If this int value is deleted in the property grid
then I get a default error dialog box that says:
"Property is not valid." [Details] "is not a valid value for Int32."
I would like to be able to override ... more >>
weird?? inaccessible due to its protection level error
Posted by milund at 2/7/2007 12:56:15 AM
I have a "funny" after upgrading to .NET2.0.
The following code is placed inside an unsafe method in assembly "A"
System.Object myIUnknownObject =
Marshal.GetObjectForIUnknown((System.IntPtr)m_someClass.MyProperty);
SomeClass is declared public in assembly "B".
MyProperty get is declared ... more >>
System.Configuration.Configuration
Posted by Alberto at 2/7/2007 12:28:59 AM
Can you tell me how to read and modify a value in the app.config file using
this class?
Thank you very much
... more >>
Type or namespace could not be found
Posted by Nico Vonckx at 2/7/2007 12:27:47 AM
Hello,
As I am taking my first steps in C#.NET i wrote this but I always receive an error message.
<%@ Page Language="C#" %>
<script runat="server">
void Submit_Click(object obj, Eventargs e) {
if (tbPass.Value == "mypass") {
Session["Username"] = tbUser.value;
Response.Redirec... more >>
|