all groups > c# > july 2004 > threads for wednesday july 21
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
Databinding to the rft property on a richtextbox
Posted by bubbesol NO[at]SPAM hotmail.com at 7/21/2004 11:58:24 PM
Hi all.
I cant databind rtf values to the rtf property of a winform
richtextbox control. Does something have a clue how this i done?
Ive tried this without luck:
this.richTextBox1.DataBindings.Add(new
System.Windows.Forms.Binding("Rtf", this.dataSet1, "rftdescription"));
Its no trouble d... more >>
USER HOME DIRECTORY
Posted by Sean at 7/21/2004 11:43:35 PM
Hi all,
I am writing a desktop application. Now, I am having
problem figuring out the <Home Dir> path of a user.
I want to store user-specific data and I heard that
there's an easy way in .net to get the <Home Dir>.
Any help/suggestion would be greatly appreciated.
Thank you very much ... more >>
LsaQueryInformationPolicy
Posted by Amit at 7/21/2004 10:51:45 PM
Hi,
Has anyone tried calling LsaQueryInformationPolicy inC#?
Can anyone provide me with some sample code?
Thanks and Regards
Amit
... more >>
Print Screen
Posted by Tomomichi Amano at 7/21/2004 9:49:23 PM
Is there is a way to "print screen" through a program? (to copy the screen
like when you press the Prt Sc button, and the Ctrl button)
... more >>
DataBinding could not find a row in the list that is suitable for all bindings
Posted by MajorTom at 7/21/2004 9:49:21 PM
Hello
I need help. I have a datagrid that have a dataview as datasource.
in the keyup event of one textbox I use dataview.rowfilter = some.text;
when the condition of my rowfilter return some rows, everything works fine.
At the point that the rows returned by the rowfilter is cero (0), t... more >>
Include tag doesn't work in documentation comments
Posted by Philippe Bertrand at 7/21/2004 9:48:25 PM
I tried following the pattern in MSDN and it just plain doesn't work.
I replaced the comments for a class with an include tag but did not change
any of the comments on the members of the class (without the include tag my
docs were building fine).
/// <include file='Command2.xml' path='MyDocs/... more >>
A question about Dispose method
Posted by xyu at 7/21/2004 9:33:01 PM
Hello,
First I would like to thank anyone who helps me, much appreciated.
I'm a c++ programmer just started using c#. I'm writing some big hash table so I want to actively take my object off the heap and release the memory when it's deleted from the hash table so that GC recollection does not ... more >>
What's the easiest way to..user define class...datagrid..paging..sorting..
Posted by Henry at 7/21/2004 8:48:18 PM
I have a large number of user define class objects and want display in a
datagrid and able to perform paging and column sorting. It seems using
DataView is the easiest way but the objects are not from database. I tried
to serialize it to xml stream and pass it to dataset but I'm sure if it's
the... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
IDisposable, "using" keyword and "Close()" methods
Posted by Willem van Rumpt at 7/21/2004 7:11:41 PM
Hi all,
coming from an unmanaged programming background, I took my time to
sort out the IDisposable and finalizer patterns. Just when I thought
I had it all conceptually neatly arranged, the "Close()" methods reared
their ugly (at least it would seem...)heads.
I was happily delving away in th... more >>
[Beginner] Arrays of variable length in c#
Posted by Flix at 7/21/2004 6:45:38 PM
In C++ the standard classes vector and deque define an array of real-time
variable length (items can be appended or removed to a vector, modifying its
length).
Is there a class in C# that performs the same functionality (probably a
ListBox control can perform it, but it's not a standard soluti... more >>
OpenFileDialog from code-behind file
Posted by John at 7/21/2004 5:59:26 PM
Hi all:
Is it possible to use an OpenFileDIalog from an ASP.NET application code
behind file teh same way a Windows Application can?
Thanks.
John.
... more >>
DB Location
Posted by Ed_P. at 7/21/2004 5:45:02 PM
hello,
I have created a simple windows form application that uses an access database as it's backend. The database will be in the same directory as the EXE file that is generated. Since the two files are in the same directory is there a way that I can get the path to the database...I have been ... more >>
Global Try/Catch statement and error handling
Posted by VM at 7/21/2004 5:36:08 PM
Is it possible to intercept all exception errors into one Try...Catch? I've
tried wrapping Application.Run() in a Try...Catch, but it doesn't seem to
work all the time.
Thanks.
... more >>
MessageBox can be localized?
Posted by Jerry at 7/21/2004 5:08:06 PM
Hi,
MessageBox can be localized? It's say, Can I set the language
of "OK", "Cancel" button.
... more >>
Win32 API call from C# - ExitWindowsEx
Posted by Jeremy Horton at 7/21/2004 4:27:00 PM
Hi,
New to C# and trying to build an app that has a logout button.
I just want the user to be able to log out of their Windows session from
within the Windows Form.
I have;
[DllImport("user32.dll", CharSet = CharSet.Auto)]
public static extern bool ExitWindowsEx(string teststring1, int tes... more >>
How to Post back OBjects and remember State
Posted by RSB at 7/21/2004 1:48:18 PM
Hi Every One,
How do i create Objects and then remember the state of the Objects once we
do the post back.
Here is what i am trying to Do. .
I have to objects. A object Called CollegeClass with the Following Fileds.
ClassID,
ClassName,
StartDate,
EndDate,
Comments,... more >>
Working With Objects: Any Good Documentation Or Book?
Posted by RSB at 7/21/2004 1:23:19 PM
Testing for an object
Posted by Lance at 7/21/2004 1:12:15 PM
Hi,
How do you test for an object existing in C#? C# seems to differentiate
between 'null' and non-existance. In other languages I could test as so:
if(ex.InnerException.StackTrace != null)
nvc.Add("** INNER EXCEPTION", ex.InnerException.StackTrace.ToString());
But an exception gets t... more >>
xml documentation
Posted by Mark at 7/21/2004 12:35:01 PM
I have two projects in a solutions. One is a class library and the other is
a web application that uses the class library. The class library has it's
project properties set to create an XML document summarizing the ///
comments. These are viewable when writing code within the class library,
a... more >>
Passing an array to a function as a string parameter
Posted by Alex Munk at 7/21/2004 12:30:02 PM
I would like to be able to pass a 2-dimensional array to a function as a string parameter. In the called function I would like to be able to convert the string back into a 2-dimensional array. Example
Function1 {
int [,] TheArray[10,10];
Function2(TheArray.ToString();
}
Function2 (strin... more >>
Do not want console app to receive a keystroke and then pause
Posted by GG at 7/21/2004 12:24:46 PM
I have a console app that when it is run and I press a key
then it freezes till a press another key gain.
Is there a way to avoid it that is the keystrokes do not pause the app?
Thanks
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get re... more >>
finally block is not executed after StackOverflowException
Posted by Vladimir Arkhipov at 7/21/2004 11:30:29 AM
Hi,
I noticed that finally block is not executed once I got
StackOverflowException.
Is that a known feature or a bug?
... more >>
Convert from encoded stream
Posted by Loui Mercieca at 7/21/2004 11:25:44 AM
Hi,
How do you convert from an encoded stream ( ex. < ) to xml (ex. < ). I
need a reliable sytem ( not by replacing text ). I have found a method:
XmlTextWriter.WriteString Method(), which does exactly the opposite.
Thanks,
Loui Mercieca
... more >>
BindingManager detecting new row
Posted by PeterZ at 7/21/2004 11:24:43 AM
Hi,
I have two tables and a dataRelation (win forms project). The dataRelation
is bound to a dataGrid. I'm trying to detect when a user navigates to a new
row in the datagrid so I can obtain a new record ID number from the db.
Screenshot:
http://www.insightgis.com.au/web/stuff/new_row_det... more >>
Functions
Posted by Rookie at 7/21/2004 11:02:08 AM
Is it possible to have functions in a C# program that are not member
functions of a class? If yes can someone post links to articles/tutorials on
this.
Thanks.
... more >>
DLLs
Posted by Rookie at 7/21/2004 10:59:23 AM
Is it possible to write DLLs in C#? If yes can someone give some links to
articles/tutorials that deal with this subject.
Thanks.
... more >>
IISIPSecurity
Posted by andrew lowe at 7/21/2004 10:55:50 AM
Hi,
This was originally posted in framework.interop but am trying here now.
I'm trying to define the IISIPSecurity interface described at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iissdk/iis/ref_prog_iaorefiipsec.asp.
I'm getting a NullReferenceException when i try to ... more >>
ListView control ?
Posted by John S at 7/21/2004 10:31:34 AM
How can you
1.) Get the text of an item selected?
2.) Get the index number of the item selected?
3.) Tell if the user clicked in a blank area
... more >>
Event listeners?
Posted by Deena at 7/21/2004 10:16:28 AM
Hi
How do I create event listeners? I would like to listen for the "GotFocus"
event for each control on a form.
Deena
... more >>
Listbox ?
Posted by John S at 7/21/2004 9:27:35 AM
How can you
1.) Get the text of an item selected?
2.) Get the index number of the item selected?
3.) Tell if the user clicked in a blank area?
... more >>
C# language guide
Posted by Ruslan Popov at 7/21/2004 9:23:05 AM
Hello,
Some time ago I saw an MS Word document on C#, named "preliminary language
information" or something like that. That was a comprehensive guide to the
language, written by (and for) MS' developers. Now I want to find it, and
can't - neither at my computer, nor in the Internet. If somebod... more >>
Cannot convert from object class to object
Posted by fuzzylogic NO[at]SPAM gmail.com at 7/21/2004 9:20:47 AM
Hi All,
Probably a silly question to those who know, but i'm a noob with C# :D
I have a COM component written in VB6 I'm trying to interop to from C#
(using the IDE 'Add Reference' capability to register the component).
Some functions work ok, but I have one function that takes a class
from t... more >>
Socket state
Posted by Marko Vujica at 7/21/2004 9:02:41 AM
How can I get the state of socket like "netstat -a" does (CLOSE_WAIT,
FIN_WAIT_1, etc.)? Poll method of Socket class does not give much
information. Obviously I'm not very familiar with socket programming.
Thanks.
Marko
... more >>
image saving
Posted by Viktor Popov at 7/21/2004 8:59:29 AM
Hi,
I' like to ask if someone kows how could be saved an image filepath in DB
instead the whole IMAGE using ASP.NET/S#/MS SQL?
Let's say we have:
PicturesTBL
----------------
ID INT
PIC IMAGE
Could be use PIC VARCHAR(50) or something to save the filepath and to store
the ... more >>
Undisposed instances of BinaryReader in localized forms
Posted by Robert Misiak at 7/21/2004 8:51:05 AM
I've been trying out the .NET Memory Profiler
(http://www.scitech.se/memprofiler/) and I found an excessive number of
undisposed instances of BinaryReader after opening and then closing various
forms. The thing that these forms have in common is that they are localized
for both English and Dutc... more >>
Installing a font using C#
Posted by Johan Mårtensson at 7/21/2004 8:26:25 AM
Hi
I was wondering if anyone knows how to install a system font using C#?
I know it doesn´t do the trick to simply copy the font to the font
directory, it just doesn´t become active.
Any ideas?
/Johan
... more >>
Business Objects and Async Message Based Systems
Posted by msnews.microsoft.com at 7/21/2004 7:36:04 AM
On of the nice aspects of a business object and localizing all the logic for
validation / updates in a single object is that it lightens the load for the
UI deveoper not to have to worry about such issues.
So, for example, lets say that an Order that isn't an odd lot can't be
submitted to the ... more >>
Scaling a bitmap correctly?
Posted by James Dean at 7/21/2004 4:22:46 AM
I want to scale my bitmap. I use interpolation mode(Bicubic) and
scaletransform of the graphics class. Does this automatically ensure the
best quality when i scale my image. Do i need to do anything else?.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in... more >>
SQLNS in C#
Posted by Magnus MÃ¥rtensson at 7/21/2004 3:09:05 AM
Greetings!
I want to try to use SQLNS (SQL NameSpace - not Notification Services) since I am going to make a winform with a TreeView of an SQL server tree.
The samples from MS are in either VB och C++:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sqlns/ns_samp_2rhv.asp
... more >>
UI freezes
Posted by pkavon2000 NO[at]SPAM yahoo.com at 7/21/2004 2:57:55 AM
Hi Guys,
I have an application which uses COM object to connect to a "pick"
database.
With this object I can run some select statemnts, however when the
select command is send to the server, my UI freezes and waits for the
connection to return result.
I tried to run the command in separate thr... more >>
Access to a DataGrid in MultiPage from cs
Posted by T.H.M at 7/21/2004 1:53:55 AM
Hello
I have a web form with MultiPage that contain DataGrid
My HTML code in the aspx page:
<iewc:multipage id="MP1" style="Z-INDEX: 101; LEFT: 225px;
POSITION: . . ."/>
>iewc:PageView id="processData1/">
>asp:DataGrid id="DG2" style="Z-INDEX: 110; LEFT: 699px;
POSI... more >>
RadiobuttonList databind
Posted by nci at 7/21/2004 1:24:01 AM
Hey,
In ASP.NET I have a Radiobuttonlist server control.
I do databinding to fill up :
this.RBList.DataSource = Methods.Items;
this.RBList.DataTextField = "Desc";
this.RBList.DataValueField = "Id";
this.RBList.DataBind();
this.RBList.SelectedValue = "01";
I want that one of the radiobu... more >>
Blank tab page when switching tab pages inside a thread
Posted by johannblake NO[at]SPAM yahoo.com at 7/21/2004 1:08:54 AM
The following is a bug I have discovered using tab pages and threads
and I am looking for a workaround.
Create a new Windows Forms application and add a tab control with two
tab pages. Add a label to each tab page. On the first tab page add a
button. When the button is pressed the code behind ... more >>
rowfilter
Posted by Rosario at 7/21/2004 1:03:22 AM
Hi at all,
can I to apply a set of expressions at a rowfilter
property of a dataview object?
I would want to extract from a dataset a set of rows that
satisfy more rowfilter expressions.
Thanks!
... more >>
Storing objects in Combo and List box
Posted by jay at 7/21/2004 12:25:10 AM
I have a structure:
public struct DATA_PAIR
{
public int ID;
public string Value;
public DATA_PAIR(int id, string val)
{
this.ID = id;
this.Value = val;
}
}
I have a combo box and I'm adding items:
....
ArrayList locations = new ArrayList();
locations.Add(new ORCASettings.Commo... more >>
Dialogobox in ASP.NET
Posted by Nic at 7/21/2004 12:16:03 AM
Hey,
Is it possible to direct me in the right way with following problem :
I have an ASP page with some input and a button.
When I click the button I go to the server and do some business logic. This business logic results in an OK or a fault.
I want that the fault is going back to the clien... more >>
Need explanation
Posted by Avi at 7/21/2004 12:11:02 AM
I thought that this code means that
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="ArlDbAccess"
publicKeyToken="b482d26a27af5b2d"
culture... more >>
|