all groups > c# > july 2004 > threads for monday july 5
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
list of installed fonts?
Posted by Sachin at 7/5/2004 11:46:01 PM
How to get the list of installed fonts corresponding to any perticular charactor set? eg. if I want to get Japanese supporting font list (corresponding to char set Shift_JIS), how to do it?
please guide
--
sachin... more >>
Importing a VC++ class into a C# program
Posted by dominicjoseph NO[at]SPAM rediffmail.com at 7/5/2004 11:17:45 PM
Hi
I had a couple of questions:
1.)I am trying to invoke member functions of a class which is coded in
VC++ from a UI that is coded in C#. Firstly, if I am not mistaken I
think this can be done only if the exposed classes are managed. I am
totally new to this. So can someone give some point... more >>
question about multithread c# socket server
Posted by zbcong at 7/5/2004 9:54:02 PM
Hello:
I write a multithread c# socket server,it is a winform application,there is a richtextbox control and button,when the button is click,the server begin to listen the socket port,waiting for a incoming connection,the relative code snipprt as following::
private IPAddress myIP=IPAddress.Pa... more >>
Resizable Form in C#
Posted by Sveta at 7/5/2004 9:38:29 PM
I am new to C#. At this time I am working on a project
that requires to make a Dialog box (with OK button) that
will display a message. This dialog box must be resizable
based on the message that will be displayed (just like
the Message Box does, changes its size based on the
infomation th... more >>
How to store multiple icons?
Posted by Tintin at 7/5/2004 7:42:22 PM
Hi all,
I Googled without lucky. I want my app has more than one icon like ACDSee or MS Word.
Thank in advance.
... more >>
Decimal numbers
Posted by Alberto at 7/5/2004 7:23:47 PM
How can I do to see a float numer in screen with only 2 decimals?
Thank you.
... more >>
List View
Posted by BJ at 7/5/2004 6:56:50 PM
Hi,
I would like to display 3 fields in a List box: Lastname, Firstname, age.
Is there a way that C# allows me to neatly display this in a columized
manner?
... more >>
Visibility of an object
Posted by Alberto at 7/5/2004 6:44:20 PM
I have in a form a SqlConnection and a SqlCommand but I also want to use
them in form shown as DialogForm. I declared the objects as public but I
don't know how to go on.
Thank you.
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Serialization of Dataset w/ Expression Column(s)
Posted by Dan at 7/5/2004 6:20:13 PM
Hello,
I am having trouble serializing a typed dataset that has a number of
expression columns. When I attempt to serialize the dataset, the framework
(.NET 1.1) throws a NullRefException. After a little research I've come
across Microsoft KB 818587 (link below), which describes a similar pr... more >>
Accessing a Java COM component from .NET
Posted by Mike at 7/5/2004 5:10:01 PM
..NET framework 1.2
Hello.
We've been accessing a Java COM component from classic ASP for a while now,
which works fine. We now need to access it from .NET, but we have no idea
how to reference this component as we can't find the .dll (or whatever type
of file Java COM components compile to... more >>
See data in a DataSet
Posted by Alberto at 7/5/2004 4:45:13 PM
I execute a Select sentence using a SqlDataAdapter object and a fill a
DataSet object. After doing this I set the DataSource property of a DataGrid
to the value of the DataSet but in the DataGrid I see an hiperlink to the
table but I want to see Data. How can I do it?
Thank you.
... more >>
mobile phones and C#
Posted by VM at 7/5/2004 4:17:30 PM
I've been searching for a new cell phone and I've noticed that many cell
phones can download java applications for their phones. How possible is it
to write applications for any kind of cell phone in C#? I don't know much
about these phones but I'm not talking about the expensive ones with PDA an... more >>
XML serialization of an Hashtable 2
Posted by francois at 7/5/2004 3:58:31 PM
First of all I would to to apologize for resending this post again but I
feel like my last post as been spoiled
Here I go for my problem:
Hi,
I have a webservice that I am using and I would like it to return an XML
serialized version of an object.
the class of the object is defined ser... more >>
Encrypting streams
Posted by John Young at 7/5/2004 3:44:23 PM
Hi, I have been trying to encrypt and decrypt a filestream. I have a
problem where if I encrypt a file a set key and iv (eg. key is 'polomint'
and the IV is '12345678'), and then decrypt it with the same key but an IV
of 29384567, it still shows the file mostly unencrypted!....
Is it just m... more >>
Change current users password?
Posted by news.microsoft.com at 7/5/2004 3:36:16 PM
I am looking for a way to allow the currently logged in user to change
his/her password. Is there an API I can interop to in c#?
Tia!
... more >>
Why do we use Dll and where use it?
Posted by Bill Yin at 7/5/2004 3:19:43 PM
XML serialization of an Hashtable
Posted by francois at 7/5/2004 2:59:40 PM
Hi,
I have a webservice that I am using and I would like it to return an XML
serialized version of an object.
the class of the object is defined serializable as the following:
[Serializable]
public class Event
{
}
Also it contains 5 properties returning simple data type such as int a... more >>
Get One Character from keyboard
Posted by Jay at 7/5/2004 2:58:57 PM
How do I get only one character from the keyboard without having to hit
return like in the C function getch();
... more >>
Web Service Validation
Posted by Dean Bortell at 7/5/2004 2:35:01 PM
Is there a way to verify a web service is up before executing function calls from a windows based application against it? I have heard of programs hanging while trying to connect to a service that is not available. How can I guard against this using c#?
Respectfully,
Dean Bortell... more >>
Changing file extensions
Posted by Claire at 7/5/2004 2:14:11 PM
There used to be a nice api call to change a file extension. Is there a
class that will do this in c# .net?
The FileInfo class will return some information about a queried file. Yes I
can query the whole file path/name and the extension, but I can't query the
raw filename without its extension a... more >>
FullScreen
Posted by BJ at 7/5/2004 2:03:22 PM
Hi,
How do I make my program so that it will be full screen and hide the menu
taskbar? right now it is fullscreen but the menu taskbar is in the way.
... more >>
Memory leak
Posted by Mike at 7/5/2004 1:18:21 PM
..NET 1.1
Hi.
My C# .NET application has a memory leak - if I leave it running for hours
then the system ends up using 500MB+ of virtual memory, which is released
immediately when I close the app. Now, I thought this would be impossible
with automatic garbage collection, but it seems this ... more >>
Can I display a modal dialog form with mdiparent?
Posted by VM at 7/5/2004 1:15:51 PM
Is it possible to display a form as a modal dialog box where it's is not a
top-level form? If I include it as a top-level form, I won't be able to
access all the MDI children through it (by using this.MdiParent.MdiChildren
from within the form).
Thanks.
... more >>
FullScreen
Posted by BJ at 7/5/2004 1:02:02 PM
Hi,
How do you do a FullScreen option for you program during running? I want to
display my form in full but right now, the task bar on the bottom's still
shown.
... more >>
Problem with: 'DirectoryServices' does not exist in the namespace 'System'
Posted by Gaab at 7/5/2004 12:52:15 PM
Hi Folks,
After the weekend I wanted to start working on my c#/asp.net project, but
when I tried to open it on my machine i got the following error:
Compilation Error
Description: An error occurred during the compilation of a resource required
to service this request. Please review the fo... more >>
Converting string formula to mathematical formula
Posted by VM at 7/5/2004 12:45:17 PM
If I have a string variable with a formula:
string sMyformula = "3.3*5.2*5";
How can I convert this to a mathematical formula that the compiler can
calculate? For all purposes, the formula in the string will always be valid.
Thanks
... more >>
storing application configuration/initialization
Posted by Claire at 7/5/2004 12:02:47 PM
Hi
We're newish to visual studio .net.
I wanted to store some user defined variables. Normally I'd have written
these to the registry but my colleague informed me that Microsoft was trying
to dissuade users away from the registry and towards configuration files.
So I had a look at the
System.C... more >>
User Must Change Password At Next Logon - LDAP And .NET
Posted by Ram at 7/5/2004 11:51:10 AM
Hey,
I'v managed to set the "User Must Change Password At Next Logon" flag on the
LDAP protocol,
Using the - "pwdLastSet" property - by setting it to - "0" (for on) or -
"-1" (for off).
The problem is, I dont know how to check what's the current status of this
user -
When I try and read this ... more >>
Groups of Buttons
Posted by BJ at 7/5/2004 11:33:02 AM
Hi,
I would like to display different group of buttons at different time
depending on the users.
So if the user click on Button1 then a group of Buttons related for that
group will appear on a certain location on the form. If the user click on
Button2 then another group will appear and grou... more >>
how to build a multilingue C# application ?
Posted by Herve MAILLARD at 7/5/2004 11:27:02 AM
Hi,
I need to have 2 (at least) different language in my C# app.
What's the best way to do that ?
Thanks for your help.
H. MAILLARD
... more >>
De/Serialization problem
Posted by Tamir Khason at 7/5/2004 11:01:52 AM
I have an object (eg MyObject with namespace eg MyNamespace)
[XmlRoot("MyObject", Namespace="MyNamespace", IsNullable=false)]
public class MyObject
While I serialize it the XML created is
<MyObject xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-... more >>
Form
Posted by BJ at 7/5/2004 9:59:22 AM
Hi,
I have created a MainForm and another form called "Form2" statically. I
would like to call Form2 from MainForm, how do I do this?
I have tried in MainForm:
Form2.ActiveForm.Show();
But no luck.
... more >>
SQL Server 2005 Express Beta messes up your SQL Server 2000, BEWARE
Posted by ik at 7/5/2004 9:06:51 AM
ERROR after uninstalling SQL Server 2005 Express
I get this message,
SQLDMO has not been registered. Please re-run your setupand contact your
system administrator.
GREAT!!! ReInstalled SQL SERVER 2000 after playing around with SQL Server
2005...
Snap In Failed to Initialize,
Name: Sql... more >>
OLE Server in C#
Posted by Charles at 7/5/2004 8:43:01 AM
Hello,
Could you tell me if it is possible to create a OLE server application using C#? I want to be able to embed this application into other applications using "Insert Object". If it is possible could you point me in the direction of some samples.
Many Thanks
Charles Lewinton... more >>
const Array[TMyThing] of string;
Posted by Alexander Muylaert at 7/5/2004 8:35:24 AM
Hi
In delphi we can create an array of an enum.
type
TMyEnum = (meRed, meGreen, meBlue);
const
cMyArray : array[TMyEnum] of TColor = (clRed, clGreen, clBlue);
This has the huge advantage that the compiler will actually check if enough
elements are inside the array. It is also very ... more >>
XML using W3C data types. How to write
Posted by TT (Tom Tempelaere) at 7/5/2004 8:25:02 AM
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
[...]
<xs:element name="DateTimeScheduled" type="xs:dateTime"/>
[...]
<xs:element name="FileSize" type="xs:unsignedLong"/>
[...]
</xs:schema>
This is my xml XSD. ... more >>
Transparent Text Box
Posted by GordonC at 7/5/2004 7:56:02 AM
My text boxes are transparent in that the backgrornd is visible behing the window containing the text box. This occurs when the BackColor property is Window. In some projects this does not happen so I suspect their is some property or setting causing this. If I choose a BackColor of Info, they ... more >>
'System.Web' (are you missing an assembly reference?)
Posted by roblamox NO[at]SPAM hotmail.com at 7/5/2004 7:45:50 AM
Please can someone tell me WHY I would be getting this error and
secondly HOW to resolve it.
Regards
Rob... more >>
listview and progressbar
Posted by 2G at 7/5/2004 7:25:18 AM
Hi,
Is there a way to display a progressbar in a listviewsubitem? I can't find
how to do this.
Thanks.
... more >>
DataGrid - select single cell?
Posted by Beeeeeeeeeeeeves at 7/5/2004 4:59:01 AM
Hi
I've managed to make a datagrid so the contents of its cells can't be edited, but is there any way of making the datagrid select one single cell?
Similar to the way in which SQL Query Analyzer's grid does.... more >>
Ownerdrawn combobox (hopefully not to be plundered this time)
Posted by Beeeeeeeeeeeeves at 7/5/2004 4:49:02 AM
I have an ownerdrawn combo box which I am drawing with an image and some text, this is all working beautifully apart from the difference in the Brush I have to draw the background and the text with if the item is the currently selected one.
I have selected a blue (SystemColors.Highlight) backgrou... more >>
Print web form(urgent)
Posted by Das at 7/5/2004 4:18:02 AM
Hi All,
I want to have a link on the web form. On click it should print the web form.
If I use javascript window.print then it displays the Title on the top of the page & URL at the bottom but i don't want any such thing.
Is there any other method to print the complete form
thanks ... more >>
button click event question
Posted by Tony at 7/5/2004 4:11:07 AM
I put three buttone on my form.
Double clicked the first button and got the below code
private void button1_Click(object sender, System.EventArgs e)
{
}
I put some stuff in it and then it occured to me that I left the
button's name etc default..
Went to the putton's properties and cha... more >>
Sample projects in C#
Posted by Ishwar at 7/5/2004 3:48:38 AM
I am not very much experienced in C# programming but has
learnt a lot of C#. I want to test my C# skills by
developing sample projects which covers different aspects
of C# language.
can anybody give me such list of sample projects and/or
white papers on C# projects.... more >>
Ownerdrawn combobox
Posted by Beeeeeeeeeeeeves at 7/5/2004 3:27:01 AM
I have an ownerdrawn combo box which I am drawing with an image and some text, this is all working beautifully apart from the difference in the Brush I have to draw the background and the text with if the item is the currently selected one.
I have selected a blue (SystemColors.Highlight) backgrou... more >>
Efficient way to create and access bitmap data
Posted by James Dean at 7/5/2004 3:04:34 AM
I am reading in a certain file format and it is compressed with Run
Length encoding. To output to the screen i convert this to a 24bpp
bitmap. The problem is when the data is decompressed its big and the
program is very slow.....any functions in C# to help with this......
*** Sent via Devdex h... more >>
Bitmap class problem
Posted by TCR at 7/5/2004 3:03:31 AM
Hi,
I'm using the Image.FromImage() function to load a jpg file into a bitmap
class and then convert it to a lower resolution. The problem I'm having is
that if I check the resolution of the image using either of the properties
(Horizontal or Vertical), it reports it as 72 dpi when in fact t... more >>
underscore prefix
Posted by mike parr at 7/5/2004 1:24:39 AM
A few times when looking at code on the net I have seen objects,
variables etc prefixed by an underscore. But I've never seen any
explanation for the reason for this. What is the reason for doing this?
Thanks,
Mike
*** Sent via Devdex http://www.devdex.com ***
Don't just parti... more >>
Testing the speed of an application.
Posted by Nick at 7/5/2004 1:22:41 AM
I'm sure there is a way.
Any suggestions. I would like to test how much processing time a certain
function takes to complete and lest say modify that funtion and compare
the speed.
Thanks in advance.
Nick Z.... more >>
Regex hangs
Posted by vidar NO[at]SPAM unimicro.no at 7/5/2004 1:16:34 AM
I have a regex for matching VB6-functions, but it hangs on one
specific function.
The regex:
^(Public\s)?(Declare\s|Static\s)?(Function)\s(\S)+\(((Optional\s)?(ByVal\s|ByRef\s)?(ParamArray\s)?(\S)+(\sAs\s(\S)+)?(\s=\s(\S)+)?(\,\s)?)*\)(\sAs\s(\S)+)?
The string on which it hangs:
"Public F... more >>
Why FXCop recommends me not to do this way of method calling?
Posted by Chua Wen Ching at 7/5/2004 12:34:01 AM
I had use fxcop to check my code. I had 1 confusion here.
I would normally call a method by this way in my IAnimal:
Example:
public void CallFuncA(ushort port);
But fxcop says i need to write like a property rather than method to this:
public void CallFuncA(ushort port)
{
this.por... more >>
enabling console application ?
Posted by ajikoe at 7/5/2004 12:13:01 AM
Hello All,
It is said that :
Enabling the console window is easy. From Microsoft Visual Studio®, right-click on the project and choose Properties. Change the output type from Windows Application to Console Application.
I use C# Standard Edition and I can't change the output type files from ... more >>
Design a new library over existing c codes. What is the best way?
Posted by Chua Wen Ching at 7/5/2004 12:05:01 AM
Hi there,
I had a scenario here.
I had many tonnes of C codes in my office. Each C codes are used in low level stuff. Like connecting to smart card readers or even the OS itself.
I was being hired to push .NET into it and fully object oriented.
I had some questions to ask.
1) Is C# i... more >>
|