all groups > c# > march 2005 > threads for friday march 25
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
Asynchronous UDP Server not working..help pls????
Posted by Chakkaradeep at 3/25/2005 11:19:08 PM
Hi all,
i tried creating a UDP Asynchronous Server.....but am getting errors and am
not able to figure out why!!!.........
here is the code...........
*****************************code starts ********************
m_mainSocket = new Socket(AddressFamily.InterNetwork,
SocketType.Dgr... more >>
converting c/c++ programs to c#
Posted by neil morris at 3/25/2005 11:08:00 PM
Hi
Other than manualy goto though line by line of c/c++ source code to rewrite
for the c# language is there an automated way of doing it? or is there a
good c/c++ compiler that can compile GNU source code?
thanks in advance
Neil Morris
... more >>
DTS execution fron C#
Posted by Andres Romero at 3/25/2005 8:19:02 PM
Hello
I need some help for dealing with DTS executions and take errors by tasks.
Some help?
Thanks... more >>
calendar
Posted by chris at 3/25/2005 8:13:07 PM
Hi,
I get the date from a calendar and put it into a text box.
TxtDate.Text = Calendar1.SelectedDate.ToShortDateString();
But I would like to also do it the other way around. That is, convert the
textbox to a calendar date, so that the calendar (when you open it) has the
same value as t... more >>
TextBox Sound Problem.
Posted by orcunbaslak NO[at]SPAM msn-dot-com.no-spam.invalid at 3/25/2005 7:36:58 PM
I assigned Enter key to do sth after I write sth to a TextBox but I
gives me a system sound like "this is not multiline textbox enter
does not work here " and Beeps.
I dont want this sound to be played. How can I avoid this? Thanks...
Posted at: http://www.groupsrv.com
Posted Via Usenet.co... more >>
problem exporting datagrid to excel
Posted by Dave Bailey via DotNetMonster.com at 3/25/2005 6:46:01 PM
I am using the following code to export a datagrid to excel from an asp
page:
private void exportButton_Click(object sender, System.EventArgs e)
{
Response.Clear();
Response.Buffer = true;
Response.ContentType = "application/vnd.ms-excel";
Response.Charset = "";
this.Enabl... more >>
Text property and the Toolbox
Posted by steve bull at 3/25/2005 6:22:45 PM
I have created a label control and got it to appear in the toolbox. The problem I have is that while all the other
properties appear for the contro I can't get the Text property to appear at all. I have tried in both the DataBindings
category and the Appearance category but it won't appear in ei... more >>
head scratcher...
Posted by Robert Megee at 3/25/2005 6:00:22 PM
My development platform is a widows2000 pro. I built a web app that
takes a file name and opens a file from an nfs mounted directory. The
files reside on a unix based server.
This works fine.
When I try to run this on my windows2003 server, it can't see the nfs
mounted directory.
When I ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Database paths in a web app
Posted by Adam Clauss at 3/25/2005 5:21:33 PM
I am developing a C# web application from a machine running Windows XP. The
web server is a remote machine running Windows Server 2003.
As a data source in this application we are using an Access database (.mdb).
Right now, this database is simply residing in the root folder of the
applicatio... more >>
ASP.NET + javascript
Posted by Viktor Popov at 3/25/2005 4:49:59 PM
Hi ,
I have a javascript function which returns a string value in My ASP.NET
applivation. Is it possible this string value to be appropriated to ASP.NET
Label or some other control? If yes, coudl you give me an example how?
Thank you!
Viktor
... more >>
socket non blocking of receive
Posted by Dave at 3/25/2005 4:17:02 PM
I'm using the following statement to receive info from a TCPListener socket,
Int32 bytes = s.Receive(RecvBytes, RecvBytes.Length, 0);
It works fine but it blocks. I need the receive to not block. On my
TCPListener I just check intermittently for a connection using pending. This
allow it to... more >>
Ownerdrawn Combbox
Posted by mnsindhu74 NO[at]SPAM yahoo.com at 3/25/2005 4:03:53 PM
hi
I am creating an ownerdrawn combo box. I will need to display
icons/images in the edit portion of the combobox. I retreived the
handles of Edit and List portions with ComboBoxInfo structure. Then I
created a class inherited from NativeWindow. This class is assigned the
handle of EditBox of c... more >>
Large xml
Posted by toto at 3/25/2005 3:56:11 PM
hi,
how do to for optimize bind a dataset with a large xml file ? (40Go)
... more >>
Attributes and Properties
Posted by Chuck Bowling at 3/25/2005 3:35:40 PM
Is there any justification - from an OOP perspective - for wrapping an
attribute in a Property beyond the ability to restrict access?
private int myInt;
public int MyInt
{
get { return myInt; }
set { myInt = value; }
}
Is there any value in the above as opposed to simply makin... more >>
Linker error Help!
Posted by Jon Pope at 3/25/2005 3:23:15 PM
For the last six months, I've been able to compile my C# solution in VS2003.
Suddenly this morning I get the following error:
"Satellite build for culture 'fr' failed. The assembly linker could not be
launched. The system cannot find the file specified."
I've deleted my entire folder str... more >>
ÈçºÎ°ÑSQLÊý¾Ý¿âͼÏñÊý¾ÝÖ±½Ó·ÅÈëImageͼÏñ¿Ø¼þ
Posted by xkw at 3/25/2005 2:46:57 PM
¸÷λ¸ßÊÖ£º
ÈçºÎ°ÑSQLÊý¾Ý¿âͼÏñÊý¾ÝÖ±½Ó·ÅÈëÖ¸¶¨µÄImageͼÏñ¿Ø¼þ£¬ÒòΪÔÚ·þÎñÆ÷´´½¨Í¼ÏñÎļþÊܵ½ÏÞÖÆ¡£Ð»Ð»£¡
... more >>
different types of Controls as a parameter
Posted by Craig at 3/25/2005 1:45:04 PM
I want my method to be able to take any control and manipulate the
control....for example change the Location of the control. I get error
messages when I compile saying for example "Can't convert from ref Label to
ref Control" or "Can't convert from ref Panel to ref Control".
private void... more >>
Passing the name of a component and use it to do something to that component
Posted by Ivan Sammut at 3/25/2005 1:28:09 PM
Hi,
I have an form with 64 picture boxes named pic1 ... pic64.
Then I have a procedure which create a bitmap filled with red and then I
place it in the PictureContainer. Now I would like to know if it is possible
to pass to this procedure name of the picture box in which to place the
bitmap... more >>
Capture cmd line traffic for windows application
Posted by thompson_38 at 3/25/2005 1:09:24 PM
I have a COM object that wraps a console application. This console app
outputs strings, using tprintf statements, throughout execution. I
would like to capture that output from the console app and display it
in my C# Windows.Forms test application. I have tried StreamWriter,
StringWriter, Open... more >>
Handling Properties Limits
Posted by Demetri at 3/25/2005 12:19:03 PM
I am developing the middle tier of an application. The middle tier will
return custom classes that represent the data in the database. So then let me
illustrate my problem:
Database has a table called Person. In the Person table is a job description
field called JobDescription and it is a V... more >>
Enterprise Services
Posted by mark at 3/25/2005 12:02:49 PM
Could someone please summarize in 3 sentences or so what exactly Enterprise
Serivces from Microsoft comprised of PRIOR to .NET's existance? Comparing
it to what it is comprised of after .NET was released would be useful as
well. Thanks in advance for the clarification...
Mark
... more >>
Refreshing an aspx mobile page in CSharp
Posted by Chumley Walrus at 3/25/2005 11:42:29 AM
I'm trying to either have a user hit a Refresh button to refresh a
mobile aspx (c-sharp behind code) page , or using an automatic refresh
every 3 minutes on the page. <META HTTP-EQUIV="Refresh"
CONTENT="180;url=mypage.aspx"> just does not work on any of my aspx
pages.
If I use a refresh button,... more >>
RemoveMenu or EnableMenuItem not always working
Posted by Joe at 3/25/2005 11:06:11 AM
I have a MDI app where 2 children forms should never be closed. I'm using
RemoveMenu API to remove the close X and context menu item. This works fine
on one form but not on the other. The major difference between these 2 forms
is that the one that doesn't work has an ActiveX control.
If I can ... more >>
Debuggin a form in VS.NET
Posted by John Bailo at 3/25/2005 11:05:58 AM
I am trying to debug a form in VS.NET 2003
I set some breakpoints for a treeview click event.
This is what happens:
The form loads.
I click a node in treeview
The break point is hit
At this point, the form is frozen...I cannot minimize it and it blocks
my access to the studio IDE... more >>
byte code libraries....
Posted by Dean Hiller at 3/25/2005 11:03:02 AM
I would like to clone the verifydesign ant task from Java so I can use it
with NAnt. Are there any C# byte code libraries available(like Apache's bcel
for Java).
thanks,
dean... more >>
One thing I miss from VB6
Posted by John Bailo at 3/25/2005 10:56:59 AM
Doing some c# client programming in VS.net
One thing I miss is that in the code view I could set the focus to a
form object in the left hand drop down ( like a TreeView control ) and
then the right hand drop down would expose only the properties and
events associated with that control.
... more >>
Interop COM in C# - can't get the object released
Posted by Alan at 3/25/2005 10:55:04 AM
I am trying to develop an ATL COM object together with a C# web
application that will host it. I am following the COM Interop Part 1: C#
Client Tutorial, Example 2, The C# Code Approach from the April 2004
MSDN library exactly. But the client will not release the COM object.
The COM object is ... more >>
Development machine recommendations...
Posted by craig at 3/25/2005 10:52:28 AM
This is a little off topic, but I thought it couldn't hurt to ask...
I am about to purchase a new development laptop computer. Before I do, I
thought I might ask the C# development community if there are any
recommendations for a good Visual Studio development machine. Is there any
machin... more >>
How'd they do that?
Posted by dkocur at 3/25/2005 10:47:04 AM
I'm trying to implement a custom collection, but I'm having trouble trying to
duplicate some of the "features" found in the generic collections.
Specifically, implementing both the IEnumrable interface as well as the
IEnumerable<T> interface. When I click on "Goto Definition" of List<T> it
... more >>
How to display multicolumns and get back multi selections form lis
Posted by Alpha at 3/25/2005 10:43:01 AM
Hi,
I'm working on a Windows applicaton with VS 2003 on windows 2000. I have a
listbox that I have binded to a dataset table, "source" which has 3 columns.
I would like to display 2 of those columns, "scode" and "sname", as 1 column
(if not possible then 2 columns will be fine) in the list... more >>
dll import
Posted by Jason at 3/25/2005 10:09:03 AM
I have created a dll from a C++ class using .Net and have imported it into my
C# applications (one webservice, one standalone app). It works fine for a
while, but will eventually fail to produce the error
"System.NullReferenceException: Object reference not set to an instance of an
object" ... more >>
Array subset copying
Posted by Derrick at 3/25/2005 9:41:06 AM
If I have an array..
object[] myObjs = someMethod.SearchForObjs();
and the length of that array is 100, but I want to extract the last 80
objects into another array, what's the cleanest way to do that?
Array.CopyTo seems to allow specification of target index to start copying
into, but no... more >>
OutputCache with Page not working propely
Posted by Sudhir Sharma at 3/25/2005 9:36:01 AM
guys,
I have this code in my .aspx file.
<%@ OutputCache Duration="500" VaryByCustom="OrganizationID" VaryByParam="None"
%>
and I have overriden the method "GetVaryByCustonString()" in my global.asax.cs
file. whenever the organization is changed for the Page, it should invalidate
the Cach... more >>
Shared .cs files, and file locations
Posted by Dan Baker at 3/25/2005 8:45:58 AM
I'm relatively new to the .cs world. I would like to have some "shared" .cs
files, which several solutions can use. I don't want to place these in a
..dll, I simply want them included into various applications. I have tried
several methods, but most have failed. The most obvious way (I thou... more >>
Returning a string* as a result in WndProc
Posted by Kurt at 3/25/2005 7:35:01 AM
I have a C++ dialog that is sending a message to my C# window and I need to
pass a string* back in the result of the message. On the C++ side this result
is cast as a CString*. How do I create this string on the C# side and convert
it to an IntPtr? My first guess is to allocate memory and cop... more >>
Selecting text in an MSHTML component
Posted by Blake at 3/25/2005 7:31:27 AM
Hello,
I am using an MSHTML component to allows for HTML editing in my
application. I am trying to integrate this component with a spell
checker component that I am using, and I would like to be able to
highlight the misspelled word in the MSHTML component as I go along
doing the spell check... more >>
EventHandler not being caught.
Posted by vidalsasoon at 3/25/2005 7:24:24 AM
here is my inheritance class hierchy...
System.Windows.Forms.Form
|
Global
|
Form1-------Form2
- Form1 and 2 each set their own form parameters. e.g. Size, color etc.
- Form1 and 2 each catch their own KEYEventHandlers. This is good.
- I put a Tim... more >>
How do you test for an empty dataset
Posted by Mike P at 3/25/2005 7:09:47 AM
I have written a simple web service that basically takes a value input
by a user and returns a dataset with all related data found in a
database.
In my client app use this code to get the data from the web service :
Dataset dsData = ws.wsmethod(parameter);
And whether any data is returned... more >>
regular expressions
Posted by Mike P at 3/25/2005 4:47:33 AM
I have a regular expression that I use on text boxes where I want to
limit the user to letters a-z and spaces. I now need to allow
characters such as ö, ä and å (Nordic characters). Does anybody know
how to do this in a regular expression? Here is my current standard
regular expression :
^... more >>
negative int to positive int value
Posted by bardo at 3/25/2005 1:21:04 AM
Does anyone know if there is a easy way to change a negitive int value into a
positive int value.
int a = -105 > change this to 105.
With other words is there a command to change to neg sign into pos sign ?
Bardo Versteeg... more >>
set security on folder/file programmatically
Posted by Grei at 3/25/2005 12:29:56 AM
I need to set folder security to full control to everyone
is it possible from code?
example would be nice.
Thanx
... more >>
WMI
Posted by Troy at 3/25/2005 12:08:50 AM
Hello,
I'm just starting out with c# and WMI and have a few questions that seasoned
coders might be able to help me with. I'd like to write a console app that
would query a server and pull out all the errors in the system and
application log. I've started writing the class to do this but i'm s... more >>
How to switch form resource file ?
Posted by cyshao at 3/25/2005 12:00:00 AM
How to switch form resource file ?
I have a project developed by Chinese.
Now, I want to compile an English version. ( Chinese version must be
remained.)
How can I do that?
Thanks
Charles Shao :-)
... more >>
How to add system users and groups by programming?
Posted by cyshao at 3/25/2005 12:00:00 AM
How to add system users and groups by programming?
Thanks:-)
... more >>
How to set default options into debugger
Posted by cyshao at 3/25/2005 12:00:00 AM
How to set default options into debugger
I want to let debugger to run a program with special options: "-a -p"
"MyProject.exe "-a -p"
Where shall I set "-a -p" ?
Thanks
Charles Shao
... more >>
Windows Form DataGrid - Need A Color Border Around Only The Selected Row - Will GDI Be Required
Posted by Richard at 3/25/2005 12:00:00 AM
I have a lot of colors, fonts, etc. to set for rows and possibly columns,
based on the information contained in the row and/or the selected row. A
main one is putting a border around the entire selected row only. The border
one does not seem to be simple thing to do by just setting a property of ... more >>
|