all groups > c# > june 2005 > threads for wednesday june 8
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
CRC .NET
Posted by Larry at 6/8/2005 11:34:15 PM
Hello,
Is there a framework class that implements CRC 32 algorithms. I could not
find on msdn, I just want to make sure that I didn't miss it.
If not can anyone explain how CRC32 algorithm can be implemented.
Thank you
... more >>
Need help with DataSet
Posted by Ljoha at 6/8/2005 11:12:07 PM
I have webapp where I am getting data from webservice. To show this
data I am using DataSet and DataGrid. Here I have two columns and I
would like to change value in "hour" column (value in this column
always same). Ex: if I have 0 - I would like to change it to "00:00".
How I can do that?
... more >>
directx questions
Posted by Aaron Lovi at 6/8/2005 9:41:04 PM
Hi,
I'm a noob trying to use managed DirectX (VC# 2003, DX9.0 Apr 2005 SDK). I
used to use OpenGL with QT and VC++6.0, but I was a relative newcomer to
that as well.
When I used OpenGL, my understanding was that if you used display lists,
your vertices would normally be held in memory o... more >>
Web Services
Posted by Maziar Aflatoun at 6/8/2005 6:42:46 PM
Hi,
Is there a way to connect to a Web Service dynamically at runtime (Web
Reference URL)? I have always used Visual Studio to create a Web Reference
and then used it in my code. However, that always requires the URL to the
Web Service to be the same on the staging site and the production ... more >>
Quest: Using Resource in C# app...
Posted by bj7lewis at 6/8/2005 5:09:01 PM
I am working on a project I want to add a few files as resource to
access(copy them to FS and use) at runtime.
So far in VS.NET IDE, I Add Files to the project and set its Build Action to
Embedded Resource...
Now where should look next...
Any help...
... more >>
Getting at variant containing safe array from COM object?
Posted by Grant Schenck at 6/8/2005 4:39:04 PM
I have a COM object which has a method which returns a variant which
contains a safe array of variants.
Does anyone know what the syntax would be to access the actual elements as
integers fro a C# program?
I can access from VB 6 without any issues.
I see from intellisense that the method ... more >>
Datagrid Problem
Posted by Stuart Ferguson at 6/8/2005 4:07:30 PM
I currently have a datagrid which is populated from a dataset table
however the contents of the table how can i clear the grid and
repopulate it ?
*** Sent via Developersdex http://www.developersdex.com ***... more >>
user web control (ascx) textboxes will not position
Posted by cindy at 6/8/2005 3:27:02 PM
I have a web form I checked body tag it is
<body ms_positioning="FlowLayout">
I load a user control on form, all the textboxes position like they are in
grid layout
I cannot drag them. What am i missing
I am doing something really dumb please help me.
--
cindy mello... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Handling COM event from C#?
Posted by Grant Schenck at 6/8/2005 1:46:29 PM
I have a COM object which throws a simple event.
The event signature is:
void EventReady();
I see that Intellisense shows the events.
I assume I need to code up a member function with the same signature, i.e.:
void MyEventReady()
{
}
This shows code from my simple test program. ... more >>
Worker thread vs BeginInvoke?
Posted by Jon Pope at 6/8/2005 1:10:36 PM
What is the difference between firing off a method via BeginInvoke, and
running code on a worker thread? Based on the documentation, it would
appear that the asynchronous call created with BeginInvoke does the same
thing as a worker thread, but the async call runs in the UI thread.
Cheers,... more >>
getting small icon from embded icon resource
Posted by Brian Henry at 6/8/2005 12:27:28 PM
I have an icon in my app as an embeded resource.. i am accessing it through
the assemblies getmainfestresourcestream method of the assembly. The icon
has a 32x32 and a 16x16 icon in the same icon resource, I want to draw the
16x16 one on the screen, how would I do this? the only icon i get bac... more >>
.Net security for shared network driver
Posted by david.kao NO[at]SPAM opco.com at 6/8/2005 12:21:04 PM
Hi All:
Yesterday, we released our first .NET window based program on company’s
network. In order to make our .NET program run correctly from a shared
network driver, we also installed a security package on each desktop to make
each desktop to trust mapped network driver. In the security pa... more >>
Displaying HTML from memory
Posted by Tomaz Koritnik at 6/8/2005 11:41:35 AM
Hi
I have many short HTML files stored in a binary stream storage to display
descriptions for various items in application. HTML would be display inside
application using some .NET control or COM control (like Microsoft
WebBrowser). For each description there is one HTML file and along
descri... more >>
How to do image transition for screensaver?
Posted by VMI at 6/8/2005 11:41:12 AM
I'm working on a screensaver and I want to be able to switch between images
smoothly. Currently, it shows one image and after X seconds, it moves to the
next pic. Is there any way I can add some effects without going crazy
writing code? They don't have to be complex. As a matter of fact, the ... more >>
How do you reference an object trough its members?
Posted by M Shafaat at 6/8/2005 11:32:04 AM
Hi!
Consider the following:
Object A is a member of Object B.
Object A has a known identifier.
Object B has an unknown identifier.
How do we reference Object B using Object A?
I have tried using "owner", "container", "parent", etc. without success.
Please help.
It must be possible, th... more >>
Newbie question: how to use icons in main menu?
Posted by Dmitry Bond. at 6/8/2005 9:46:55 AM
Hello All.
I have running Visual Studio .Net 2002.
Currently I porting one application from Delphi to C#.
Almost all things is ported fine but I still unable to assign icons to items
in MainMenu in C# application. :-(
Looks like there is no such properties in C#.
In Borland Delphi there is "... more >>
Windows/forms in a listbox
Posted by GTi at 6/8/2005 9:05:31 AM
In Win32 I have a function that opens several Dialogs and put the
window handle in a listbox (together with a string):
HWND hWnd = CreateDialogParam(...)
LB_SETITEMDATA, index, (LPARAM)hWnd);
In this way when users select a different item in the listbox I just hides
the old window handle,
... more >>
Up/Down keys aren't recognized when button in focus
Posted by melanieab at 6/8/2005 8:53:09 AM
Hi again,
With much help, I've finally gotten the Tab key to be recognized when a
textbox is in focus, but now I'm having trouble with the up/down keys when
they're focused on a custom button (on KeyDown, when I ask to show keyCode,
nothing happens (except for Enter) so the focus goes to some... more >>
Rebar or CoolBar available?
Posted by Developer at 6/8/2005 8:26:21 AM
Before I start working on my own version I'd like to be sure that makes
sense.
In previous Windows there was a control called Rebar and/or CoolBar or
something like that.
It was a container that Toolbars could be put into and the moved around at
run time.
I don't see anything like tha... more >>
Convert VB.NET to C#.NET
Posted by Gee at 6/8/2005 8:23:53 AM
Hi
Can anyone help me convert this to C# please?
Structure NETRESOURCE
Public dwScope As Int32
Public dwType As Int32
Public dwDisplayType As Int32
Public dwUsage As Int32
Public lpLocalName As String
Public lpRemoteName As String
... more >>
RT Forms
Posted by Trond at 6/8/2005 8:21:22 AM
I am wondering how i should develop a web application. The customer wants
some pages that contains controls like leds and graphs that is displaying
current status. The data is Near Real Time data. So the led will be turned
on and off.
I do not want to solve this using meta refresh and have a ... more >>
Page Reload After Back Button - Submit Form Twice - Please Help
Posted by Frawls at 6/8/2005 7:31:05 AM
Hi
Can any one give me some help with this problem please?
Here is the scenario:
A user submits page 1 which is a web form.
After the form has been submitted they are (redirected) onto the next
page, page 2.
The user then clicks back on the browser.
They are now back i... more >>
.NET/Oracle/C#
Posted by Pat Ireland at 6/8/2005 7:22:03 AM
I am trying to do access a remote Oracle database
I have Oracle 10g Client software installed on my PC (10.1.0)
I have installed the .NET Oracle support from Microsoft.
I have added a reference in my C# project to the System.Data.OracleClient dll.
I get the following error on the open for the ... more >>
Postback to a different page?
Posted by Gee at 6/8/2005 7:01:20 AM
Hi,
I'm new to C#.NET but quite knowledgeable in ASP.
I usually write my websites to pass the page to view in the URL string.
This way, I have one page that does all the work and depending on what
page the user selects to view, the header/menus and footer remains the
same and only ... more >>
Dll, windows dorm, configuration file, web service
Posted by Iwan Petrow at 6/8/2005 6:29:43 AM
Hi,
I want to "discover" web services dynamicly. My main application is
windows forms and the form which use the web service is in a dll. But
when I compile the dll application it doesn't create the
application.config file.
What could I do to crete this file and to determine the url of the ... more >>
C# Override limitation..why?
Posted by Cliff_Harker NO[at]SPAM hotmail.com at 6/8/2005 4:48:34 AM
Why can't I do this in C#
public class A
{
public A virtual whatever( A a )
{
}
}
public class B : A
{
public B override whatever( B b )
{
}
}
Why does the signature of the override have to match exactly the base
version?
It seems like a perfectly safe thing to do so why... more >>
String method that counts substrings
Posted by CodeRazor at 6/8/2005 4:34:05 AM
Is there a string method that allows gives you the number of times a
substring appears in your string.
Looping through my string performing IndexOf("substring",startPos), seems
like overkill.
thank you.
CR
... more >>
textbox Keypress handler
Posted by Claudia Fong at 6/8/2005 2:51:28 AM
Hi,
I'm using the code below to control the user's input
if(!Char.IsDigit(e.KeyChar))
MessageBox.Show("You can only input digits","Add supplier
data",MessageBoxButtons.OK,MessageBoxIcon.Error);
But I want to control that user's input can be 0 to 9, because using
that code above, I ... more >>
DataGrid problem
Posted by chekban NO[at]SPAM gmail.com at 6/8/2005 1:24:55 AM
Hi,
I'm using datagrid for web-based program and i encounter a problem.
My datagrid comes with a template column using checkbox.
How do i generate events when user click on the check box ? when user
click on the check box in datagrid i need to refresh the data in
datagrid.
Pls help . thanks ... more >>
Using Reflection to get a Field Value from Control
Posted by tony lock at 6/8/2005 12:46:09 AM
I am writing a simulation program, the main classes inherit from a base class
which itself inherits from Control. I am using reflection to serialize these
objects including the fields from control. This works perfectly apart from
the field text in Control which always comes back null. Although... more >>
Convert Delphi to C#
Posted by Kostya Ergin at 6/8/2005 12:00:00 AM
hi, i am very new in C#.
How to do this in C#:
This is function:
function test(param: string): string;
begin
end;
I can get result of "test" function:
result := test(param);
And how to do in C# ?
... more >>
What is the "@" for?
Posted by Jason Huang at 6/8/2005 12:00:00 AM
Hi,
Would someone tell me what's the "@" for in the folloing code?
SqlCommand cmd = new SqlCommand( "SELECT * FROM Products WHERE ProductID
= @ProductID", con("Server=localhost; DataBase=Northwind; uid=YY;
password=XXXXXX"));
Thanks a lot.
Jason
... more >>
ListView
Posted by Fatima at 6/8/2005 12:00:00 AM
Hi all!
How can I change item's height in a ListView?
I appreciate you.
... more >>
Current state of CapLock key
Posted by Renny Undasan at 6/8/2005 12:00:00 AM
Is there a C# API that I can use to retrieve the current state of the
CAPLOCK key? Event like KeyDown only tells you when the key is fired.
Many thanks
... more >>
DDE
Posted by Simone at 6/8/2005 12:00:00 AM
Hello!
Is possible to use DDE in c#?
Simon.
... more >>
FileSystem Watcher not working in win98
Posted by Puneet Trehan at 6/8/2005 12:00:00 AM
Hi
i am using filesystemwatcher class in .net but that is not working in win98
& winNT.
Ifound that there are API like
FIndFirstChangeNotification & FindnextChangeNotification to get change
notification in win98 but it doesn't give the information that which file is
chnage & what is the change... more >>
|