all groups > c# > september 2004 > threads for thursday september 30
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
AxWebBrowser body background
Posted by Richard Steele at 9/30/2004 11:38:53 PM
Can anyone help me
I am developing an application runs on a PC (client) only. For graphical
reasons it was decided that the content would be displayed in a Browser that
is embedded in a Windows Forms application (VS net 2003) c#
I have a Windows Form that uses a webbrowser (AxWebBrowser)... more >>
Event from other thread
Posted by Dirk Reske at 9/30/2004 11:13:43 PM
Hello,
I have a class, which starts a new thread.
from this thread events can be fired.
How can i fire this event in the class-creator-thread?
thx
... more >>
List of all Assemblies
Posted by Bahram Moinvaziri at 9/30/2004 11:02:21 PM
Hello is there anyone out there with my problem :-). I am a C# beginner
have read some of the docs. Does anyone know where and how i can find a
list of all of the Assembly available through VS .NET 2003?
thanks,
Bahram
*** Sent via Developersdex http://www.developersdex.com ***
Don't jus... more >>
vs general question compiling and running 2 apps at same time
Posted by Tom at 9/30/2004 10:06:22 PM
hi friends
I have 3 projects under one solution I want to be able to compile and run
(debug) all 3 solutions at once is that possible within vs ? its a
client/server based application that I am developing and I'm tired of
switching between server and client all the time to start it up one by o... more >>
remoting client -> interface based question
Posted by Tom at 9/30/2004 10:04:21 PM
I have a question.. I am using remoting but on my client side I chose to use
an interface. As a result I was wondering if its still possible to place the
configuration details into a xml config file ?
I have not seen any examples of this does anyone know how I can do this ?
All I've seen are e... more >>
Debuging by value
Posted by Jason at 9/30/2004 6:08:41 PM
In the c++ debugger I could give it a memory address of some data and it
would break when that data changed. It is very helpful when you have a
single value change of a large amount of code and you just want to know
what/where/why its changing. I tried to hook it up like I in C++, opening up
the... more >>
is there a method to specify project option "Output File"
Posted by Nicolas B at 9/30/2004 5:24:32 PM
Hi
under VS.Net 2003 how can I specify the parameter "Output File" of a library
(see Project Property Pages \ Common Properties\General\Project\Output File)
I want to change the default extension which is for a library ".dll"
Thanks for your replies.
... more >>
hashtable sorting
Posted by Vidyanand Kulkarni at 9/30/2004 4:48:20 PM
Hello everybody,
can anybody tell me how how he sorting on hashtable is done in c#
thanking in advance
with regards
vidyanand kulkarni
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
escape the ' and " chars to insert them onto an Access database
Posted by Luminal at 9/30/2004 4:26:20 PM
Greetings
I'm having some problems on my C# application. I'm using an access
database and I'm not able to do select queries with the ' character.
My code is this:
// some previous code like open connection
string sqlStatement="SELECT oid FROM formatos WHERE formato='cd\\'s'";
myComm... more >>
Bug in C# File access code?
Posted by vs_raghuvamshi NO[at]SPAM yahoo.com at 9/30/2004 4:26:10 PM
I have a file that has been created using shared read/write access.
But C# code never is able to open this file for read and keeps
throwing "...cannot open file as it is being used by another
process...".
I verified that the file is indeed available for shared reading. here
is my code snippet... more >>
SP 1.1 .NET
Posted by Just D. at 9/30/2004 3:22:12 PM
I have SP1.1 .NET installed on my development machine where I write the code
and compile it. The production machine doesn't have this service pack for
1.1 .NET. Can it affect my Web Application? I hope that I found a reason of
my issue and I'm trying to understand why same program works in dif... more >>
Cannot Cast from ListViewSubItem
Posted by frandalc NO[at]SPAM swbell.net at 9/30/2004 3:17:03 PM
Hi.
I have a custom class which inherits from
ListViewItem.ListViewSubItem.
It works fine to add new subitems to a listview, but when I try and
get them out it tells me that it is an invalid cast. So, it let me add
the custom item but won't let me get it back out? What's wrong here?
Could ... more >>
website with 2 well documented medium-sized open source projects
Posted by Christophe Marcel at 9/30/2004 3:12:56 PM
Hello,
I have a couple of well documented projects that are open-sourced and well
documented.
One is an application to convert Oracle schemas into SQL-Server databases,
the other will copy all the data from one Oracle schema to another. The
website is http://cmarcel.net (you will get re... more >>
DropDownList problem
Posted by Viktor Popov at 9/30/2004 2:31:45 PM
Hi,
I use a DropDownList for presenting information from DataBase. Here it is
the code:
private void Page_Load(object sender, System.EventArgs e)
{
if(!Page.IsPostBack)
{
SqlConnection conn = new SqlConnection("Data Source=BLEK;Initial
Catalog=Estate; User ID=@@@; Password=@@@@@");
SqlD... more >>
Integer value from a text box.
Posted by Robert Wilson at 9/30/2004 2:19:18 PM
Hi,
I'm a little new to C#, so bear with me. I have a text box on a form,
and I want to be able to get an integer value of whats in it.
In VC++ you just set the text box property to be numerals only, and then
call GetDlgItemInt(); and then it's plain sailing.
There must be an easy way in... more >>
Embedded resource file naming
Posted by richlm at 9/30/2004 2:09:05 PM
If I embed a resource with filename "test_cs.xslt" in my c# project,
Assembly.GetExecutingAssembly.GetManifestResourceNames works as expected.
If I change the filename to "test.cs.xslt" I get 0 items.
Is there a good reason for this behaviour or is it a bug?
... more >>
How to get instance Type from Type.GetType function
Posted by david.kao NO[at]SPAM opco.com at 9/30/2004 2:09:03 PM
I am trying to use Type.GetType(name of type in string format) to get an
instance Type. For example: Type t = Type.GetType("System.Data.DataTable").
I have no trouble to get a value type For example: Type t =
Type.GetType("System.String"). ... more >>
selecting/showing automatically a tabpage ???? Mytabcontrol.tabpages[0].select ????
Posted by genc ymeri at 9/30/2004 2:01:17 PM
Hi,
I have a tab control with several pages. How can I select pages
programmatically ???
I ran :
....................
Mytabcontrol.tabpages[0].select () or
Mytabcontrol.tabpages[0].show()
....................
but no page is changed.
Any idea ????
... more >>
MainMenu back color
Posted by Mohammad-Reza at 9/30/2004 1:57:17 PM
Hi
Please tell me how can i change the back color of main menu component.
Thanks in advance
... more >>
C# Express..
Posted by Paul Johnson at 9/30/2004 1:35:06 PM
I just downloaded and install C# express and all is well. But, I don't
understand the IDE. Trying to read the documents. I follow a hyperlink but
can't figure out how to get back to where I came from. It is like a broswer
but the back buttons don't work. The only think I know to do is kill... more >>
Which Collection To Use?
Posted by Guadala Harry at 9/30/2004 1:22:57 PM
I'd like recommendations for which collection to use to store name/value
pairs. What I'm doing is retrieving a simple name/value pair list from the
database via stored procedure that returns the pairs in a specific order
(and never more than 25 name/value pairs). In the application, I need to be
... more >>
DirectoryInfo.GetFiles is broken
Posted by Jonathan Allen at 9/30/2004 1:19:30 PM
MSDN> "The matching behavior of searchPattern when the extension is exactly
three characters long is different from when the extension is more than
three characters long. A searchPattern of exactly three characters returns
files having an extension of three or more characters. A searchPattern of
... more >>
datagrid problem
Posted by Morten at 9/30/2004 1:05:28 PM
Hi!
I have a problem displaying some values in a datagrid. I have an array that
consists of a number of objects. Each object has 2 properties: Name and a
list of web addresses. (e.g: Name: "Test", URLs: {"address1",
"adress2"...}). How can I implement this using Visual Studio?
I'd also l... more >>
Fieldname refelection
Posted by Microsoft Public Groups at 9/30/2004 12:57:00 PM
Hi,
I am trying to find a way of accessing a custom attribute defined on a field
from the actual field reference as opposed to the symbolic name of the
field. As that probably doesn't make sense I will show what I am trying to
do:
class SomeDatabaseObject : DatabaseObject
{
void Qu... more >>
Using "rows affected" to manipulate code
Posted by kiki NO[at]SPAM dyky.co.uk at 9/30/2004 12:25:16 PM
Hi,
just a small question. I've just looked at a friends code and he's done this:
int rowsAffected = sql.ExecuteNonQuery("stored_procedure", cmdParams);
if(rowsAffected < 1)
{
return false;
}
else
{.......
}
of course the code broke as soon as i put SET NOCOUNT ON in the sp..
is... more >>
Windows service Rights question
Posted by Steve Long at 9/30/2004 12:11:34 PM
In writing a Windows service with .NET, I'm noticing that the process for
some services can not be killed with specifically stopping the service. If
you try to kill the process with, say task manager, you get an access denied
message. I just wrote a test service and I can kill the process for thi... more >>
question about extending and combining interfaces
Posted by Flip at 9/30/2004 12:03:52 PM
I'm looking at the O'Reilly Programming C# book and I have a question about
extending and combining interfaces syntax. It just looks a bit odd to me,
the two syntaxes look identical, but how does C# know which is extending and
which is combining?
interface IStorable{
void Read();
vo... more >>
Passing vb collection from C# to VB6
Posted by Tércio at 9/30/2004 11:53:05 AM
Hi there!
I'm having this problem and I'm not finding the solution for this.
I have a COM (VB6), that receives in a method a variant paramater. But this
parameter is treated internally as a collection. And I have a C# component
that is trying to pass this paramater to VB6. What do I have to do... more >>
strings between C# and mc++
Posted by Philip at 9/30/2004 11:43:09 AM
I am trying to return a string from a mc++ method back to an invoking C#
module.
In the invoking C# module I have the string defined as.... String
strString;.... in mc++ the method definition is like.... int function(String
*strString, String *strString1....)....etc
I am unable to use th... more >>
large ArrayList causes program to crash
Posted by stu_law NO[at]SPAM yahoo.com at 9/30/2004 11:39:01 AM
I have a small class of data values made up of ints and bools
totalling 25 bytes. Each of these 25 byte nodes is stored in another
class as an ArrayList with a few more ints. Typically there are around
400 nodes stored in each of these segment classes. - which makes each
segment occupy around 10... more >>
How to retrieve a handle/ID of a Process launched by Shell with DDEEXEC?
Posted by Fei Yuan at 9/30/2004 11:36:24 AM
Please forgive me re-posting this question since I wasn't clear in my
original post.
-------->
Starting an external process needs to pass it a ProcessStartInfo() object.
ProcessStartInfo has a property "UseShellExecute" that can open/print a
file. For example, here's a piece of code that ... more >>
[Newbie] NAnt help?
Posted by Einar Høst at 9/30/2004 11:24:55 AM
Hi,
Disclaimer:
I apologize if this is the wrong place for this type of question, but if so,
I don't know where the right place is and I'd be very grateful if someone
could point me in the right direction.
Question:
I'm trying to use nant to compile a project which provides database access... more >>
ReadLine!!
Posted by Vai2000 at 9/30/2004 11:05:57 AM
Hi All, back in VC++ we had flexibility of reading the line defined by our
own terminator...
get(buf,sizeof(buf),chTerminator);
Is there something similar in C#... My file is not terminated by new
lines...instead they are terminated by a special character..I want to avoid
doing a read byte by... more >>
How to swap two variable later?
Posted by Jongmin Lee at 9/30/2004 10:39:21 AM
Hi Everybody,
I have very simple code snippet to explain my problem.
Class "Swap" is construncted in "Main" with two initial
variables.
Later, "Swap" class is going to swap those two variables.
How to implement this Swap Class?
Because C# doesn't have pointer, I can't do.
Please give m... more >>
Need help playing an AVI
Posted by Shelby at 9/30/2004 10:15:04 AM
I would like to embed an AVI then play it. I can right-click on my project,
add an existing item (the avi file), and have it show up in my solution
explorer. But how do I create an instance of it in order to pass it to the
axAnimation control (which wants a path and file name)? Any help wou... more >>
Error on running PerfFormattedData queries
Posted by Christopher Attard at 9/30/2004 9:54:42 AM
Hi, I'm trying to run the following WQL using WMIC from command prompt:
wmic PATH Win32_PerfFormattedData_PerfProc_Process GET =
IDProcess,VirtualBytes,WorkingSet
and it's returning something like:
=20
ERROR =3D 0x80041010
Description =3D Invalid class
Facility =3D WMI
instead of t... more >>
RTF coding
Posted by NuBBeR at 9/30/2004 9:54:37 AM
I need to know how to detect newlines in a rtf. I am trying to replace
newlines with "</P><P>" i have already tried replacing "/n/r" and "/n" and
System.Environment.Newline and none of them are working.
... more >>
DataRow specialization
Posted by Marcel Sottnik at 9/30/2004 9:43:46 AM
Hello group
Maybe this is not the right NG, but this problem seems to me to be more
language related than ADO.NET.
How can I write the constructor for specialization of DataRow which will
take a datarow as parameter. Something like:
class MyDataRow : DataRow
{
public MyDataRow(DataR... more >>
Open new web page with Response.Redirect or something else?
Posted by eieed at 9/30/2004 9:43:07 AM
I have a web page that is designed to allow users to run crystal reports
which are then exported into PDF formats. Currently, when the user clicks
the "Submit" button there is some processing to build the PDF file and then I
use a Response.Redirect("Exported\\crystal_report_name.pdf)"; comman... more >>
load a string with XslTransform
Posted by m.paterniti NO[at]SPAM offnet.it at 9/30/2004 9:08:55 AM
how can I load a XSL string (not an xsl file!!) with XslTransform ???
If I use the code:
// Create a new XslTransform class and load the stylesheet
XslTransform myXslTransform = new XslTransform();
myXslTransform.Load("myFile.xsl");
it run, but I need load an XSL string:
XslTr... more >>
SetWallpaperOptions Problem
Posted by redneon at 9/30/2004 9:05:02 AM
I'm trying to use the SetWallpaperOptions Win32 function in C# but I'm not
quite
sure how to do it. This is my section of code...
_win32._tagWALLPAPEROPT opts = new _win32._tagWALLPAPEROPT();
opts.dwStyle = _win32.WPSTYLE_TILE;
opts.dwSize = 0;
IActive.SetWallpaper(file, 0);
IActive.SetWa... more >>
Serialization of a custom class
Posted by Joe at 9/30/2004 8:43:06 AM
I have several classes which I need serialized. Here is their class
definitions:
public class TopContainer
{
private LevelTwoType m_levelTwo;
public LevelTwoType LevelTwo
{
get
{
return m_levelTwo;
}
}
....
}
public c... more >>
Performance when dynamically loading assembly to do plugins in Web Services
Posted by benjaminberube NO[at]SPAM hotmail.com at 9/30/2004 8:35:03 AM
Hi,
I'm currently writing a Web Services that interacts with a database.
To allow me to use not just one database provider (for example, I
could use MS Access, SQL Server or MySQL), the Web Service dynamically
loads up an assembly that implements an Interface I called IDatabase.
To load th... more >>
Error when trying to Inherit a control and then make it Serializab
Posted by Kelly at 9/30/2004 8:07:08 AM
Hi. I am trying to do something that seems very simple. I want to create a
class that inherits from the ListViewItem Control so that I can add a few
custom properties to it. I then want to make it serializable so that I can
save the ListViewItems contained in the ListView. My code snippet ... more >>
Cancel an asynchronous method call made to delegate using BeginInv
Posted by Jeffrey Kingsley at 9/30/2004 7:51:05 AM
I would like to cancel a call to BeginInvoke of a delegate (i.e. kill the
thread the call was made on). This would be done when a timeout occures for
the waitone call to the WaitHandle object of the IAsyncResult interface
returned by the BeginInvoke.
I have tried using the Close method of t... more >>
declaring xml URI's using System.Xml
Posted by abeyer NO[at]SPAM hirtlecallaghan.com at 9/30/2004 7:24:19 AM
I'm looking to creat a node declaration that is similar in format to:
<Root xmlns="mynamespace"
xmlns:o="mynamespaceo"
xmlns:x="mynamespacex"
xmlns:y="mynamespacey">
I can't seem to find anything in System.Xml or MSDN that shows how to
add the URI declarations to a node. Any help would be g... more >>
using system icons & images
Posted by todorov-fkt at 9/30/2004 7:21:03 AM
Hi,
I know that Windows comes with own icons and bitmaps for menus, toolbars,
etc, which are compiled into ressource dlls. Is it possible to use these
images into the own program and how do I do that? I suppose these images all
have some name, which I would use to get the icon for let's say... more >>
How did Remotesoft did Protecter software? Hiding codes...Wow!
Posted by Chua Wen Ching at 9/30/2004 6:21:01 AM
Hi,
I saw this link:
http://www.remotesoft.com/salamander/protector.html
and the screenshots
http://www.remotesoft.com/salamander/protector/screenshots/index.html#code_protection
I wonder how they did this:
Our protector is not an obfuscator, rather it converts the decompilable
... more >>
SQL2000/C# vs MySQL/C#
Posted by Cadence at 9/30/2004 5:46:06 AM
Hello NG-
I'm new to indepth programming and developing of C# and databases. I want
to make full use of ADO.NET with ASP.NET and C#. So my question is this;
Will I be able to use the technologies I just mentioned if I were to use a
MySQL databases versus a SQL 2000 database? I am asking thi... more >>
DirectorySearcher, FindAll more than 1000 results???
Posted by Andrej at 9/30/2004 5:39:05 AM
hi,
i must skip throug all of my contacts in AD and check if targetAddress =
entry in the array of ProxyAddress.
DirectorySearcher.FindAll() methode returns just 1000 elemets, but i have
much more contacts to loop throug in AD. how can i get all of the contacts? i
tried to set the sizel... more >>
Enable menuitem in parent form from mdichild
Posted by Claus Holm at 9/30/2004 5:25:02 AM
I'm trying to enable a menuitem in the parent form from a mdichild. Rather
than making the menuitems public, I'd go for a public method in the parent
form to do the change, but when I call the method from the mdichild, I get
this error:
C:\MyProjects\Visual Studio Projects\Tournament\Forms\... more >>
opening and validating XMLfile in one go ??
Posted by (cmrchs NO[at]SPAM yahoo.com) at 9/30/2004 3:42:20 AM
Hi,
when opening an Xml-file to I want to perform validation immediately but the following does not work :
DataSet m_dsProducts = new DataSet();
m_dsProducts.ReadXmlSchema("cu.xsd");
m_dsProducts.ReadXml("cu.xml", XmlReadMode.ReadSchema);
The file opens but no runtime error... more >>
declaring variables in switch statement
Posted by Mike P at 9/30/2004 1:51:47 AM
Is it not possible to declare variables within a switch statement? My
variables don't seem to ever be in scope to be able to assign values to
them.
Thanks,
Mike
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!... more >>
Overriding the "disabled" look for e.g textboxes
Posted by Morten Plathe at 9/30/2004 1:49:02 AM
Hi,
Is there a way to override the shadowed (grey) backcolor of a textbox when the
textbox is disabled for input (textbox.enabled = false) ? In some cases I
want to
have a custom backcolor when the textbox is disabled.
The same question applies for a listview. When the listview is disable... more >>
finding a character in a string
Posted by Mike P at 9/30/2004 1:31:54 AM
How do you find a particular character in a string in C#? I have a
string which may be a whole number (1, 10, 100 etc), or a number with 1
or 2 decimal places. I need to check if the string has a decimal point,
and pad the string out to 2 decimal places using PadRight. But how do I
check for ... more >>
lock problem
Posted by Sharon at 9/30/2004 1:17:17 AM
Hi all.
I have an ArrayList and
sometimes while enumerating through, i get an
exception because another thread has added to the ArrayList.
To solve this problem, i lock the enumeration,
passing the ArrayList instance to the lock.
But i still get the same exception.
Thanks for your help.
Shar... more >>
generics & readonly
Posted by adrin at 9/30/2004 1:07:49 AM
I want to make a generic type:
class Prunus<T, S> : BaseClass
where T : TBaseClass
where S : SBaseClass
{
public void DoSomething()
{
// the problem is here
T t = new T(arg1, arg2, ...);
}
}
In the code above, T(arg1, arg2, ...) is a constructor declared in
TBaseC... more >>
When and Where I should use MSMQ?
Posted by Jet Leung at 9/30/2004 12:26:02 AM
Hi all,
Where is the MSMQ use for? For example, I have a client program to control
the database and how can I use MSMQ in my program? When I should use it?
For example I have a method to insert new record to the database and how can
I use MSMQ in this method?
... more >>
How can I write a method that is called when an object goes out of scope?
Posted by pwilkinson NO[at]SPAM mail.com at 9/30/2004 12:04:51 AM
How can I write a method that is called when an object goes out of
scope? I've looked all over, so far I've only found discussions of how
to write methods that don't = )... more >>
Having a memory leak type of problem
Posted by Chris Oates at 9/30/2004 12:03:26 AM
I'm using interop to bring in user32.dll and gdi32.dll, and I'm finding that
I appear to have some kind of memory leak in the CLR. use of
GC.GetTotalMemory() shows a lot of motion, but it does not continually grow,
leaving me to think that it's a problem with my interop calls.
I have a tim... more >>
Setup Project
Posted by Tony at 9/30/2004 12:03:02 AM
Hi all
Is there any way to use the Condition property of a file I am deploying in a
setup project to not be installed if it already exists in that location? I
can't find any resource that tells me how to use the Condition property that
doesn't sound like rocket science.
Thanks... more >>
|