all groups > c# > may 2004 > threads for friday may 28
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
ListView with Checkboxes
Posted by Mike at 5/28/2004 11:18:44 PM
Hi,
When trying to remove the icon from a ListViewItem (see code below), the =
icon does not always disappear. Instead, if I use another index (1, 2, =
etc.) then the correct icon appears. I was thinking that maybe the value =
"-1" is not correct. But what should be the value if someone does... more >>
Touch Screen and .NET
Posted by The Bear at 5/28/2004 11:07:33 PM
Is there any documentation for creating a touch screen application using
c#. Any information anyone has would be great
The Bear.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!... more >>
BinaryWriter/Reader question
Posted by Filip Strugar at 5/28/2004 9:42:51 PM
Considering that the BinaryWriter/BinaryReader object closes the underlaying
stream upon being gc collected, is the following code correct, and if it is
what is the reason preventing BinaryWriter object garbage collection after
the WriteSomething method is executed?
----
using System;
us... more >>
mysql?
Posted by Sam at 5/28/2004 8:58:29 PM
Can C# connect to a MySQL dbase?
... more >>
Simple: Class casting question?
Posted by Peter at 5/28/2004 8:31:02 PM
Hello
Thank for reviewing this question. I would like to know why I am getting a syntax error. For example
public class
public class B : public
Init(ref A
B b=new B()
Init(ref b); // compiler erro
Init(b); // leave off both "ref" and it compiles fine
if I hav... more >>
Windows Service
Posted by msnews.microsoft.com at 5/28/2004 8:26:45 PM
Hello.
I want to know how can I use Windows Servise in my program?
I know how to create Windows Servise application, but I can't use Windows
Servise component which I'm adding to my existing Windows Application.
How can I use or install it?
What is the goal of adding Windows Service class to th... more >>
datasets on multiple forms
Posted by Grant at 5/28/2004 7:17:02 PM
Sorry for all the posts - Im new to c# and oop and and having a tough time
geting my head around some of this stuff. (I tell you Im surprised my
monitor has lasted this long, Ive been tempted many times to put the
keyboard through it)
I have this dataset on my main form which i need exposed... more >>
SQL Bulk load - creating Schema file
Posted by Kiran at 5/28/2004 7:02:06 PM
Hi,
I want to back up my data in some table in SQL server and import it back
using Bulk Load of SQL server 2K.
I can use the following code to backup the data in XML
dataset.WriteXml(@"C:\Data.xml");
dataset.WriteXmlSchema(@"C:\Schema1.xml");
and following code to bulk import the same ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Can I get HTML generated by document.write()?
Posted by dterrors NO[at]SPAM hotmail.com at 5/28/2004 7:01:07 PM
Using the WebBrowser control, can someone load one of my web pages and
see the HTML that has been generated by document.write() javascript?
For example, if I have a page that has obfuscated javascript that does
a document.write(), I'm not concerned if someone can view that
javascript (because ... more >>
text to system.drawing.color mapping
Posted by andrewcw at 5/28/2004 6:31:02 PM
I have an xml file that I use to set values of DataGridStyles - header text, column width etc
I would also like to make the background color selected other items data driven
What is the smart way to associate and apply a color
string mybackground = "SandyBrown
but ...
objDGTS.BackColor=System... more >>
XPath problem
Posted by Mike at 5/28/2004 6:10:41 PM
Hi,
I am new to XML.
I have the following C# code, which cannot make work:
if (xml.getNodeText("servers:server[servers:name=3D'" + =
this.cboServers.Text + =
"']/servers:forums/servers:forum[servers:name=3D['" + forum + "']", =
m_ServersDoc) =3D=3D "1")
I am trying to access the... more >>
Read CSV file for OLEDB
Posted by Grey at 5/28/2004 5:09:47 PM
how to read a csv file with OLEDB...can anyone provide the =
connectionstring??
Million thanks... more >>
Confused Beginner Trying To Migrate From COM
Posted by ianLOSEatTHEaltispartnersCAPS.com at 5/28/2004 5:07:57 PM
Hello,
First and foremost appols for what must be the n-billionth "new
programmer" post you've had but if someone could see their way clear to
helping me, or just recomending some reading I would be most grateful.
I'm trying to come forward from the age of C++ services and COM... more >>
Data base in PDA: how to improve the time of update?
Posted by Vicente Nicolau at 5/28/2004 5:02:36 PM
Hello
I'm making a PDA project that uses a data base. That data base is saved in a
xml file. When the application starts up, I load the xml file in memory. The
application makes changes in the data base (which is in the memory of the
PDA) and finally, when the program closes, it saves all data... more >>
how to: application wide keyboard hook
Posted by ~dr-sci-fi at 5/28/2004 4:49:43 PM
hi all,
problem: i have several controls on my form which can get focus, like
buttons/combos. i have to catch keyboard events for special keys like Alt-F1
on my form, for that, i simply implemented keydown event handler on my form
control, but when some other control has focus, all keypress ev... more >>
who on earth has done a complete win32 api wrapper for C#?
Posted by ~dr-sci-fi at 5/28/2004 4:49:24 PM
looking for a comprehensive version of most common API functions used in
..Net, sample below:
===============================================================
using System;
using System.Runtime.InteropServices;
namespace ApiWrapper
{
/// <summary>
/// Summary description for Win32API.
... more >>
System.DirectoryServices
Posted by news.microsoft.com at 5/28/2004 4:30:57 PM
Hi,
Anyone there who can give me a jump start for retrieving the groups a user
belongs to???
Since now i tried this but keeps on giving an error on line
(listBox1.Items.Add("Groups to which {0} belongs:"+ oUser.Name);
The oUser object is returning an error " AdsObject <error: an exception of
... more >>
Logging in and out...
Posted by Daniel Bass at 5/28/2004 4:30:12 PM
Hi,
I've a situation where my application has to manage usernames and passwords,
and after a certain amount of idle time, the application will log the
current user out, (assuming they've left without logging out manually) and
prompt for a new log in.
Is there any way to do this, without hav... more >>
Calling method in child form from MDI form?`
Posted by VM at 5/28/2004 4:27:09 PM
How can I call a method in a child Form from within the parent MDI form? The
child form has a Save method but I'd also like to give the user the
opportunity to "save" from the MDI form also. They'd both run the same
method; the only difference is that one calls it from within the class that
draw... more >>
Multiline in textBox
Posted by Alberto at 5/28/2004 4:24:41 PM
I want write in two different lines in a multiline textBox. I'm doing this:
txt.Text = @"Hellow\nBye";
but it doesn't work.
How can I do it? Thank you
... more >>
Function Call in other exe file
Posted by msnews.microsoft.com at 5/28/2004 4:10:38 PM
Hello.
Can I execute function in my code from other exe file (exe file is writen by
me)?
I also want pass some parameters to the function.
How can I do this?
... more >>
C# script (from XML)
Posted by Vincent Finn at 5/28/2004 4:03:30 PM
Hi,
I have a C# function being called from an XML file
I have hit a problem access a COM component
I use CreateObject to create the object but I can't access its
functions
object tchart = CreateObject("TeeChart.TChart");
tchart.Export();
If I swap to using VB.Net I can do this fine bu... more >>
Old Component in C#
Posted by kjartan at 5/28/2004 3:58:18 PM
Hi,
I've got a digital IO card that has a dll and a lib file to use with C++.
How Can I use this in C#?
thanx
--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/... more >>
Replace text with bookmark in word document
Posted by adam lital at 5/28/2004 3:53:13 PM
Hi,
I have word document and i want to replace a specific text with a bookmark
using code.
Example:
in the document i have the text [ClientName] and i want to replace this to a
bookmark called ClientName.
Thanks,
Adam.
... more >>
Nested classes
Posted by B0nj at 5/28/2004 3:30:57 PM
I've got a class in which I want to implement a property
that operates like an indexer, for the various colors
associated with the class.
For instance, I want to be able to do 'set' operations like
MyClass.MyColors["Background"] = Color.Green
or, a 'get', such as
Color forecolor = MyClass.MyCo... more >>
NameObjectCollectionBase
Posted by William Stacey [MVP] at 5/28/2004 3:22:31 PM
What is the deal with NameObjectCollectionBase? It allows duplication keys
to be added to the hashtable
using System;
using System.Collections;
using System.Collections.Specialized;
namespace ns
{
/// <summary>
/// Summary description for HashListNO.
/// </summary>
public class Ha... more >>
datasets
Posted by Grant at 5/28/2004 3:20:25 PM
I created a typed dataset comtaining 6 tables. I have added a new column to
one of those tables but when I re-generate the dataset I get errors in my
code. It seems as though the dataset loses its type. One of the functions
finds a row according to an ID column, which goes like this;
Datase... more >>
Serializing and Deserializing Value Types to String
Posted by Earl Teigrob at 5/28/2004 3:19:35 PM
I am saving and restoring value types such as Int32, DateTime and Boolean in
strings. I was wondering if there is a mechanism build into .NET for
serializing and deserializing these to string format. I can, of course,
serialize a class to a file, either binary or XML, but this is not what I am
l... more >>
How to read/write extended file properties with c#
Posted by Markus Brenner at 5/28/2004 3:19:30 PM
Hi there!
Hope anybody can help. I want to at least read (maybe write) the extended
file properties of office documents like winword, excel, ....
I've tried two ways till now, one by opening the responding application
(this method was to slow for my needs).
The other way was using the dso... more >>
c# as ActiveX
Posted by DarekB. at 5/28/2004 3:17:54 PM
Elo,
how to put my own form as object on a web page. (you know, as activex,
4example simple game)
how to write form.
how to write index.htm.
Please help, on private if you please
dariuszbz-----nothik----@wp.pl
Reag @ big tnx
debe
... more >>
Quick Event question
Posted by Doug at 5/28/2004 2:52:17 PM
Hi, I'm having a mind block...how do i do this?
I have an Event that I want to raise called Event1(object sender,
MyEventArgs e)
I want to raise it in another event where the parameters (EventArgs) are
different. How do I do this?
So here is what i have:
private void KeyPressed (obj... more >>
Streaming files over http
Posted by Stig-Arne Basberg at 5/28/2004 1:52:46 PM
I am working on a project where I want to send at file from a Win CE device
to a receiving PC using the HTTP protocol.
For testing purpose I made a simple test app on my PC (code below).
The problem is that only the first 8760 bytes of the file is transfered. I
have tried several times and t... more >>
forms programming qns
Posted by harrylmh at 5/28/2004 12:59:48 PM
Hi,
how do I get the line number the cursor(the one blinking) is at in a
multiline textbox?
Thanks... more >>
Move bytes from source to dest.
Posted by carmen at 5/28/2004 12:59:28 PM
I don't know if it's possible some kind of "move" function to move bytes
from a source to a destination automatically.
Thanks
Carmen
... more >>
how to integrate "Windows Picture Viewer and Fax Viewer" (shimgvw.dll) of Windows XP in my c# app?
Posted by ~dr-sci-fi at 5/28/2004 12:59:26 PM
hi all,
i want to use "Windows Picture Viewer and Fax Viewer" in my c# app to
manipulate images, picture viewer is found as a DLL (shimgvw.dll) in
System32 folder of
WinXP.
can some one tell me how can i use it in my C# app?
TIA
- sci
... more >>
Save expand state TreeView
Posted by rsam NO[at]SPAM postmark.net at 5/28/2004 12:56:07 PM
Hi,
I have a treeview control that is updated every 30 seconds. The
treeview nodes are cleared and new nodes (same number of nodes and
hierarchy) are added to the treeview. Now I need to save the state of
the expanded treeview so that I can apply the same expanded state to
the updated treevi... more >>
extended foreach loop
Posted by cody at 5/28/2004 12:40:03 PM
currently, foreach takes a IEnumerable as parameter, so we can do:
foreach (int i in array){}
what about an additional form of foreach that takes an IEnumerator as
parameter, so we can do:
foreach (int i in array.SkipIterator(2)) // get every 2nd item
or
foreach (int i in array.Range... more >>
REGEX help
Posted by John Baro at 5/28/2004 12:29:57 PM
I need to determine when multiple fonts are selected in a richtextbox.
A font is indicated by \fcharset(N) where (N) is a number. (To the best of
my knowledge)
I can use this statement
int Matches = 0;
for(Match m = Regex.Match(rtfTextEdit.SelectedRtf, @"\\fcharset\d");
m.Success; m = m.Ne... more >>
Lau/XML cs interface
Posted by Robert Blackwell at 5/28/2004 12:04:47 PM
There is a game that has it's interface built on XML and Lau scripting. What
we are wondering is if we can us C# with xml/lau. I know xml isn't a
problem, but I have never heard of Lau until this game announced their UI
customization. Our goal is to start extracting game information such as unit
... more >>
serialization and deserialization
Posted by frazer at 5/28/2004 11:36:03 AM
hi
How do i serialize and deseriale data to and from datasets.
Do i have to use XmlSerializer?
thanx
... more >>
Unload assembly C#
Posted by lpinho NO[at]SPAM oninet.pt at 5/28/2004 11:32:31 AM
Hi There,
I've got a server that is waiting for requests, these request
correspond to calls to objects that are specified in assemblies stored
in the GAC.
To do this, I use reflection to call the methods.
Now, when I'm trying to optimize the code, I noticed that the
assemblies that ar... more >>
Installing new component in Visual Studio .Net ToolBox
Posted by Javier Ros at 5/28/2004 11:23:05 AM
Hi guys!, I´m tring to install my own component in the Visual Studio .Net
ToolBox,
I have tried with this code:
// Create a EnvDTE object.
System.Type t = System.Type.GetTypeFromProgID("VisualStudio.DTE.7.1");
object obj = System.Activator.CreateInstance(t, true);
EnvDTE.DTE env = (EnvDT... more >>
ASP->ASP.NET conversion of document.title and document.getElementById - C# newbie.
Posted by Frank Nero at 5/28/2004 10:52:16 AM
In my ASP HTML code I have:
<SCRIPT language=JavaScript>
<!--
function DispTitle()
{
document.title = "New Title";
...
document.getElememtByID("par1").innerHTML = "New Text of the
Paragraph";
}
//-->
</SCRIPT>
How to acomplish the same effects ins... more >>
serialization prob
Posted by frazer at 5/28/2004 10:48:46 AM
using System;
using System.Runtime.Serialization;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;
namespace MySerialize
{
/// <summary>
/// Summary description for MySerialize.
/// </summary>
[Serializable]
public class MySerialize: ISerializable
{
string name ... more >>
.NET forms on webpages without ASP
Posted by Ben MacLeod at 5/28/2004 10:23:13 AM
Just wondering if there was an easy way to drop a .NET Windows Form on a
webpage in the same way that you can with an ActiveX object? The proviso is
that we don't want to have to use an ASP because we don't want our users to
have to install Inetpub.
Cheers,
Ben
... more >>
user account can retrieve groups?
Posted by Hayato Iriumi at 5/28/2004 10:17:38 AM
I'm trying to come up with a function that returns boolean to check to see
if the combination of username and password can actually retrieve groups
from active directory in a smart way. The signature looks like this.
public static bool CanAccountGetADList(string Domain, string Account, string
... more >>
User Control is consuming my Paint messages. (CF)
Posted by Duncan Mole at 5/28/2004 10:01:57 AM
Hi,
I have created a control which draws a title bar and provides a drop down
menu for a Smart Device Application. It seemed to work fine until I came to
add an event handler to act on Paint messages in the form which has drawn
the control. Evidently, the control is consuming all of these mess... more >>
print pdf via website
Posted by Roel at 5/28/2004 9:25:26 AM
Hello
I try to pint a pdf from a .net webapplication. Therefore I use GhostScript.
When I execute the following line via "start - run", the pdf is printed
correctly:
c:\gs\gs8.14\bin\gswin32c.exe -dNOPAUSE -dBATCH -sDEVICE=ljet4 -sOutputFile=
"%printer%\\SRV01\bezvntprt02\" c:\208.pdf
My... more >>
How can i get all the table names from a databse ?
Posted by ¹ùÑÇ·æ at 5/28/2004 9:18:01 AM
in my app, i need to fetch all the table names in a database ,which SQL
statements i can use ?
Thanks for any advices !
Albert Guo
Jiangsu ,China PRC
---------------------------------------------
... more >>
GDI+ Region Union Problem
Posted by MichaelTPaul at 5/28/2004 8:36:01 AM
Is anyone aware of the GDI+ region union problem especially in C#
Link to site below
http://www.opac.ch/bugs
Thanks
Michael Paul... more >>
Retrieve and Delete from EventLog
Posted by MC at 5/28/2004 8:17:39 AM
I am using Notification Services and C# Windows application. I set the
Notification Text to be logged in the Event Log. In my form i put an
EventLog component. Now how to retrieve what's written in the Event Log
in order to fill it in a dataset? and after retrieving it how to delete
it from ... more >>
How to get Datebase name and tables in sql-server?
Posted by ¹ùÑÇ·æ at 5/28/2004 8:17:02 AM
In my app,I want to bind Database names with a comboBox in order to
select which database i wanto open .
and I also wanto bind table names with a comboBox, So i can select which
table i wanto use !
how can i code in c# ?
Thanks a lot for any comments !
----------------------------------... more >>
Could C# in VS.net support Ethernet communication
Posted by dalewz NO[at]SPAM yahoo.com at 5/28/2004 7:15:06 AM
Hi,
I am thinking to use C# in MS VS.net to support GUI and
Ethernet communication. I heard that this is doable by opening a
socket. Could sb share more info on this?
Thanks. -Dale... more >>
Searilizing a treeView Control
Posted by meh at 5/28/2004 6:50:34 AM
I need to be able to persist a treeView to disk. I would like to save the
node text, tag, image and selected image. I have done this using vb but I
cant seem to translate from vb to vc#.
Can ne1 point me to documentation or samples that might help???
Thanks in advance
meh
... more >>
Colour datagrid scrollbars (ver: Spanish)
Posted by Jack at 5/28/2004 5:16:04 AM
Mi ingles es peor que el de Toro Sentado, espero que en español haya alguien capaz de entenderme y orientarme
Trabajo con Visual Studio 2003 y C#, he creado un control derivado de datagrid y he conseguido modificar la apariencia del datagrid, colores de columnas, fuente, estilo de cabeceras de fil... more >>
Colour datagrid scrollbars
Posted by Jack at 5/28/2004 3:41:04 AM
How to change the colour of my datagrid scroll bars in win forms and c#
Thanks
Jack... more >>
Screen Capture w/ Dual Monitors
Posted by Patrick at 5/28/2004 2:48:49 AM
need some code for getting screenshots from the secondary monitor on dual
monitor display.
Here's a bit of the code for a screen from the primary monitor.
Bitmap MyImage = new Bitmap(Screen.PrimaryScreen.Bounds.Width,
Screen.PrimaryScreen.Bounds.Height, g1);
For the second monitor I can ... more >>
Calling a static method in another AppDomain
Posted by Chris at 5/28/2004 1:46:02 AM
Hi
I have a scenario where I've created another AppDomain to dynamically load a DLL(s) into. In this newly loaded DLL I want to call a static method on a class. The problem arise is that I have the same class/static method definition statictly linked to my EXE and when I call InvokeMember(...), ev... more >>
Screenshot From Dual Monitors
Posted by Patrick at 5/28/2004 12:59:35 AM
I need some code for getting screenshots from the secondary monitor on dual
monitor display.
Here's a bit of the code for a screen from the primary monitor.
Bitmap MyImage = new Bitmap(Screen.PrimaryScreen.Bounds.Width,
Screen.PrimaryScreen.Bounds.Height, g1);
For the second monitor I can... more >>
Structure Problem
Posted by Joshua Russell at 5/28/2004 12:37:51 AM
Hi,
I create a multiple instacne class (I beleive this is callecd a =
structure) with the following line of code:
private Convo[] convos =3D new Convo[100];
I want to be able to itterate through the 100 instances of the class and =
see which ones I have initialised.
Can anyone tell me how ... more >>
Verrry strange problem with viewing data from msSQLserver on asp website
Posted by smoke at 5/28/2004 12:35:03 AM
hello,
on my website i'm showing all the products in the database in a list, today
i added some products with a program (still in dev.). All the added products
are showing up in the table, but NOT on my website. Only the product that i
added some days ago are showing up on the site..
It is ... more >>
lost values on button click
Posted by das at 5/28/2004 12:31:03 AM
Hi All,
I'm using text boxes and option button on the form. text boxes are server control and options buttons are html controls with runat server property="server". When I click the button. I selects only the last radio button of that group. It loses the value that I selected.
I don't know that... more >>
|