all groups > c# > june 2004 > threads for wednesday june 2
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
Calling Pick Icon dialog from C#
Posted by kurotsuke at 6/2/2004 11:05:13 PM
Can anybody tell me how I can call the Pick Icon Dialog from C#? I
couldn't find any example.
Thanks.... more >>
Question on Matrix Transformations
Posted by johnwelch1024 NO[at]SPAM hotmail.com at 6/2/2004 11:02:37 PM
When using the C# for the Matrix Transformation for a 100x200 panel:
1. To Reverse Y axis, I can:
Matrix m = new Matrix(new Rectangle(0,0,100,200), new Point[] {
new Point(0,100), new Point(100,200), new Point(0,0)} );
2. To Reverse X axis, I can:
Matrix m = new Mat... more >>
int * elem ?
Posted by Peter Morris [Droopy eyes software] at 6/2/2004 10:15:28 PM
I am trying to call a method in a .net assembly, the intellisense says it is
"void SetValue(int * elem, float * elem)"
How do I call that from C#? What is the * for ?
Pete
... more >>
How to Split a XML file to multiple small XML Files
Posted by kb at 6/2/2004 9:04:14 PM
Hello,
I am trying to split a XML file to multiple small xml files in vb.net
and am trying to get the best possible approach to this. Any help on
this will be great... Sample example on what I am trying to do... Any
help on this will help me a lot. Thank you
KB
Source XML document
------... more >>
c# directx tutorial problem
Posted by cprog84 at 6/2/2004 8:23:46 PM
I'm getting the following error when I run the mostly unmodified
DX SDK texture tutorial code in SharpDevelop:
System.NullReferenceException: Object reference not set to an instance of an
object.
at Microsoft.DirectX.Direct3D.D3DX.GetUnmanagedDevice(Device device)
at Microsoft.DirectX.Direc... more >>
how to make icons more beautiful?
Posted by cnkknd NO[at]SPAM msn-dot-com.no-spam.invalid at 6/2/2004 7:43:06 PM
look at this picture
http://upload.cs99.net/e.gif
i use the function SHGetFileInfo to get file icons. but these icons
are not very nice. there are some black things round of the icons.
many applications use system icons for files. how did their
programmers solve this problem in these apps?
... more >>
operator overloade?
Posted by Summa at 6/2/2004 7:37:35 PM
Hi,
Can C# operator overloade? Any good links (Google turns up empty)
--
regards,
Summa
... more >>
Any method to add printer programatically?
Posted by Mullin Yu at 6/2/2004 7:33:59 PM
I want to know can I add printer programatically?
E.g. I want to create a File Printer to a specify local port, say,
C:\test\test.prn with the name as FilePrinter
Can I do so?
Thanks!
Regards,
Mullin
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Send Keys
Posted by SlasherStanley at 6/2/2004 7:31:16 PM
Hi
I want to write a very basic app that simulates pressing "ALT + N" several
times.
I know you can use SENDKEYS in VB, but don't know how to do it in C#.
This app will be used to simulate pressing a "&NO" command button on a
different application.
Thanks
Slasher
---
Outgoing... more >>
Time format
Posted by Just D at 6/2/2004 7:13:20 PM
Did anybody see this bug? I tried to reproduce that using 12-hour and
24-hour system settings. Anyway it still causes a problem in VS2003. When I
convert DateTime to a string using default ToString(), like
DateTime.Now.ToString() C# returns me this string instead of a correct one:
"19:25:35 ... more >>
Get Control into Toolbox just like UserControl ...
Posted by John Smith at 6/2/2004 7:02:01 PM
If i derive from UserControl my Control apears in the toolbox. But I
want to extend existing Controls like Button , treecontrol . I found
some hints which attributes to set but i didnt succeed till now ..
[
ToolboxItem(true) , DesignTimeVisible(true)
]
[
Des... more >>
.NET reporting?
Posted by Todd at 6/2/2004 6:46:03 PM
Is there any sort of formatted reporting (outside of just a datagrid with results of a query from a dataset) that is available within the .NET framework or is a 3rd party tool needed to do this reporting
Thanks in advance
Tod
... more >>
Datagrid Newbie Help
Posted by Dougie at 6/2/2004 6:07:16 PM
How can you start with a maximised view on a datagrid? It's not very user
friendly to look at initally when you have to click the small arrows to view
the data. Surely there must be a way of maximising the data at startup ??
doug.
... more >>
Font Problem
Posted by John Baro at 6/2/2004 4:49:11 PM
As the subject says, I have a font problem.
I have a richtextbox that gets the selectionfont from a combo box populated
from the InstalledFontCollection.
There are a number of fonts that the richtextbox will not update to
properly.
Amongst these are:
Raavi, Shruti and Tunga.
When I set the se... more >>
Using System.Reflection.Emit to create a call to "typeof()"
Posted by Mark Miller at 6/2/2004 4:43:06 PM
I am using Reflection.Emit to dynamically build a class. A method of the
class to be built requires a Parameter of type "Type". But I don't know how
to use Emit to pass a call of "typeof()" to the method.
The method could look like this:
public void myDynamicMethod(Type type){
//...... more >>
Reading a file from DLL.
Posted by Ramesh at 6/2/2004 3:14:58 PM
Hello everybody,
I have exe (a.exe) file that runs on COM+ environement the
executable loads a dll(b.dll) which has a reference to a
XML file which the dll uses to parse.
The problem is that I am unable to provide in a proper
location where the dll could read in the XML file. As the
ex... more >>
'new' help - newbie
Posted by Timothy V at 6/2/2004 3:08:08 PM
Hi,
I was wondering how to create an instance of a System.Type variable (if it
is possible). For example:
object someMethod(System.Type st)
{
object o = new st(); // I know this is incorrect
return o;
}
I know the above line is incorrect, but it is the best was i could descibe
... more >>
Set values for buttonarray.
Posted by MA at 6/2/2004 2:49:36 PM
Hi!
I have this code in a class called activity:
public Button[] getActivity(DateTime startDate, DateTime endDate)
{
TimeSpan ts = endDate-startDate;
int arraySize = ts.Days;
Button[] btnActivity = new Button[arraySize];
return btnActivity;
}
that I call with this:
... more >>
the config file
Posted by Daniel P. at 6/2/2004 2:47:52 PM
I have a Windows Forms app in C#.
I created the myApp.exe.config file and it works fine if I just run the exe.
When I try to debug it from Visual Studio it does not see it and throws an
exception.
The .config file resides in the same folder as the source code.
Thanks!
... more >>
validating a Date
Posted by Chris at 6/2/2004 2:42:27 PM
Hi,
how do I validate a date using a RegularExpression ?
e.g. 05/20/2004
(May 20, 2004)
What is format to be used ?
Thanks
Chris
... more >>
.NET string max length?
Posted by Derrick at 6/2/2004 2:33:24 PM
Is there an official max length for the string (System.String) class?
Thanks!
Derrick
... more >>
Manifest problem
Posted by JPRoot at 6/2/2004 2:21:02 PM
Hi
I have a problem with the development environment
I have a DLL (jproot.dll) versionned 1.9.0.33 that I have shipped to my customer
My customer made a DLL (cust.dll, versionned 1.2.3.4) that depend on jproot.dll
In the manifest of this cust.dll (ildasm), it is written that it depends on jpr... more >>
Closing System.IO.FileStream
Posted by Alex Moskalyuk at 6/2/2004 2:11:16 PM
Does calling Close() on a System.IO.FileStream object cause it to go null?
Is this code
MyFile.Close();
...
if (MyFile != null)
Console.WriteLine ("File not closed");
valid?
The documentation mentions Dispose() being called, but does it go null
automatically, or is th... more >>
PIA for Azman?
Posted by Geoff Anderson at 6/2/2004 2:06:15 PM
Where can I download the Primary Interop Assembly
for Microsoft Authorization Manager?
All I found on msdn so far are PIAs for Office XP and
Visio.
... more >>
Mouse Wheel
Posted by Anders Eriksson at 6/2/2004 1:34:51 PM
Hello!
I have a program with three views
------------------------------------
| | |
| 1 | 2 |
| | |
| |--------------------------|
| | |
| | ... more >>
Need help using C# COM from C++ COM
Posted by DmitMF at 6/2/2004 1:31:04 PM
I have a COM object build in C#. I want to use this object in another COM object, built in C++. What's more, I want to return a pointer to the C# COM object from one of the methods of the C++ COM Object. Here's the fragment of my IDL
library BarLi
importlib ("foo.tlb"); // Contains definiti... more >>
Interfaces
Posted by Michael Grimsley at 6/2/2004 1:30:59 PM
I have been looking at interfaces in C# and cannot seem to understand =
them. I am told that interfaces resembles a class with no code and that =
methods declared in an interface are not allowed to contain method =
bodies. My question is what purpose does creating an interface serve =
that has m... more >>
Override vs Name Hiding
Posted by Sharon Tal at 6/2/2004 1:16:03 PM
Hi all.
I am trying to figure out the differences between
overriding and hiding a method name.
The only difference i can see, is that with name hiding i can change
the method access level.
Are there any other differences?
Thanks, Sharon.
... more >>
ADO / SQLDataAdapter Question
Posted by Doug at 6/2/2004 12:13:19 PM
Hi,
I have a quick question -
I have a table where the primary key is an autogenerated GUID via SQL Server
2k. The table has just 2 fields, the PK and the ChangeDate. When I do an
insert into the table w/ the date, the PK is generated, but I need to have
that PK value returned to the a... more >>
FileSystemWatcher Question
Posted by Matt at 6/2/2004 12:07:32 PM
Is their an easy way to have the FileSystemWatcher object catch files that
may already be in a watched directory? I have a situation where files could
be in the directory before the service starts.
Thanks,
Matt
... more >>
get cooridates or click event?
Posted by Darren Clark at 6/2/2004 11:52:23 AM
How can i get the coords of a simple click on a windows form?
... more >>
Is there an equivilent to VB.NET ByVal?
Posted by John Galt at 6/2/2004 11:50:44 AM
I was looking at a VB.NET program that is passing strings to method calls
using ByVal. I was wondering if this is for a reason and, if so, should a C#
conversion of code samples from VB.NET also use an equivilent rather than
passing strings by reference?
... more >>
Scrolling how to...
Posted by Jacek Jurkowski at 6/2/2004 10:51:33 AM
How to determine whenever Panel is scrolled?
I have one Panel with AutoScroll property on.
I would like to secound Panel move it's content
the same as the first one without having scroll bars.
I should set the Location property of ClientRectangle
of the secount Panel the same as The first one... more >>
Web Browser Control Help
Posted by Dougie at 6/2/2004 10:27:37 AM
I am wanting to include a web browser in my application. I have used =
the COM Microsoft Web Browser control but when I run the applicaiton I =
get a waiting icon and the page never displays. It's not my firewall =
denying the application and I am unsure as to what is going wrong. Can =
anyon... more >>
How to use resource Files in Class Libraries?
Posted by ajitaustin NO[at]SPAM yahoo.co.in at 6/2/2004 9:53:34 AM
Can any one please give me a pointer on how to use resource file(s)
specific to a Class library?
This class library will be used by different (windows based)
applications.
Progress:
-- I have embedded the resource file to the class library and
compiled it. It has generated the resource s... more >>
Assembly version compatibility issue
Posted by Bob at 6/2/2004 9:46:15 AM
I have a common assembly DLL that's installed into GAC (using msi created by
a setup project). It contains classes used by all the applications we have.
This works well but when I increase the version number (say, from 1.0.0 to
1.01), all existing applications have to be recompiled even if the c... more >>
IE toolbar question
Posted by john_20_28_2000 NO[at]SPAM yahoo.com at 6/2/2004 9:05:15 AM
I have created a toolbar bandobject like the googlebar. I cannot
figure out what kind of menu it uses. On the Search Web there is a
drop down arrow. Some kind of menu type object opens. It does not
look like a drop down control. Do you know what it is and how I can
get that functionality?
... more >>
Timetable with c#
Posted by MA at 6/2/2004 8:53:48 AM
Hi all!
Im going to develop a timetable with c# and asp.net. Does anyone knows of
any good site where i can find information? I have googled for a while, but
cant find anything.
/Marre
... more >>
Debugging release
Posted by bob_jeffcoat NO[at]SPAM hotmail.com at 6/2/2004 8:26:47 AM
Hello,
Once I've distributed my application how do I diagnose my customers
errors (not that they'll be any). It doesn't seem to output any kind
of error log file, is there one?
Any clues?
Thanks,
Bob... more >>
Using ManagementObjectSearcher for serial port list
Posted by Claire at 6/2/2004 8:02:36 AM
I'm using the following code in an attempt to obtain a list of available
serial ports.
I expected to retrieve the same values as listed in hardware manager in
Control panel but I'm not.
I'm being returned COM1 and COM3 when I should be receiving COM1 and COM4.
I've also a USB to serial convert... more >>
Error when using WMI class to get info on External CDROM Drive
Posted by king_felix NO[at]SPAM msn.com at 6/2/2004 7:12:34 AM
System.Management.ManagementException: Provider failure
I am getting this error when trying to get information on an external
CD Rom Drive using WMI class Win32_CDROMDrive. Any ideas? The
computer is a Tablet PC and is running XP. It is connected to a
docking station which the CD drive is p... more >>
Problem with Connection based Transaction in SQL Helper class
Posted by Rahul Anand at 6/2/2004 5:55:34 AM
Getting SQL Exception when trying to implement Connection
based Trasaction using SQL Helper class.
I am using the follwing function to execute my stored
procs:
-=-=-=-
ExecuteScalar(ByVal transaction As SqlTransaction, _
ByVal spName As String, _
ByVal ParamArray parameterValues() As Ob... more >>
Can a reference be 'boxed' and 'unboxed' ala 'pointer to pointer'
Posted by tham at 6/2/2004 5:06:05 AM
HI
can i box and unbox a reference so that i can achieve a 'pointer to pointer' effect. i want to pass a reference as a parameter to a function and then have the function change what the reference is pointing to..
many thank
tham... more >>
Consuming the KeyDown Event?
Posted by Peter at 6/2/2004 4:46:02 AM
Hello
Thanks for reviewing my question. I am trying to consume the Keydown event of the Cntrl-shift-E in a textbox and have noticed that when I press key this combination a beep is made even though the event works correctly? How can I get rid of this beep? I thought that setting the e.Handled t... more >>
how can I use the line contorl like VB?
Posted by flybird at 6/2/2004 4:21:04 AM
how can I use the line contorl like VB? or draw a line on the Form
thank you!... more >>
ADSI programming with ASP.NET
Posted by HridayNarayan Rai at 6/2/2004 3:57:32 AM
This is hriday, wants to create an asp.net web page using
c#. I want the validation, account creation, account
updation, and account deletion of my user should happen
using the active directory services. I use
DirectorySearcher Object which works only with LDAP
provider.
I want my web pa... more >>
Closing a stream(easy question)
Posted by nick_tucker NO[at]SPAM hotmail.com at 6/2/2004 3:29:45 AM
Hi,
simple question
XmlDocument doc = new XmlDocument();
FileStream file = new FileStream
(PathAndFileName,FileMode.Open,FileAccess.Read,FileShare.ReadWrite);
doc.Load(file);
should I now call file.close or do I not need to??
Thanks
Nick... more >>
WebService reload and install during running time
Posted by m.landolt NO[at]SPAM proreda-dot-ch.no-spam.invalid at 6/2/2004 3:21:06 AM
Question:
Is it possible to download (with a request from my Application) a
newer Version of my WebService during my Application is running?
Or if the WebService is installed on anoder Server, that I can
download the WebService with the new URL: bla/bla/webServiceName?wsdl
Thanks for an... more >>
ASP.NET validation
Posted by Kevin at 6/2/2004 2:46:02 AM
Hi all
Can anyone please tell me how to perform validation an a control based on a value in another control. i.e. If control A == "Hello" then perform validation on control B, otherwise don't perform the validation on control
any ideas
Thanks eveeryon
Kevin... more >>
how can I get a string(chinese character) from a text file?
Posted by flybrid at 6/2/2004 2:21:02 AM
how can I get a string(chinese character) from a text file
thank you!... more >>
System.web.mail
Posted by das at 6/2/2004 1:26:04 AM
Hi
I'm using following code to send the emai
MailMessage myMail = new MailMessage()
myMail.From="mymail@myServer.com"
myMail.To="mymail@myServer.com"
myMail.Subject="subject"
myMail.Body="Body"
SmtpMail.SmtpServer="myMailServer"
SmtpMail.Send (myMail)
The problem is... more >>
Cut / Copy / Paste ????
Posted by Legendary Pansy at 6/2/2004 1:06:06 AM
I was checking out the 101 C# Samples, specifically Windows Forms - Use the Clipboard. I took a look at the code for a while, and I understand what the program is doing with the cut, copy, pasting via the file menu events using the clipboard. However, what I don't get is how is the program able to p... more >>
ArrayList.BinarySearch problem
Posted by Eric Eggermann at 6/2/2004 12:24:15 AM
I'm going batty trying to figure out why this is not working.
I'm trying to find all objects within a class derived from CollectionBase
which meet a certain criteria, but the search seems to be skipping some
objects. The following code is supposed to start searching the InnerList
from the begi... more >>
Is a reference a special type in C#
Posted by tham at 6/2/2004 12:21:04 AM
hi
Is a reference a special type in C#. For example when i d
MyClass aRef
what are the classes that are available that i can use to probe aRef as a reference. My real goal is to make a serializable reference and to recreate the link during deserialization.
Thanks... more >>
|