all groups > c# > april 2006 > threads for monday april 24
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
Add image to button at Runtime
Posted by vighnesh at 4/24/2006 11:14:26 PM
Hai All
Can Anyone Please suggest me how to add an image to a button at runtime
using VB/C#.NET . That image has to blick so it has the user attention.
Thanks in advance.
Regards
Vighneswar
... more >>
Windows Service
Posted by apondu at 4/24/2006 11:08:10 PM
Hi,
I am trying to write a windows service using the option that is present
..Net. I am using the window service project. I have written a simple
window service and even created a installer for tht by using the option
present in widow service. When i try to execute the window service
using in... more >>
How many methods/structures/enums can be exposed?
Posted by Ripal at 4/24/2006 10:38:26 PM
Hi
I am facing problem descripbed as follows:
I have 4 enums, 10 structures and methods exposed via web method
It was working fine till the 7 structures after adding more 3
structures I am not able to create the instance of the 2 structures out
of 10.
Is there any limitation for struct... more >>
Bitmap and Icons
Posted by jaumef_2000 NO[at]SPAM yahoo.nospam.com at 4/24/2006 9:13:29 PM
Hello, I'm developing a Standard Windows App and I need to deal with
Icons.
I've read lots of posts about them and I'm missing something. I put
this code in a button click in a new brand new solution:
Bitmap bmp = new
Bitmap(System.Reflection.Assembly.GetExecutingAssembly().GetManifestResou... more >>
HTTPS Connectivity in C#
Posted by Ashish Jindal at 4/24/2006 9:12:59 PM
Hi,
Not sure if this is the correct forum to ask... I am looking for C#
library for HTTPS Connectivity.
Or is there anything I can do to tweak WebRequest to make it work with
HTTPS, like for example setting some SSL Transport Provider...
Any pointers would be very useful.
... more >>
tell(), seek()
Posted by seannakasone NO[at]SPAM yahoo.com at 4/24/2006 8:04:23 PM
Are there equivalents to C's tell() and seek() calls?
... more >>
string formatting dollar amounts
Posted by tshad at 4/24/2006 8:04:20 PM
I need to convert a number I get from my Sql table (where the value is a
string) to a string and have it be a precision of 2 and I want to reverse
the sign.
I originally used:
String.Format({0:c},dr["Amount"])
but then I needed to reverse the sign. The problem is that if the value is
... more >>
from List <double> to double[]
Posted by Web learner at 4/24/2006 7:25:42 PM
The following code works fine
private List<double> GetDataFor(string column, int selectedYear) {
-------
-------
return list;
}
foreach (double item in GetDataFor("AirTemp", selectedYear)) {
Response.Write(item.ToString() + ", ");
}
It shows data as follows:
37987, ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Parsing HTML with C#
Posted by Paul E Collins at 4/24/2006 5:50:28 PM
I want to extract a few simple elements from an HTML document
(Transitional 4.0, so not necessarily something that can be handled by
an XML parser). I've got as far as adding a reference to
Microsoft.mshtml, but now I don't know what's what.
The IHtmlDocument interfaces seem to be potential... more >>
Detect Changes to maually built DataTable
Posted by Joe at 4/24/2006 5:43:23 PM
Hi
I am building a datatable manually and putting in a grid
I would like to edit a row then determine that the table has changes and
needs to be saved
The problem I am having is that all the rows in the datatable have a state
of "added" and when I change
a row it still has a RowState o... more >>
Opening a dbf File
Posted by Ctal at 4/24/2006 5:34:03 PM
Hi,
I'm having some trouble opening a dbf file in my application. I'm
getting an oledb exception with the error message:
Message @"'C:\Work\comp310.dbf' is not a valid path. Make sure that
the path name is spelled correctly and that you are connected to the
server on which the file reside... more >>
Disable focus on controls?
Posted by brianbasquille NO[at]SPAM gmail.com at 4/24/2006 5:15:19 PM
Hello all,
Simple enough question here, i think!
I have a form which i want to work exclusively with the mouse but
pressing up and down gives focus to two buttons which i have on the
form?
How could i disable focus entirely?
Regards,
Brian
... more >>
Remoting Question
Posted by Demetri at 4/24/2006 5:01:02 PM
The only way I can ask the question I have is to present an example.
Lets say I have a server application (server.exe),that runs unattended of
course, and goes out every 20 minutes and gets stock information and holds
the info it finds.
I have a client app that provides a button that a use... more >>
REPOST: Error Using WMI to Get List of Shared Folders on the Server
Posted by lecnac at 4/24/2006 4:30:11 PM
Sorry for the repost. I must have done something wrong when I tried to post
my reply (I can't seem to find it).
Anyway, I'd really appreciate any help that anyone could provide. My issue
is quickly becoming more and more urgent.
I've tried the code below using the server's local Admini... more >>
AxWebBrowser and an E_FAIL! ... oh why did I become a programmer?
Posted by RobKinney1 at 4/24/2006 4:30:01 PM
Oh--- I have about ripped all my hair out of my head on this one. I have
spent many sleepless nights pondering, tweaking, and cursing this error.
Please, please. Please I hope someone can help.
I have a program with 2 web browsers (of type AxSHDocVw.AxWebBrowser).
Whenever I click my sim... more >>
VS 2003 and VS 2005; can they coexist together ?
Posted by Mike at 4/24/2006 4:25:01 PM
Hi! Before I ruin my PC, can somebody please tell me if both studios and
frameworks can live in piece on the same PC? What about VSTO's ?
Thank you in advance,
--Michael ... more >>
ReplacementStrings on EventLog entries Messages
Posted by Washington Moreira at 4/24/2006 4:06:01 PM
Hi All,
I need help with ReplacementStrings on EventLog messages.
The question is: How to replace things such %{SID} and %{GUID} inside
EventLogEntry.Message?
When the case is %{SID}, I solved by using SecurityIdentifier and
IdentityReference classes. But when the case is %{GUID}, few t... more >>
programmaticaly invoke the button onclick method InvokeOnClick no
Posted by cindy at 4/24/2006 3:26:02 PM
I have a form, has javascript registered so a modal pops up.
Button click will close form.
Now I need to do an update with modal form data before it closes.
I can put a second button and register the onclick attribute of the second
button
to the javascript to close the form after user clicks u... more >>
Filtering when using DataGridView
Posted by Satya at 4/24/2006 2:15:34 PM
Hi,
I am using a DataGridView to display a large amount of data and so
need to use filters for displaying certain data. For this I want to
provide a textbox for each column of the DataGridView so that the user
can type in any text and use that text as the filter. I would like to
have this te... more >>
dataset, sqladapter
Posted by Hrvoje Voda at 4/24/2006 1:15:09 PM
How to refresh dataset and sqladapter after using store procedure?
I tried to call update on sqladapter but it doesn't work. Only when I close
program and call it again a change is visible.
Hrcko
... more >>
Obtaining all IP Adressess in the Network in C#
Posted by Chetan at 4/24/2006 12:40:22 PM
How to all IP addressess in the network i.e. that system r connected to
network....
How to implement "netstat -n" command in C#....
plz help me....
... more >>
When does it make sense to use static methods
Posted by Thirsty Traveler at 4/24/2006 11:02:15 AM
I am still a little confused on when it makes sense to use static methods.
For example, if we have a web page that calls a business logic layer that
calls a data access layer, should the method calls be static if no data is
stored as state in the components?
... more >>
Parsing a http response
Posted by nick.spacek NO[at]SPAM gmail.com at 4/24/2006 10:42:20 AM
Hi everyone,
I'm using some packet sniffing code to grab HTTP packets, and I want to
turn the packets into a (preferably) HttpWebResponse. Is there any
way to do this, or am I going to have to write my own class to do this?
Thanks,
Nick
... more >>
File system GUID for a file
Posted by Tarren at 4/24/2006 10:13:47 AM
Hi:
I need to get the unique GUID for a file, so I am using API calls through
System.InteropServices
I am using
BY_HANDLE_FILE_INFORMATION
and
dwVolumeSerialNumber
to get the unique FileSystem GUID for a particular file. Is this the
appropriate property? I am getting unique nu... more >>
Why doesn't intellisense show comments?
Posted by Brett Romero at 4/24/2006 10:10:52 AM
I've added comments to a method in A.dll. B.exe references A.dll. I
see the new method and only the stock comment (type methodname()) in
intellisense. However, when I use object browser from B.exe to view
A.dll, I see the new method and all the comments. How do I get the
comments to come thr... more >>
ClickOnce Code Security
Posted by Mr. Beck at 4/24/2006 9:48:02 AM
I am in the process of creating a C# ClickOnce application that will be
deployed in the coming months. I was initially thinking of deploying it
through Windows Installation but due to the need of regular updates to the
program on the client end, ClickOnce led itself to be the better candidate... more >>
Is it right strategy for control two similar instrument?
Posted by lotus at 4/24/2006 8:10:22 AM
Hi all.
I want to control two different instrtument but have simliar
functionality.
Acually the fisrt one is controlled by using serial communication, and
the other is controlled by LAN communication.
The number of instruments will be extetned by 5 or more.
So If user select instrument (ex. ... more >>
Dynamic HTML tables
Posted by stephen.clancy NO[at]SPAM gmail.com at 4/24/2006 8:04:13 AM
If I define a table with no rows in the aspx page and then add rows in
the aspx.cs, how do I get the number of rows in the table? Currently it
just returns 0, even after I add 8 rows.
... more >>
saving to virtual path
Posted by bombdrop at 4/24/2006 8:03:15 AM
trying to save a file to a virtual path
[code]
StreamWriter sw = new
StreamWriter(@"\vm-extranet\c$\Inetpub\wwwroot\eclaim\Eclaim.csv");
[/code]
get error can not find path, any one know what i need to do?
... more >>
Question about C#
Posted by readytoride39 NO[at]SPAM hotmail.com at 4/24/2006 7:28:54 AM
I am curious where does C# fit in regarding C and C++? Is it an
extension of standard C with just a fancy name to take into account
..NET or is more than that? I am a C programmer so I am curious to know
what it does differently in case I see a job posted for a C# programmer
instead of a C pro... more >>
How can I SetType()?
Posted by CodeRazor at 4/24/2006 7:04:03 AM
I have an file from which I retrieve a type name. (i do not know what the
object type will be).
For argument's sake, the string data retrieved is
"System.Data.SqlClient.SqlParameter"
How can I create an object of type System.Data.SqlClient.SqlParameter from
this string, without prior kno... more >>
Is it possible to send IP packets with C# ?
Posted by Deephazz at 4/24/2006 7:02:01 AM
Hello,
Is it possible to easily send ip packets with cSharp (ie. magic packet for
wake on lan purpose)
Rgds.... more >>
Multi threaded app database access
Posted by Macca at 4/24/2006 6:56:02 AM
Hi,
I have a multithreaded app which now needs database storage.
I am in the process of designing my Data Access Layer but and was wondering
what issues I should look for for in regards to a multi threaded app.
My app will be need to initiate access to the database from several places
i... more >>
Use C# method attributes for standard exception handling
Posted by Koen at 4/24/2006 6:21:27 AM
Hi,
I have been reading a bit basic stuff about method attributes in C#,
and I wanted to build the following functionality with it:
if a method has the custom attribute <LogException> the method has to
be wrapped as follows:
try
{
// call method
}
catch(System.Exception ex)
{
Sav... more >>
How do I get separate items out of an 'object' array?
Posted by jay1_z at 4/24/2006 6:16:15 AM
Here is my code in VB:
Return Me.Document.GetItemValue("Subject")(0)
The "GetItemValue" method returns an 'object' array, and the first item
in the array is a string. This works for me in VB but when trying to
convert this to C#:
return doc.GetItemValue("Subject")... more >>
login check to reset password after 90 days
Posted by jwasden NO[at]SPAM gmail.com at 4/24/2006 5:26:01 AM
I have been assigned the task of developing a login.aspx page for a
website that pulls the user information from the tblUsers table in the
sql database. After the username is verified, it has to be reset after
first login and again after 90 days. This is something I have never
done before and I ... more >>
Response.Write ignores the user control.
Posted by JT at 4/24/2006 4:51:10 AM
I'm writing a webshop for my company. I created the user header control
and placed it at the top of my form. I have server controls underneath
(TextBox, Command Button, Dropdownlist) which search for products based
on criteria. I then use "Response.Write" to print the results to an
HTML table un... more >>
Regex
Posted by ipramod NO[at]SPAM gmail.com at 4/24/2006 4:17:22 AM
Hi
Can anyone tell me the meaning of the following regex:
^.*1234
^.*\n.*1234
^.*1234.*\n.*1234
^.*[0-9]+.*1234
^.*1234[0-9]+
Let me know ASAP.
Regards
Pramod
... more >>
how to add Image array / ImageList.ImageCollection to a control?
Posted by Kristopher Wragg at 4/24/2006 2:39:16 AM
Hi,
I'm creating a customized picturebox that will have an array of images
and some properties that will allow the picturebox to change its image
to one of the images in the array depending on events that it registers
for...
I'm having trouble storing an array of images though,
I've trie... more >>
Best practice for validating data bound business objects?
Posted by Furty at 4/24/2006 2:33:01 AM
Hi,
I'm looking for the best practice for creating a generic data validation
implementation for my data bound business objects. I currently have a
business object base class implementing the following interfaces:
IEditableObject, ICloneable, INotifyPropertyChanged, and IDataErrorInfo
Mor... more >>
Get File size
Posted by Code Monkey at 4/24/2006 2:29:45 AM
Probably an old topic...not sure.
If I'm developing a web site with file upload, is it possible to get
the size of the file BEFORE the upload starts? I don't want to rely on
the web.config 'maxRequestLength' as if the user uploads say, a 20Mb
file and I want to limit them to 10Mb....it'll anno... more >>
Comment Inheritance
Posted by Tris.Phillips NO[at]SPAM gmail.com at 4/24/2006 1:32:27 AM
Hi All,
This may be a silly question, but:
Is it possible for a child class to inherit a base classes <summary>
tag info for an overridden method?
Cheers,
T
... more >>
callbacks
Posted by csharpula csharp at 4/24/2006 12:02:01 AM
Hello,
I have one callback ,2 onEvent on this callback and 2 kinds or args.
Will it be possible to add different kind of args to one callback on
different events? If so,how?
Thank you!
*** Sent via Developersdex http://www.developersdex.com ***... more >>
How to UTF-8 encode a string?
Posted by jens Jensen at 4/24/2006 12:00:00 AM
hello,
i'm doing utf-8 encoding the following way.
string message;
UTF8Encoding utf8 = new UTF8Encoding();
Byte[] encodedBytes = utf8.GetBytes(message);
message = encodedBytes.ToString();
can someone correct me?
many thanks
JJ
... more >>
Big perfornance problem with HTTP requests
Posted by Mike Davies at 4/24/2006 12:00:00 AM
Hi,
I'm developing an APP which pushed web content to various devices on a
LAN (these devices happen to be IP phones).
I need to broadcast a HTTP message to maybe 100 phones at a time but
this is really slow. I've tried different things but not sure what the
right way to go is. First way is... more >>
How to work with .INI-files from C# ?
Posted by Oleg Subachev at 4/24/2006 12:00:00 AM
Are there good classes to work with .INI-files from C# ?
Oleg Subachev
... more >>
Failed to import ActiveX COM object, ShockwaveFlash
Posted by BisSoft at 4/24/2006 12:00:00 AM
Hi
I tried to import SchokWaveFlash COM object onto my form. I succesifuly
find it in Reference browser within COM objects and add it to the toolbox,
but when I drag the control on the form it gives me the following message:
"Failed to import ActiveX Control. Please ensure that it is properly... more >>
|