all groups > c# > august 2004 > threads for monday august 9
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
force credentials
Posted by lasabo at 8/9/2004 11:41:02 PM
Hi,
is there a way to force a webclient to send credentials every time it post
data to a site? (on all subdirectories and forms to)
- la... more >>
Expanding the ListBox Control
Posted by pnp at 8/9/2004 9:52:44 PM
Hi all,
Which is the best way to expand the functionality of the Listbox control
so that each item besides storing the information of the displayed string
stores and other information and have the functionality of a class?
Thanks in advance,
-pnp
... more >>
ECMA-334: event variable declarator
Posted by Alex Sedow at 8/9/2004 8:43:39 PM
Standart describe grammar for events as (in EBNF):
event-declaration:
[attributes] [event-modifiers] "event" type variable-declarators ";"
[attributes] [event-modifiers] "event" type member-name "{"
event-accessor-declarations "}"
variable-declarators:
variable-declarator
... more >>
Need a Soundex algorithm for French/Spanish languages
Posted by Patrick Blackman at 8/9/2004 7:52:52 PM
Need a Soundex algorithm for French/Spanish languages ,Any ideas?... more >>
External table is not in the expected format
Posted by simon at 8/9/2004 7:45:12 PM
Hi,
My program try to export a excel file by using
Response.ContentType = "application/vnd.ms-excel";
Response.Write("<table><tr><td>");
But when i import it back to my system using Oledb, i got an error.
External table is not in the expected
format.System.Data.OleDb.OleDbException: ... more >>
Moving Text Cursor in a DataGridCell
Posted by tomasip NO[at]SPAM hotmail.com at 8/9/2004 7:18:56 PM
Hi,
I have a custom datagrid where I override the ProcessCmdKey method to
catch specific key presses. I would like to have it so that when text
is highlighted in a cell and a user presses a key such as Alt the text
cursor unhighlights and moves to the beginning of the text in the
cell.
Tha... more >>
Returning a substring with Regex
Posted by Mark Rae at 8/9/2004 6:35:23 PM
Hi,
I've been set the task of using Regex to strip off the postcode area from a
UK postcode, i.e. the bit before the first numerical character, as in:
"N11AA" returns "N"
and
"SW1A1AA" returns "SW"
I've been asked *specifically* to use Regex for this - can anyone help?
Thanks,
... more >>
COM Question
Posted by sdf at 8/9/2004 6:33:01 PM
Well, I got such a good quick response to my last post (thanks everyone,
btw), I thought I'd put this one to you people as well. It's a lot more
specific than network I/O, but I can't seem to figure it out:
I built a project in C#, it's a DLL that references other COM DLLs. I
build and r... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Application.Idle, remove event handler?
Posted by Chien Lau at 8/9/2004 6:06:09 PM
I have a form class that acts as a top level window. The user can open
and close any number of these windows throughout the lifetime of the
application. In the OnLoad, I have:
Application.Idle+=new EventHandler(Application_Idle);
....and in the Dispose() override, I have:
Application.... more >>
set item selected in listbox
Posted by xzzy at 8/9/2004 6:05:31 PM
how is the selected item set to selected in a listbox?
I cannot get .SetSelected[index, bool] to work.
... more >>
Can't set transpparent control as doublce buffer
Posted by °Ë´óɽÈË at 8/9/2004 5:45:18 PM
HI,
I create a custom transparent control, set the style is
ControlStyles.DoubleBuffer, It display black background. How
to create a double buffer transparent control?
The ralative code is:
// in constructor
base.SetStyle(ControlStyles.DoubleBuffer | ControlStyles.StandardClick ... more >>
MouseMove Event on Panel Controls
Posted by Jason at 8/9/2004 5:44:35 PM
I created a panel control and then place a rich text box inside the panel. I
set the richtext box so that it completely fills the entire panel. I want to
be able to handle a MouseMove event on the panel but when I add the event
handler it is never called. However if I put the event handler on the... more >>
Using GDI+ to create non-square custom controls
Posted by Jason at 8/9/2004 5:39:14 PM
I'm working on creating a little playing field map for a game I'm
programming in C# and I have some questions about GDI+ for custom controls.
Right now I have a class called Tile that I use to create a square tile with
some graphics on it. Then on my map I basically load a 2 dimensional array
of... more >>
Initializing Array of Structures
Posted by Harry Whitehouse at 8/9/2004 5:36:24 PM
I have some legacy C++ code in DLL format which has simple structures like
this:
typedef struct {
int weightoz;
int rate[6];
} MYRATES;
which are subsequentally intialized by a rather long set of numbers in a
format like this:
MYRATES MySuperRates[]=
{
{16, {385, 385, 385, ... more >>
Any way to programmatically get a list of all language encodings?
Posted by MJB at 8/9/2004 5:28:03 PM
I want to provide a way for the user to select the appropriate language
encoding - the way IE does it when you right-click a page and select
Endcoding. Is there an API somewhere that provides this information?
Btw, I'm using C#, but VBNET examps are always welcome.
TIA
... more >>
Scroll bars in image
Posted by Alberto at 8/9/2004 4:59:59 PM
I'm trying to load an image in a PictureBox but I want the PictureBox has
always the same size and if the image is bigger, show a scrollBars.
How can I do it?
Thank you
... more >>
Most efficient System.String iteration
Posted by Dennis Myrén at 8/9/2004 4:55:12 PM
Hi.
There are a number of options how to iterate through the characters that
make up a System.String;
ToCharArray(), GetEnumerator or direct walkthrough from 0 to Length with
indexing.
I would like to now which one is the fastest.
Thank you.
... more >>
why it's error?
Posted by dbcoffee at 8/9/2004 4:13:53 PM
all goes well with .net Framework1.1, but error with .net framework 2.0 beta
,below is error message why?
Server Error in '/FORUM' Application.
----------------------------------------------------------------------------
----
Compilation Error
Description: An error occurred during the ... more >>
How to: Dynamically create CAB files
Posted by Sam-I-Am at 8/9/2004 4:11:04 PM
Hi
I need to dynamically create CAB files that will contain various content.
Are there any products to do this or can I do this in .net?
Thanks
Sam
... more >>
Open window and pass value?
Posted by KavvY at 8/9/2004 3:51:07 PM
Hi,
I need to open a pop up window from my main aspx page while passing it a
value, but i've got stuck on the first hurdle which is how to open a window
at all!
Any help appreciated,
Thanks
Rich.
... more >>
Setting datasource to dataview or datatable?
Posted by John S. at 8/9/2004 3:45:57 PM
I have a datagrid, it has a column with a checkbox (DataGridBoolColumn). On
the same form, there is also a textbox that is used to search the grid.
Here is the problem...
If I do datagrid.datasource = dataview then I can use the textbox to search
the grid via dataview.rowfilter. However, doi... more >>
Converting C-struct (with array) to C#
Posted by VMI at 8/9/2004 3:41:58 PM
How can I convert this struct into a C# struct? The problem with this one is
that one of its members is an array of ADDR_REC(another struct), and the API
function (written in C) writes to this part of the struct. I call the
function with struct CITY_REC as parameter and the API function writes to... more >>
Hide Selection
Posted by Cameron Eckman at 8/9/2004 3:40:38 PM
I've been moving between VB.NET and C# .NET and have found many annoyances
with the editor using C#. The latest is that I cannot seem to be able to
use the Hide (Edit, Outlining, Hide Selection). I know I can use regions,
but for temporary collapsing it is much easier in VB.NET because you can ... more >>
NNTP or Basic I/O?
Posted by sdf at 8/9/2004 3:13:13 PM
Hey all, I have a problem here. I got some code from the web/a book (it
was actually the exactly the same), on how to do NNTP. The code works except
it's VERY cpu intensive and VERY slow. I looked into the code and noticed it
calls a Response method over and over, each time it returns a lin... more >>
copy files from server to server on the same LAN
Posted by Green at 8/9/2004 3:11:57 PM
Hi,
I had a question about how to copy files from server to server on the
same LAN. Basically, i need to copy files from
"develope server" to the "test server", then eventually to the "production
server". But i don't know how to deal with
this. Do you have any example code or hint?
I ... more >>
How can I sort datagrid?
Posted by taly at 8/9/2004 3:08:14 PM
Hi all
how can I make the interface for the user so he can sort datagrid?
thanks
... more >>
transfer text to image file
Posted by cfyam at 8/9/2004 2:52:03 PM
I want read some texts from database, and transfer this words to an image
file, how can I do?
... more >>
capture the region
Posted by cfyam at 8/9/2004 2:04:27 PM
How can I capture the specified region on the screen to save as an image
file?
... more >>
About Richtext Printing/Preview
Posted by jason NO[at]SPAM riginc.com at 8/9/2004 1:57:11 PM
Hello all.
I have a question regarding Richtext printing/preview.
I know how to print richtext in C# by sending some messages to the
underlying rich edit control. However, I am only able to print on a
pre-defined rectangle area, which is not convenient in many cases. Is
there any way that I on... more >>
Datagrid row blink
Posted by Ian Frawley at 8/9/2004 1:44:30 PM
Anyone know how you would make a ASP.NET DataGrid row blink?
--
Ian (Freebasing On Boredom.......)
BEING IN THERAPY
And yet, having therapy is very much like making love to a beautiful
woman. You... get on the couch, string 'em along with some half-lies and
evasions, probe some deep dark ... more >>
How to serialize SqlParameter ?
Posted by Marcin at 8/9/2004 1:37:25 PM
hi, I would like to ask how to serialize class with members like
SqlParameter. I try to use BinaryFormatter.
[Serializable]
public class Example_Class
{
public SqlParameter sqlParam;
public Example_Class()
{
sqlParam = new SqlParameter("@Data", SqlDbType.VarChar... more >>
Client side web service caching
Posted by Vikas at 8/9/2004 1:36:19 PM
Hello,
I am consuming a webservice from a ASP.NET web application. Inside the
constructor of the web service, there is lots of heavy operations
happening like opening a database connection. As a result, the
performance of the web service call is degrading, especially when
multiple users c... more >>
UTM to Lat-Long Conversions
Posted by Vinny Vinn at 8/9/2004 1:29:01 PM
Anybody know of a class or some code(C# preferred) that can convert UTM (GPS)
coordinates to lat/long coordinates?
Thanks in advance,
Vinny... more >>
Converting C struct to C#
Posted by VMI at 8/9/2004 12:49:56 PM
How can I convert the following C struct into a C# struct? The struct is
sent to an API function (written in C) as parameter, and the function fills
it with data. I tried to convert it and most of it works but the data in the
foot struct is not correct (I believe it's a conversion problem betwee... more >>
strange problems with Socket.Send/Socket.Receive
Posted by Amadej at 8/9/2004 12:36:02 PM
Hello everyone,
I'm having some odd problems with a little program I wrote for
sending/receiving bytes across the network.
I am using synchronous sockets, and it seems that when I send byte
after byte too fast, the packet gets lots somewhere (as odd as that
sounds).
Here's the sending co... more >>
Using Win32.h constants
Posted by Rookie at 8/9/2004 12:21:36 PM
Hi,
Can someone suggest a way to use some of the constants defined in Win32.h
eg. FILE_MAP_ALL_ACCESS ?
Is there a way to include a .h file in C# code?
It would be great if someone could provide links to articles/tutorials on
this topic. Thank you.
... more >>
Sending 4 byte message length header
Posted by Winston Nimchan at 8/9/2004 12:18:58 PM
Hi:
I'm currently developing a socket application and would like to precede the
data being sent with a 4 byte message length header (bin4). Can anyone help
Regards
Winston
... more >>
Datagrids -> Custom Table and Column Styles???
Posted by Darryn Ross at 8/9/2004 12:03:17 PM
Hi,
I am having a few problems with my datagrid, the data in my database isn't
coming through right. for example 100.00 in the table is coming through as
100 and 01/01/2004 in the table is coming through as 01/01/2004 10:45 AM???
how do i format my custom table and column styles to reflect the... more >>
Help needed with Parameters
Posted by Boggie at 8/9/2004 11:29:02 AM
I'm getting an INSERT INTO SQL error. Any ideas?
Thanks a ton,
Boggie
odbcConnection1.Open();
OdbcCommand myCommand = new OdbcCommand("INSERT INTO Listgroup (Newsgroups,
Message-ID) VALUES (?)", odbcConnection1);
myCommand.Parameters.Add("", OdbcType.Text).Value = endstring;
myCommand.Exec... more >>
Testing if Int has a value
Posted by John Smith at 8/9/2004 11:25:06 AM
Hey folks,
I know this is an old topic, but I can't find a definitive answer on google.
How do I tell if an int has been initialized or not? I had been testing it
like:
if(myInt == Convert.ToInt32(null)){
:
}
But now I just realized that this is true:
Convert.ToInt32(null) == Conver... more >>
Is there a control for "Property inspector"
Posted by phil cunningham at 8/9/2004 11:21:09 AM
I see Property Inspectors all over Visual Studio,
Is this class available for use to allow users to Modifiy my data
structures.
If anyone knows I'd appreciate it
... more >>
Returning results from a Dialog.
Posted by Mark Broadbent at 8/9/2004 11:08:35 AM
I know this has been discussed before, but rather than spend ages trawling
through old threads I thought I would start a new *quick* Q&A thread.
Q. What is the preferred method for returning data from a dialog to a parent
form.
Previously when I have been launching a dialog, I would pass a ref... more >>
Datagrids???
Posted by Darryn Ross at 8/9/2004 11:01:04 AM
Hi,
I am having a few problems displaying a date in my datagrid... i have
created a custom table and column style and all the data appears great
except for a date field i have is stored as short in the database but when
it comes through the datagrid it has a time stamp on the end of the as
we... more >>
Design question for having multiple windows
Posted by Sean at 8/9/2004 10:33:26 AM
Hi all,
I have a design question here.
I have window A and in window A, if user clicks a button,
windows B will appear. Window B has to do a lot of
redrawing and movement (Location changes).
What is the best approach to implement this? so that even
when I move/drag window A around, windo... more >>
Owner draw on the MainMenu and MenuItem
Posted by Tim Haughton at 8/9/2004 10:20:43 AM
Like most fans of eye candy, I've always thought the standard MainMenu
control was a bit drab. After looking at third party components, I decided
to see if I could brute force it into looking nice.
I set the owner draw on the menu items to true, and draw the MenuItems
differently depending on ... more >>
update in Visual C# Standard Edition fail
Posted by ajikoe at 8/9/2004 10:03:04 AM
Hello,
Since I bought my Visual C# Standard Edition I've been never able to update
it.
Is that normal?
If I try to click in my help menu, Check for update, it always comes up with
the message:
"Visual Studio.NET 2003 setup encountered errors while attempting to
download required files. C... more >>
Type.GetType not finding the dll containing the method I want to use in a late bound context.
Posted by hazz at 8/9/2004 10:00:27 AM
"Value cannot be null.\r\nParameter name: type" is the exception thrown
after the CreateInstance method below.
Type t = Type.GetType(GetConfigValue("PasswordProvider"));
IPasswordProvider ppdr= (IPasswordProvider)Activator.CreateInstance(t);
GetConfigValue DOES return the correct value from... more >>
how to import C# DLLs in C++ project?
Posted by Constantin Christmann via .NET 247 at 8/9/2004 9:53:42 AM
Hi!
I need to create some windows for debugging purpose in a big C++ project but I don't want to do this with MFC or Win32 coding.
I'd prefer to build this debugging windows with C#, make a DLL and import this in the big project.
My problem is now that there is a lot of information how to use o... more >>
Problem with loadXML and web services
Posted by Dave H at 8/9/2004 9:43:06 AM
Hi everyone,
I'm trying to access a webservice (asmx) from an asp page and I'm having a
problem with the load below:
<%
Dim dblTax, strQuery, objRequest, objXMLDoc, strXMLwsURL, strXMLMessage
Set objRequest = Server.CreateObject("Microsoft.XMLHTTP")
Set objXMLDoc = Server.CreateOb... more >>
Drawing an image
Posted by Alberto at 8/9/2004 9:41:26 AM
I'm drawing an image in a panel control with this sentence in the Paint
method:
e.Graphics.DrawImageUnscaled(Image, panelImage.AutoScrollPosition);
The problem is that I only want to paint a region of the image specified by
a Rectangle object. I can do it with:
e.Graphics.DrawImag... more >>
How to call an external executable file in Add-in
Posted by Kelly Xie via .NET 247 at 8/9/2004 9:38:24 AM
Hi,
I am building an add-in to the .NET framework using C#. I need to call an external executable file. It works fine with the computer I am working now. How can I make it work when I install the add-in to another computer?
Thanks a lot
--------------------------------
From: Kelly
------... more >>
ImageList ActiveX
Posted by Bob C. at 8/9/2004 9:32:12 AM
Hi All,
I am using the ImageList/ListView Components to display around 100 images
in C#.NET.
The issue i have is, some times i may need to display the thumbnail of size
more then 256x256 in ImageList.
But the ImageList Component supports only size upto 256x256.
What is the best way to h... more >>
Decimal separator/locale and keypress event
Posted by Claire at 8/9/2004 9:26:57 AM
I'm monitoring key presses in an edit box on a pocket pc device.
It's for floating point numbers and Im allowing '-', '0'..'9', #8 plus
decimal point character.
Ive a function that should return a char representing the decimal point for
this locale.
Not knowing what I was doing on .net, I did ... more >>
Does system.dll need to be copied to the app bin directory?
Posted by Wysiwyg at 8/9/2004 8:58:35 AM
I am using MS Visual Studio 2002 with Windows 2000 Advanced Server and am
starting to learn C#. Perhaps this is obvious but I can't see if what's
happening is "normal" or if something needs to be set differently. I have
implemented System.Configuration.NameValueSectionHandler which is found in
S... more >>
Hiding Columns in a Datagrid?
Posted by Peter at 8/9/2004 7:09:03 AM
Hello,
Thanks for reviewing my question. I hope this is a simple question. I
would like to know if I have a datagrid attached to a dataset, which in turn
is associated with a table, is there a way to hide columns? Can I do it at
design time?
Thanks again
Peter... more >>
Multithreading in Array
Posted by Yuliaan at 8/9/2004 6:43:05 AM
Hi everyone!
In program I wrote, I try to run 300 threads, when only 10 is running in the
same time. I use array to create 300 threads, but first I start only 10,
after that I add one thread when some of them is finished. The first 10 are
running well, but when I add one, I get the HashCode t... more >>
Error adding a reference to a developed serviced component
Posted by John McDonald at 8/9/2004 6:21:02 AM
I am working through tutorials covering developing serviced components. It
is appears as though they register correctly using regsvcs and do appear in
the MMC snap in. However when I attempt to use them from a project it fails
to add the reference with the messange:
A reference to xxx cou... more >>
axWebbrowser - HTMLWindowEvents catch and control -HOWTO?
Posted by Janus at 8/9/2004 6:03:03 AM
Hello. I need a little help to get this thing finished. Im trying to catch
js errors and the event works as expected. However I have created an event
from doc.parentWindow but when it fires im unable to suppress it using a
returnValue = true.
Im navigating to an URI using axWebBrowser1.Nav... more >>
sending receiving emails
Posted by Sajsal at 8/9/2004 4:47:01 AM
Hi all
I am developing a web app in which the client wants an email sending and
receiving functionality. Is it possible in C#. If yes where should I start.
If anyone could tell that how long would it take to develop and the human
resources etc
I'll be very thankful
Regards... more >>
MDI Child Window Problem
Posted by james.spibey NO[at]SPAM gmail.com at 8/9/2004 4:28:21 AM
Hi,
I have an MDI application which has aboout 10 child windows. The way
the app needs to work is that only one window should be visible at a
time and it should be maximized within the parent window. I have set
all my child windows to be WindowState.Maximized but after showing 2
or 3 windows,... more >>
NET C# VOIP Support
Posted by Saju at 8/9/2004 4:08:11 AM
Hi,
I am interested in developing a small VOIP program using C#. I am very new to this area. Like to know where to start with and what are the facilities available in C# & .NET to support voip. Or do we have to use the telephony API for that? Can anybody lead me to some good documentaion/example... more >>
Distribute Access .mdb file
Posted by nick_nw NO[at]SPAM yahoo.co.uk at 8/9/2004 4:03:53 AM
Hi,
We're are about to develop an app in C# that will use a MS Access
database file for data storage. The db structure will not be
modified. The user will use the C# developed app to view and edit the
data (as well as add/delete records etc.).
In order to distribute or app (including .mdb... more >>
control resizing when monitor resolution change
Posted by farukh at 8/9/2004 3:48:17 AM
dear sir
i want to resize my controls when the user changes the
monitor resolution. so my problem is i am not know the
event which should be fire when the resolution changed i
try form_Resize but it does not work well.
and tell me the short way for tackling this problem.
thnx alot.... more >>
Credentials lost when posting data
Posted by lasabo at 8/9/2004 3:27:02 AM
Hi,
I'm trying to send a post to a form on a webserver that requires
credentials. When I log in it works just fine, but when I try to post data to
the webserver the credentials aren't transmitted.
my source:
CredentialCache myCache = new CredentialCache();
webClient.Headers.Add("... more >>
Creating Bitmap is very slow
Posted by James Dean at 8/9/2004 2:45:14 AM
In my program i create a 32ARGB bitmap. To actually create the bitmap
seems very slow. In fairness the file size is very big. I support
multiple bitmaps as well. I have to convert these bitmaps to thumbnails
also which again seems very slow. There is a memory bitmap but i can't
seem to find any ... more >>
Changing security permissions on files and directories using c#
Posted by m_Seldin NO[at]SPAM mail.ru at 8/9/2004 2:20:14 AM
Hello,
I am trying to find a way to change directory permissions using C#
(like dir ownership and access rights). Is there any c# librery that
could help me do that? or should i use other solutions? (what are
they?)
Thanks.... more >>
generic error GDI+
Posted by Fabrizio at 8/9/2004 2:17:03 AM
Hi,
in my environment i cannot use this sample because the saving process give
me an error : GENERIC ERROR IN GDI+.
Anyone knows what error is and how can I solve this?
thank you!
Fabrizio
fmaltese@nospam.libero.it
... more >>
Resize a Form
Posted by Lubomir at 8/9/2004 12:13:05 AM
Hi,
I am wondering if it is posible to disable resizing of a form in design
editor. Or is it possible just at runtime? I don't see there any property
kind of "Resize = false".
Thank you,
Lubomir... more >>
|