all groups > c# > august 2005 > threads for tuesday august 30
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
int to string
Posted by John Salerno at 8/30/2005 10:47:31 PM
Given this:
string s;
int i = 0;
why does this work:
s = "Hello" + i;
but this doesn't:
s = i;
Thanks.... more >>
programmatically created droplistboxes
Posted by MotorcycleIke at 8/30/2005 10:47:14 PM
I need to name the controls uniquely so I can load/access their items.
Ie: a listbox control.
I need to create a variable number of controls.
I tried to name them like this:
DropListControl ddlControl+ctr = new DropListControl();
This doesn't work.
Can anyone offer suggestions?
Thanks... more >>
Focus problem.
Posted by CobraStrikes NO[at]SPAM al.com at 8/30/2005 10:45:41 PM
Hi all,
I am having problem setting focus to a textbox in form load. Should it be set in a different place ?
thank you.
... more >>
Formattable TextBoxColumn ignoring format...
Posted by Gav at 8/30/2005 10:29:02 PM
Hi all,
I have tried setting the Format of a FormattableTextBoxColumn to "c" to
display the values as currency but it does not seem to have any affect.
Could I be missing something?
Thanks
Gav
... more >>
WinForm Type question
Posted by needin4mation NO[at]SPAM gmail.com at 8/30/2005 8:57:45 PM
static void Main()
{
using (WinForm our_directx_form = new WinForm())
{
Application.Run(our_directx_form);
}
}
beginner question:
Is WinForm a type? I can't find it in the language reference on MS... more >>
OpenFileDialog
Posted by Ken Kast at 8/30/2005 7:49:28 PM
I'm using the dialog as a file selector function. I want the dialog to stay
open until the user Cancels. If I build my own handler for the FileOK event
that does nothing, will anything else in the dialog's innards get screwed
up?
Ken
... more >>
test
Posted by MacKenzieMouse at 8/30/2005 5:52:13 PM
in C# how do i transform an xml document with an xsl document when my xml document is a string and my xsl document is a string? the msdn examples only
Posted by Daniel at 8/30/2005 5:03:07 PM
in C# how do i transform an xml document with an xsl document when my xml
document is a string and my xsl document is a string? the msdn examples only
show how to do it with steams and files. in my case i have everything in
string
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Specified cast not valid on decimal & double datatypes
Posted by .Net Sports at 8/30/2005 4:27:07 PM
I have a variable that is part of my dataset (a double int datatype),
and I need to use this variable in an ItemDataBound for a datagrid.
When debugging and looking at the StackTrace, the Specified cast not
valid error is pointing to my double int that i need to assign to
'price' , which was dec... more >>
UDP Client vs Socket
Posted by chewie at 8/30/2005 4:13:01 PM
I'm in the process of creating a multicast application but I'm having
difficulty getting the UDPClient to work. The UDPClient works on my local
machine only, not across the network. I've been able to get the multicast
message to work across a network by creating a socket, but I can't get it t... more >>
Images in C#
Posted by Raj Chudasama at 8/30/2005 3:51:30 PM
I have an app in which i use a lot of images ( Bitmaps and Pngs).
Most of the time i make a good use out of imagelist control sometimes i
just drop images in the project rather than in image list (use Bitmap m =
new Bitmap(GetType(), "image.bmp"); syntax). (I will be cleaning it all up
when... more >>
Avoiding Catching System.Exception
Posted by cmay at 8/30/2005 3:19:28 PM
FxCop complains every time I catch System.Exception.
I don't see the value in trying to catch every possible exception type
(or even figuring out what exceptions can be caught) by a given block
of code, when System.Exception seems to get the job done for me.
My application is an ASP.Net ... more >>
compiled Regex
Posted by John Grandy at 8/30/2005 2:19:38 PM
Is it advisable to compile a Regex for a massively scalable ASP.NET
web-application ?
How exactly does this work ?
Do you create a separate class library and expose the Regex.Replace() as a
method .....
..... or can you just use the syntax :
result = Regex.Replace(source,<pattern>,<... more >>
Selecting appropriate override
Posted by Réal Forté at 8/30/2005 2:09:08 PM
Hi,
I have a puzzling case here:
using System;
namespace TestOverrides
{
class Class1
{
[STAThread]
static void Main(string[] args)
{
Ancestor dummy = new SubClass();
Container.Hello(dummy);
}
}
class Ancestor
{
public String Field1 = "Field1";
}
c... more >>
Determining windows version during compile...
Posted by Richard at 8/30/2005 1:29:04 PM
Hi all,
I'm doing some custom RAS work and I need to marshal the struct definition
below. The marshaling is no problem, however how can I acheive the effect of
the windows version pre-processor check in C#?
typedef struct tagRASDIALEXTENSIONS {
DWORD dwSize;
DWORD dwfOption... more >>
System.Reflection question
Posted by melanieab at 8/30/2005 1:19:06 PM
Hi,
Is it possible to get the sort order of a datatable column in a datagrid
using System.Reflection?
Thanks,
Mel... more >>
How to read Powerpoint file in C#.NET
Posted by vighnesh at 8/30/2005 11:56:25 AM
Hi All
I am presently dealing a project using C#.NET,in which i have to read an PPT
file and replace some of it content with the desired one.
Is it possible in C#.NET ? Please help me in this regard.
Thanks in advance
Regards
Vighneswar
... more >>
Windows UI design
Posted by Dave at 8/30/2005 11:53:35 AM
Is these a way to do a template design on a Windows App?
... more >>
weekOfYear
Posted by simon at 8/30/2005 11:47:20 AM
DateTime someDate;
Int16 weekOfYear;
How you get weekOfYear of someDate if the first day of week is monday and
not sunday?
Regards,
S
... more >>
Delaying the framerate in MPEG - C#
Posted by ¿ Mahesh Kumar at 8/30/2005 11:45:42 AM
1. How to introduce delay or decrease the framerate of MPEG Movie file in
C#.
2. Is there any way to introduce delay between already defined movie format.
let say -2x, -4x etc..any logic please recommend.
Mahesh
... more >>
Minimze and show icon on the desktop icon
Posted by Maziar Aflatoun at 8/30/2005 11:23:12 AM
Hi,
Can someone please tell me how I can on a click of a button minimize my Win
form application and show my application icon under toolbars->desktop icons
(bottom right of the screen). I want my application to continue running in
the background.
Thanks
Maz.
... more >>
DLL vs Dynamic Compile
Posted by John F at 8/30/2005 11:03:08 AM
Currently I'm working on a C# app for a large organization (700 users
nationwide). This App is still under development. I have setup code in my
App to pull C# source code from a database and dynamically compile it at
runtime. All source code stored in the database will be of Type Form and a... more >>
Databound Item Replace
Posted by Jim at 8/30/2005 10:28:27 AM
I have code
<span id="Name"><%# Container.DataItem("Name")%></span>
that I load information into the page using.
I want to perform a replace on the returned value to replace "'" with
"/'". Can anyone help with the syntax?
Thanks
... more >>
.NET (C#) and file handles
Posted by Usenet User at 8/30/2005 10:12:52 AM
I have an API DLL with a handful of methods, which I wrapped in
DllImport-attributed methods in C#.
Everything works fine, however, one of the methods takes an open file
handle (as an int) to write its execution log into.
Is there a way in .NET to create such a handle to pass to the method?
... more >>
button click
Posted by Hrvoje Voda at 8/30/2005 9:30:22 AM
How can I have more the one event on button click?
First click --> one event
Second click --> second event
Hrcko
... more >>
Opening a new browser in c# code behind
Posted by Rik Brooks at 8/30/2005 9:26:07 AM
Recently I asked a similar question but not quite this one and the responses,
which helped, won't help me with this.
My application is browser based. The button in question will cause a report
to be sent to a browser to be printed.
I have to do some basic housekeeping first. It might be th... more >>
ArrayList
Posted by sandrot at 8/30/2005 9:24:19 AM
ArrayList can support Multimensional Array? If answer is Yes How I can DO?
Sorry for my english.
... more >>
Batch Statments C# SQL Server 2000
Posted by Vinny Vinn at 8/30/2005 8:59:04 AM
I have used simple batch statments with C#.for example:
string select = "select model from cars where id = ?;select * from trucks
where model = ?";
where ? is a parameter whose value i have before running the bach statment.
I was wondering if it possible to use the value (model) retuned in t... more >>
regular expression, replacing group text
Posted by D at 8/30/2005 8:56:56 AM
hi there ,
i want to do something fairly simple (well it was simple in PERL) using
the replace function of Regex... but i cannot find the docs to help me
on it... i want to use a regex to find a string:
^HOST=(.+);[^;]*$
and then replace group 1 (inside the .+) with another string... say ... more >>
Deserializing double.NaN generates exception in framwork source
Posted by Nathan Wiegman at 8/30/2005 8:55:27 AM
Using the XmlSerializer to deserialize a double.NaN value generates an
exception in the framework which the framework then catches. This is super
undesirable in our application, because our developers have the IDE set to
break into the debugger on ALL Common Language Runtime Exceptions.
Ca... more >>
VS 2005 Beta 2: Using TreeView control in SplitContainer to change the right panel
Posted by J.S. at 8/30/2005 8:16:30 AM
I have a TreeView control in the left panel of a SplitContainer. When I
click on various nodes in the TreeView I would like different sets of
buttons and textboxes to appear in the right panel. Is this doable?
Also, it seems that the TreeView nodes do not have a click event. Is that
corr... more >>
WaitHandle - Newbie qn
Posted by steve at 8/30/2005 8:11:02 AM
//////////////////////
//
// What I'm after
//
/////////////////////
The closest equivalent to the WaitForSingleObject / WaitForMultipleObject in
..NET land
//////////////////////
//
// What I'm using
//
/////////////////////
Derivatives of WaitHandle, namely AutoResetEvent
Code ... more >>
General GDI+ Error
Posted by Philip Wagenaar at 8/30/2005 8:09:33 AM
I use a class to manage tiff's (written by someone else) to splitt multipage
tiffs. However, when I run it, it fails, for other people it seems work ok.
The method in the class is :public ArrayList SplitTiffImage(string
outPutDirectory,EncoderValue format)
{
string
fileStartString=ou... more >>
Close child window when parent closes in asp.net
Posted by Samy at 8/30/2005 7:30:35 AM
Hi There,
I have a child window opened from aspx page using window.open. On the
child window, I have a button(New category) which opens a grandchild. I
also have a cancel button on the child window which when clicked should
close the child and the granchild windows. Can anybody suggest me how
t... more >>
Connection between 2 palmtops
Posted by sykstyrius at 8/30/2005 5:52:55 AM
Hi all.
I am developing a simple game for pocket pc platform.
Ony of my use case is:
Two players can have a duel if they are in wi fi connection range.
It means that I have to scan environment and establish a connection
from a source level.
Does anyone know what kinf of tools/technology should... more >>
Abusing C#
Posted by Thamir Alhashimi at 8/30/2005 5:51:34 AM
Greetings,
This ugly code was written by a VBScript programmer who moved to C# without
taking the time to properly learn the language.
object Price = reader["Price"];
object OutStandingShares = reader["OutStandingShares"];
if(Price != null && OutStandingShares != null) {
lblMarketCap.T... more >>
Emacs for VS 2005 beta 2
Posted by _R at 8/30/2005 5:50:40 AM
I'd love to get Emacs/Epsilon emu mode back for the VS code editor.
Is there any way to do this? Apparently 2005b2 has an option for
"Apply the following additional keyboard mapping scheme' and one of
the opts is Emacs. What does that do exactly?
... more >>
Need stdout-style console class
Posted by _R at 8/30/2005 5:38:46 AM
I've got a few apps that were designed to be used via MSDOS window.
They make use of the old-style VC++6 Console class for doing writes,
cursor repositioning, scrolling, etc. (Unfortunate name clash with
the new .NET console class, so it's tough to search for info).
Has anyone written a C# or... more >>
How deep should a deep copy go? / Is an object that contains value type still a reference type?
Posted by ahaupt NO[at]SPAM gmail.com at 8/30/2005 5:32:47 AM
Hi all,
I'm implementing the Clone() method through the ICloneable interface
and don't quite know how deep I need to go for a deep copy.
Example:
class A: ICloneable
{
object _val;
//Val will always be a value type
A(object val)
{
_val = val;
}
object Clone()
... more >>
BUG in non-blocking socket connect ?
Posted by yaron at 8/30/2005 5:28:57 AM
Hi,
1. It seems to me that there is a bug when using non-blocking socket
connect operation, because the LocalEndPoint, RemoteEndPoint of the Socket
are nulls on the client side although that the client and the server are
already connected.
2. If it is a bug, is there any hotfix for thi... more >>
Is it possible to hide class methods when the class has not been properly instantiated?
Posted by ahaupt NO[at]SPAM gmail.com at 8/30/2005 4:36:07 AM
Hi all,
Do you know if it is possible to hide class methods when the class has
not been "properly" instantiated?
Say in the following example, I'd like to hide or disable Drive() when
the numWheels == 0.
class Car
{
int _numWheels;
Car()
{
_numWheels = 0;
}
Car(... more >>
can I grant write permissions to a folder for restricted user.
Posted by Kiran_Juikar at 8/30/2005 3:51:02 AM
In my application, I want to copy some file from network location to local
machine folder. It works fine for administrator but If I run it with
restricted user (not having permissions to local machine folder) it gives me
Access denied error.
How can I programmatically give permission to the... more >>
Can we use C# to develop a project on OpenVPN
Posted by Raghavendra Mudugal at 8/30/2005 2:28:22 AM
Hello Everybody,
We are creating a new project on Virtual Private Networking (VPN),
and it is decided to use VC++. I actually want to know that
is can be achived by VC#.NET or not. You all know how and what
level VPN can reach. If this is possible using C# then what are the
main namespaces i ... more >>
Can a child table be automatically filled in a DataSet with a DataRelation?
Posted by Johann Blake at 8/30/2005 2:15:59 AM
I have a dataset that contains a parent table and a child table. A
DataRelation exists between the two. I was under the impression from
reading the VS docs that when I filled the parent table, the child
table would be automatically filled with the child records. When I fill
the parent, I limit t... more >>
Seeking advice on transferring a file via WebMethod
Posted by Joseph Geretz at 8/30/2005 12:00:00 AM
Up to this point, our application has been using Windows File Sharing to
transfer files to and from our application document repository. This
approach does not lend itself toward a secure environment and so we are in
the process of imposing a WebService gateway between our application client
... more >>
SocketFlags.None doesnot work
Posted by Hasan O at 8/30/2005 12:00:00 AM
Hi , i have problem about sending data over socket . It waits for another
socket.send
// str = Encoding.ASCII.GetBytes("hello");
socket.Send(str,0,str.Length,SocketFlags.None);
socket.Receive(strincome,0,socket.Available,SocketFlags.None); // return
"hello to you "
// str =Encoding.A... more >>
Import data to db with c#
Posted by Washington at 8/30/2005 12:00:00 AM
How I can import new data form table in existing one. The tables are same,
for e.g.
Table 1
ID | FirstName | Last Name
Table 2
ID | FirstName | Last Name
Only data are different.
How I can do that?
Some example can be very useful
Thanks
... more >>
Another VS Error Message. HELP WANTED PLEASE!
Posted by Harry at 8/30/2005 12:00:00 AM
OS: Winxp sp2
Visual Studio 2005 Beta 1
Added Files:
dotnetfx
sdkFramework1.1
ErrrorMessages:
Warning 1 The referenced component 'OpenNETCF' could not be found.
Warning 2 Couldn't resolve this reference. Could not locate assembly
"OpenNETCF"
Error 3 The type or namespace name 'O... more >>
Using OleDbConnection in Sharepoint WebParts gives System.Security.SecurityException
Posted by Shreeram Natarajan at 8/30/2005 12:00:00 AM
Hello,
Iam developing a sharepoint webpart which needs to read data from an excel
file.
Iam using OleDbconnection for reading data from excel.
However using OleDbconnection object gives the following error:
"Request Failed: System.Security.SecurityException."
no other error descriptio... more >>
ASP.Net C# in commercial environment
Posted by Jason Huang at 8/30/2005 12:00:00 AM
Hi,
I am thinking in the banking systems, the COBOL and IBM combinations.
And in the ASP.Net C#, is this a stable solution for applications running on
banking system?
I am asking this 'cuz I am thinking what the real value of the ASP.Net is.
Any advice will be appreciated.
Jason
... more >>
list of domains
Posted by Hrvoje Voda at 8/30/2005 12:00:00 AM
How to get a list of domains?
Hrcko
... more >>
A problem about sign on in one app and also can work in another.
Posted by Jet at 8/30/2005 12:00:00 AM
Hi all,
There is a problem about single sign on not base on SharePoint . There are
different web base application in my network group and all of them are not
develop by the same technology, such as some were made by jsp,and some were
made by asp.net another were made asp and php etc.How can ... more >>
Save Table in SQL
Posted by PawelR at 8/30/2005 12:00:00 AM
Hello Group,
In my application I create new DataTable (name : myTable). How save this
table on sql server as myTable.
Thx
PawelR
... more >>
URL inside a mail produced with asp.net
Posted by Antonio D'Ottavio at 8/30/2005 12:00:00 AM
Good Morning,
I want to create a mail using aspx and c# , I need a plain text mail, not an
html mail but I need to insert an url inside it.
I want to know if it is possible to have a link like this
http://ww.etantonio.it but instead of the link it is showed something like
"Click Me",
I know th... more >>
|