all groups > c# > september 2003 > threads for friday september 12
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
refresh the screen
Posted by serge anton at 9/12/2003 11:40:55 PM
Hi,
I want to refresh all the screen (including the desktop) or a part of the
screen.
I can have a reference to the screen with win32 API :
[DllImport("user32")]
public static extern int GetWindowDC(IntPtr hwnd);
private void fct(){
Graphics g = Graphics.FromHdc(new IntPtr(GetWindow... more >>
What is the minimal privilege needed to be able to create an event source in the EventLog?
Posted by José Joye at 9/12/2003 10:21:20 PM
I know, this kind of question has already been asked. However, I could not
find an answer related to the minimal privilege required to be able to
create a new event Source in the appplication event log.
I have a service app that needs to access shares (therefore, I cannot not
start it using th... more >>
keyword overwrite
Posted by Urs Vogel at 9/12/2003 10:20:08 PM
Hi
For compatibilty reasons with an older system, I need to have a method
called string()
..
In VB.Net I may use [keyword] names for my own functions, such as
Public Function [String](ByVal s as String) as String
.....
In C#,
public string string(string s) // function must have the n... more >>
Bitmap InfoHdr & Bitmap data to JPG ?
Posted by Sagaert Johan at 9/12/2003 9:11:15 PM
Hi
From an ActiveX i got an BitmapInfoHdr and the pixel data.
I want to compress it into JPG and then sent it via network to a remote.
I spent some time looking through the classes but did'nt find a good
starting point to convert(compress) my Bitmap data to chunk of JPG data.
Any hints ?... more >>
1.0 api vs 1.1 api
Posted by memememe at 9/12/2003 9:06:51 PM
is there a place where I can get the 1.0 api at? also a place where I can
get the differences with 1.1?
I am trying to use the Activator class and the intellisense on VC# (1.0
api)says that it returns an ObjectHandle when you create an instance, while
the API (1.1) on the microsoft site says tha... more >>
change the value of string
Posted by manoj at 9/12/2003 8:33:19 PM
hi,
A "String" object is pointing to a certain location
with some value in it. I want to change the value in it
with out changing the location.
thanks for any help
manoj... more >>
How to chage Absolute url to relative url ,and relative url to absolute url
Posted by gqtang at 9/12/2003 7:58:12 PM
How to chage Absolute url to relative url ,and relative
url to absolute url... more >>
Parsing strings to numeric
Posted by michael at 9/12/2003 7:21:37 PM
You can use a custom format specifier to format a numeric to a string... e.g
int i= 2;
string formatSpecifier = "## px";
i.ToString(formatSpecifier);
But given given a string and the custom format specifier used to format it,
how can you parse that string back to a numeric ?
I've sear... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
picturebox and access DB help
Posted by Paolol at 9/12/2003 6:28:31 PM
Hi ,
I'm trying to show a bitmap I pasted on an Access DB, but when I try to
convert the memorystream to bitmap I get an error, can any one help me
out ??
Thanks a lot.
Paolo L.
... more >>
datepicker control
Posted by drishtik at 9/12/2003 5:55:43 PM
hi i am using the datepicker control to allow the user to choose a date and
a time
but can i do this in just one control?
currently i have 2 controls
1 for date and 1 for time
thanx
... more >>
c# performance ... is this an issue?
Posted by abw136 NO[at]SPAM psu.edu at 9/12/2003 5:55:04 PM
I am about to start a project using c#. Performance is a concern, and
I was curious to know the performance of c# as it compares to C++ and
Java. Any comments?... more >>
Object destroying problem...
Posted by Roman S. Golubin1709176985 at 9/12/2003 5:49:23 PM
Hello everybody!
I wrote an project with one class (Class) and two forms (Form1, Form2):
-----------------------------------Form2AndClass1Begin----------------------
------------------
public class Class
{
public void Form2_Closed(object sender, System.EventArgs e)
{
((Form2)send... more >>
Network Programming Help - Fun with UPS
Posted by Scott C. Reynolds at 9/12/2003 5:27:10 PM
I need to do something in an asp.net application to get shipping costs
from UPS.
a)does anyone have any C# code for this? That would be immensely
helpful as then I could examine it and apply it directly to my problem
2)if not, can someone help me out with the network programming? there
... more >>
GDI¡¢OnPaint¡¢AutoScroll
Posted by NewSun at 9/12/2003 5:02:29 PM
I draw a grid on a panel.And panel1' property AutoScroll is set true.When
HScroollBar is Scroolling,the grid is error.
I have rewritten the mathod of WndProc.But the effect is unexpected.
How can i do? Thx a lot.
Main codes go here:
class frm
private MyApp.Panel panel1;
this.panel1.Pain... more >>
Dynamically Form Property Setting (Urgent)
Posted by Ahmet at 9/12/2003 4:53:05 PM
Hi all;
I have one application in which I read form names from database to be =
opened.
I open form with the code below, and call its show method for form to be =
shown
but before this, I must set MdiChild property to true to make this form =
child
I can call functions as you can see li... more >>
Event Reflection
Posted by BK at 9/12/2003 4:47:15 PM
Hi,
I have a class which has a lot of events (>100). For some reasons, I have to
go through all invocation lists to do something. What I'm wondering is that,
is there any way to use reflection to get their InvocationList without going
through each event?
// tedious
foreach (Delegate handle... more >>
Evidence in XslTransform.Load()
Posted by Mike Schilling at 9/12/2003 4:36:19 PM
In 1.0, there was a method call:
XslTransform.Load(IXPathNavigable, XmlResolver)
In 1.1, compiling a call to it gives a warning that this signature is
obsolete and evidence should be suppied, that it, that a call to
XslTransform.Load(IXPathNavigable, XmlResolver, Evidence)
is prefer... more >>
How do I download with c# ?
Posted by Du Dang at 9/12/2003 4:25:30 PM
i wanna create a bot to download wallpaper from a website
cuz there are thousands of pic availiable and right click and "save as"
ain't fun no more
so far i got this from google
+++++++++++
WebClient Client = new WebClient();
Client.DownloadFile(url, save_as);
+++++++++++
but that ... more >>
Getting classes running
Posted by toki at 9/12/2003 4:16:26 PM
public class Form1 : System.Windows.Forms.Form
{
MyClass myclass;
public Form1()
{
myclass = new MyClass();
}
}
In one moment i need to know all the classes created. How
can i know this. I can get all the controls with
System.Collections.IEnumerator enume = ... more >>
passing a method
Posted by memememe at 9/12/2003 4:08:34 PM
Is there a way to pass a method as a paramenter when you call a method,
kinda like you do when you create an event handler.
Basically I want to be able to call method A() and tell it to call method
B() but sometimes I want it to call method C(). I know how to design this if
I use interfaces or a... more >>
Reading Binary Data.
Posted by Ady at 9/12/2003 4:01:30 PM
Hi,
I am trying to create an editor and the structure of our existing files are
as follows.
In C# how would I read the following binary data from a file and convert it
into usable data.
// c code
typedef struct
{
float x0, y0, z0;
float x1, y1, z1;
float x2, y2, z2;
... more >>
Cursor Hotspot
Posted by John J. Hughes II at 9/12/2003 3:37:52 PM
Using the Visual C#.Net editor I have created a cursor.cur file as a
resource. I would like to be able to set the hotspot. The problem is the
"Set Hotspot Tool" is deselected. Anyone have a clue how to get it enabled?
Regards,
John
... more >>
using "System.Security.Cryptography;"
Posted by '[] WiRaN at 9/12/2003 3:19:56 PM
somebody has some example of criptografar given to be recorded in the data
base?
'[] WiRaN
... more >>
Unmanaged code interface : Java JNI vs .NET interoperability
Posted by Sai Kit Tong at 9/12/2003 2:38:42 PM
Hi,
I am developing a new application running on Windows platform that needs to
interface with existing legacy code - written in basic C / C++. I am trying
to evaluate Java vs C# implementations. Originally, I have the impression
that C# should be a clear winner.
I started with Java and usi... more >>
Custom control clipping (irregular shape)
Posted by ppyrstr at 9/12/2003 2:29:59 PM
I have been trying to figure out how to have a custom
control that is irregular (non-rectangular) not interfere
with other elements on the screen that may interfere with
it's "regular" shape (the control defining rectangle).
For example, if I make a custom control that simply paints
a cir... more >>
Execute Unix command using C#
Posted by Joseph at 9/12/2003 2:01:29 PM
Hi,
I am trying to develop a C# application that will run
on Windows that will do the following
* Select file name to process
* FTP the file to a UNIX server
* Process this file on UNIX using a program on UNIX
"./pgmname -options Infilename > OutputFilename"
* FTP the output of this ... more >>
SOLUTION!!!
Posted by Kevin at 9/12/2003 1:59:04 PM
This was it Greg.
http://www.asp.net/faq/ms03-32-Issue.aspx
Maybe you can use it in the future.... more >>
Is there a way to do a property with an indexer?
Posted by bgoldstein14 NO[at]SPAM hotmail.com at 9/12/2003 1:34:52 PM
I know that a Class can have an indexer, but can one or more
properties be created with an indexer? You could do this in VB6..
such as:
MyProperty (ByVal Index) As String
MyPropety = MyVal(Index)... more >>
Intellisense parameter dropdown for enum parameter, How?
Posted by msnews.microsoft.com at 9/12/2003 12:42:46 PM
How do I get Intellisense to open a dropdown list box for a method's
parameters when the parameter is an ENUM?
public class MyClass
{
public enum IDkind
{
PersonID,
EntityID,
PlaceID
}
/// <summary>
/// Gets an ID value of a parti... more >>
Highlight DataGrid Row
Posted by Michael Ramey at 9/12/2003 12:36:40 PM
I'm using the following code to highlight the current row:
private void Datagrid1_CurrentCellChanged(object sender, System.EventArgs e)
{
DataGrid1.Select(DataGrid1.CurrentRowIndex);
}
The entire row is selected, but the cell with cursor in it, shows the grid
value as selected. The loo... more >>
System.Net.dll System.IO.dll not found
Posted by Edel at 9/12/2003 12:29:08 PM
I have installed SDK 1.1 and the redist
then I run : sdkvars.bat to set up the the environment.
I copy a little program just try , this program is trying
to connect to Yahoo mail.
when I compile using
csc /r:System.Net.dll /r:System.IO.dll pop.cs
( according to the author's instru... more >>
can't run web apps
Posted by Kevin at 9/12/2003 12:17:58 PM
I returned to .NET from working in VC6.0 today and I can
no longer run my lcoalhost webapps.
The message I get in the browser is "Server Application
Unavailable ... An error message detailing the cause of
this specific request failure can be found in the system
event log of the web serve... more >>
Drive Space Polling
Posted by John Cantley at 9/12/2003 11:48:40 AM
I need to write an app that keeps check on our drives. I have tried using
DirectoryInfo and Directory but it is way too slow. I have a new 2 terrabyte
server going into production on Monday. Is there a way to just get the size,
space used and space available, just like in the properties when look... more >>
C# equivalent of VB "Module"
Posted by BH at 9/12/2003 11:44:28 AM
Hi
what would be the C# equivalent of a VB.NET file that looks like this:
Module Utilities
Public Sub UtilitySubOne ( ByVal arg As String)
// blah blah
End Sub
Public Sub UtilitySubTwo ( ByVal arg As String)
// blah blah
End Sub
End Module
....VB.NET has the concept of ... more >>
webapp - what log file?
Posted by Kevin at 9/12/2003 11:40:41 AM
I use debug->"Start without debugging", I get the
following message on the browser window. What log file
is it talking about?
Server Application Unavailable
The web application you are attempting to access on this
web server is currently unavailable. Please hit
the "Refresh" button in... more >>
can't run webapps
Posted by Kevin at 9/12/2003 11:34:41 AM
I returned from VC6.0 work to webapp work today and fo
some reason I can't run my webapps anymore.
Here is what is happening:
I use an F5 to run and debug. I get an error
window "Unable to start debugging on the web server.
Server side-error occurred on sending debug HTTP
request." I... more >>
Object reference not set!
Posted by Gilgamesh at 9/12/2003 10:33:04 AM
Hi,
Assigning the DataSource of a Combobox to a dataview, on a win form, throws
the exception "Object reference not set to an instance of an object". The
ComboBox has already been created and is a valid object. The Dataview is
also valid and has data in it. Any idea why this exception is thrown?... more >>
Printing using PrintDocument
Posted by Randy at 9/12/2003 10:29:00 AM
Hello,
I'm trying to print a dataGrid using PrintDocument control. My datagrid has
about 23 columns so it is fairly wide. When I use the PrintControl, it
prints only the part of the dataGrid that is visible on screen. I tried
using PrintPreviewDialog too but it still only shows just what is visi... more >>
grid capabilities
Posted by Ahmet at 9/12/2003 10:28:12 AM
Hi;
I wonder whether I can do these with GridControl or not
1-) Disable multiple selection of user
2-) Automatically select whole row when a cell of one row is selected .
regards..
... more >>
Form Painting
Posted by Christian Pické at 9/12/2003 10:18:52 AM
Hi,
At some time I want to display a form with a progress bar on it. However,
the progress bar already starts to run before the form had the time to build
up completely (that is: I can see the content of the underlaying form on
it). How can I prevent that my code starts to run before the form ... more >>
Why does @"""" result in "\""" ??
Posted by jblake NO[at]SPAM closerworlds.com at 9/12/2003 9:53:19 AM
I posted a related problem today. The problem is this:
string str1 = @"""";
When I execute this code (even in a bare bones application), in the
IDE it returns "\"""
Why? Even in the immediate window it return this. Anywhere where I
attempt to use two apostrophes, it inserts a backslash. E... more >>
Function calls across forms
Posted by Shaun Pudwell at 9/12/2003 9:27:08 AM
Hi, I am very new to C#, so this may seem to simple to be
true. Anyway, the problem is this: I have my MainWindow
class and an MDI child window and its associated class.
The class MainWindow class has a function called
DrawChart. My MDI child needs to make a call to DrawChart.
Now I k... more >>
Password
Posted by Ahmet AKGUN at 9/12/2003 8:39:53 AM
Hi; In my application, I must hold database password in a configuration
file at client.
Two questions,
* Is there way to keep password easily using an ini file structure ?
( I cant use registry , because program will place on one path on network
and all clients will run them from this ne... more >>
dllmain
Posted by Michael Roper at 9/12/2003 8:36:58 AM
In Jesse Liberty's "Programming in C#" he says that "...an assembly must
have exactly one entry point: DLLMain, WinMain, or Main. DLLMain is the
entry point for DLLs..."
In the MSDN ".Net Framework Developer's Guide" it says that "...each
assembly can have only one entry point (that is, DllMa... more >>
Drag and drop Listbox to Textbox
Posted by Jonathan Dixon at 9/12/2003 7:44:40 AM
I have a list box called "listbox1" and a text box call "testbox1"
I have read all the msdn stuff about drag and drop. Can somebody throw
me a bone and tell me how to drag from the listbox into the text box.
If everything in life was simple why bother doing it
*** Sent via Deve... more >>
WARNING: Has Microsoft's Windows Update Screwed the .NET Framework??
Posted by jblake NO[at]SPAM closerworlds.com at 9/12/2003 6:56:27 AM
This morning I ran Microsoft's Windows Update from
http://v4.windowsupdate.microsoft.com/en/default.asp
After hours of development, I have now discovered something horrible
has happened with the .NET.
The .NET Framework no longer has the Concat method in the strings
class. I just posted ... more >>
Why doesn't the apostrophe get created in a string?
Posted by jblake NO[at]SPAM closerworlds.com at 9/12/2003 6:27:45 AM
I want the following string to be created:
hello "Bob"
This is how I've been doing it up till now...
string s = "hello\"bob\"";
An alternative is...
string s = "hello ""Bob""";
Why is that it no longer works on my system? I keep getting
"hello\"Bob\""
No matter what I do, the... more >>
Disable items in a CheckedListBox
Posted by Bobby at 9/12/2003 5:54:06 AM
I want to enable/disable individual items in a checkedlistbox. I have a
field in a db that tells me whether the item should be enabled. I am
just not sure how to disable an item in the checkedlistbox
Thanks,
Robert
*** Sent via Developersdex http://www.developersdex.com ***
Don't just pa... more >>
Tivoli C library and unsafe C# (a void** problem)
Posted by netronproject NO[at]SPAM hotmail.com at 9/12/2003 5:45:04 AM
Concerning marshalling of unmanaged data types from and to a
C-library, what does this error mean?
"An unhandled exception of type
'System.Runtime.InteropServices.MarshalDirectiveException' occurred in
TivoliUML.exe
Additional information: Can not marshal parameter #1: Invalid
managed/un... more >>
Tivoli C library and unsafe C# (a void** problem)
Posted by netronproject NO[at]SPAM hotmail.com at 9/12/2003 5:39:55 AM
I have a C-library API to the Tivoli LDAP allowing to manage users and
groups.
The user management is an ASP.Net application and this library should
update/synchronize the LDAP.
The C-lib signature is:
int SIT_Registry_Initialise( void ** _LdapSession ,
char* _szHost_Port,
char* _szAdmin_... more >>
GetType returning null
Posted by Marco at 9/12/2003 4:56:02 AM
Hi.
I am trying to get a type object using GetType. For this,
I use:
Type type = Type.GetType("System.Windows.Forms.TextBox");
But after this line, when I check, type is null.
What am I doing wrong ? How to do it right ?
Thank you and God bless.
_____
Marco... more >>
Calling IL instruction from C# code
Posted by jean_stax NO[at]SPAM hotmail.com at 9/12/2003 3:26:34 AM
Hi !
I am looking for a way to call IL instruction from withing C# code. I
am not talking about System.Reflection.Emit sort of topics, but rather
about existing C# code, where I want to call IL instruction.
More specificly, I want to call "OpCodes.Nop" instruction in C# code
in order to mak... more >>
Poor Intellisense
Posted by Tobias Lekman at 9/12/2003 3:17:38 AM
Hi,
I was wondering whether the (compared to VB.NET) poor
Intellisense will be upgraded in a service release, or do
I have to wait for the next VS.NET? Is there an inherent
reason for the lack of a speedy Intellisense engine in C#??
Regards,
Tobias... more >>
Exception when try to INSERT into Access-DB
Posted by Jazper at 9/12/2003 3:06:01 AM
Hi i got a big problem and don't know how to solve it...
i have an access DB and try to insert a new record!
Fild1: ID - Numeric - PrimaryKey
Fild2: User - Text
//---My ConnectionString----------------------------------
Application["OleConStr"]
= "Provider=Microsoft.Jet.OLEDB.4.0;Mo... more >>
HTML page
Posted by Ramesh at 9/12/2003 2:21:52 AM
hi,
I have some basic questions. Can anybody explain me the
following doubt:
1. In my asp page, right click and selected HTML source
code.
Added following method.
<script language="javascript">
private void Page_Load(object sender, System.EventArgs
e)
{
aler... more >>
increase the size of the array
Posted by reb at 9/12/2003 12:53:00 AM
Hi,
How do i increase the size of the array without losing the
data of that array in c#?
thanks ... more >>
Internet Connection Type
Posted by bluetears76 NO[at]SPAM yahoo.com at 9/12/2003 12:23:14 AM
I want to find out what is the internet connection type of my
computer. i.e. Am i connected via 56K modem, DSL, Cable, T1, T2, T3.
Or if i am in a Lan, what is the connection type on the gateway?
How can I find it out using C#?
Thanx in advance for any response
p.s. I am a starter in C#... more >>
Stop Labels Wrapping Text
Posted by Buddy at 9/12/2003 12:08:45 AM
Hello,
Does anyone know how to stop labels from wrapping text. If
the text is to long for the label then I want it to hide
the text just like out the TextBox control works.
Thanks,... more >>
|