all groups > c# > april 2005 > threads for monday april 4
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
Socket
Posted by mainak at 4/4/2005 11:15:48 PM
When do we know when to stop receiveing data in
BeginReceive callback... more >>
Convert Tiff Images to Gif/Jpeg
Posted by pushfriends NO[at]SPAM gmail.com at 4/4/2005 11:15:09 PM
Hello friends,
Can any body tell me the sample code to convert a Tiff image to a Gif
or Jpeg format. The Resolution of picture is a big concern keeping in
mind.
Hope to get the response from all of you.
Regards,
Pushp... more >>
ASP.NET - tile an image
Posted by Joachim at 4/4/2005 10:09:02 PM
How do I tile an image using asp:image?... more >>
different icons for classes
Posted by Ray5531 at 4/4/2005 9:20:17 PM
Why in VS 2003 ,some of the classes have different icon than the others.some
of the classes have an icon with "#" on it and the rest have another kind of
icon with two rectangles crossed eachother(I've seen some places they call
it components)?
Thanks for your help.
... more >>
Modaly Load A Windows Form User Control From Another Windows Form User Control - Sort of like a popup.
Posted by Richard at 4/4/2005 9:09:01 PM
I think I'm going brain dead on this one. Can someone give me an idea on how
to do this? Some sample code would be helpful.
... more >>
How to make a screen the active screen?
Posted by cashdeskmac at 4/4/2005 8:55:01 PM
I have a countdown timer which I want to run in the background while I'm
using another application. I want the timer to pop up when the countdown is
complete, or at least have the icon flash in the taskbar.
Any ideas?... more >>
HELP Problem serializing a structure
Posted by ~~~ .NET Ed ~~~ at 4/4/2005 8:46:05 PM
Hello,
I am having a problem trying to serialize this simple structure, I use it
in a collection class that derives from CollectionBase but I noticed that at
least for now the serialization exception ocurrs when i try to serialize
this structure (see below). The idea is that it would be ... more >>
Is there any tool may provide the functionity changing variable's name automaticlly through entire code.
Posted by zlf at 4/4/2005 8:26:13 PM
Hi,
When programming, some time there is a need to change some variables'
name while finding a better name. However manually change it one by one is
so tedious and time-consuming.
What I am looking for is a tool that may provide the functionity
automaticlly changing variable's name t... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Binding to custom class object
Posted by kaborka at 4/4/2005 7:41:02 PM
I've used the Designer to create a strongly typed Dataset class from a stored
procedure definition. I called this class cMyDSraw, and the table within it
is called MyTable. The Designer generated nested class definitions for
cMyDSraw.MyTableDataTable and cMyDSraw.MyTableDataRow. Everything... more >>
find out storage size in DB for growth string
Posted by Jonathan Woods at 4/4/2005 7:29:06 PM
Hi there,
I would like to know how many storage size of nvarchar data type needs
to store in database for a growth string dynmically.
[For example] string sAccountName = "AAAAA"+"BBBBBB"+"CCCCCCCC"+......;
cmd.CommandText = "CREATE TABLE myDB.dbo.tblAccInfo(AccountName(????))
(????) m... more >>
deployment of dot net desktop project with crystal reports
Posted by Sabeen Sadiq at 4/4/2005 7:18:04 PM
I have create a setup project for a dot net application integrated with
embedded crystal reports. The setup is running perfectly on the local pc and
open the reports for given data but not opening the reports to other systems
where it is being deployed, giving error of invalid parameter and hangs... more >>
c# + Mysql chinese "?????"
Posted by Chau.Fai NO[at]SPAM gmail.com at 4/4/2005 6:55:20 PM
My Computer :
Window XP Pro English Version -> I have set the "Regional" to
"Taiwan"
Mysql 4.1.x -- > set to big5 already
i am using C# to program.
When i retrieve chinese character from the mysql database, the chinese
character will become "????".
Alternatively, when i insert the chines... more >>
C# Reflection - Nasty bug??
Posted by David Krmpotic at 4/4/2005 6:11:41 PM
In specific (repeatable) cases the client fails to connect to the server
running on the same machine. The client receives the
System.Net.Sockets.SocketException: "A socket operation was attempted to an
unreachable host" although the server is still running and listening on the
right port (45326 ... more >>
Datagrid readonly column problem
Posted by Paulo Gon?alves via .NET 247 at 4/4/2005 5:56:08 PM
My datagrid has a big problem, it happens only in columns that are read only.
Please see the picture at
http://mega.ist.utl.pt/~pfrg/datagrid/datagrid_problem.jpg
The gost that I show it?s like a new readonly textbox.
If the selected cell it?s not readonly there?s no problem.
I think that the p... more >>
How to control the scroolbar.location of ListView?
Posted by cyshao at 4/4/2005 5:40:35 PM
How to control the scroolbar.location of ListView?
I have a ListView with many items.
I want to locate ListView scrollBar to bottom, top, or some item.
How can I do that ?
Thanks
Charles Shao
... more >>
How to run aspnet with system account
Posted by Zeng at 4/4/2005 4:40:53 PM
Hi,
I'm running ClrProfiler for the first time to profile my web app, and it
keeps getting stuck at this msg box: "Waiting for Asp.net to start common
language runtime - this is the time to load your test page." even after I
launched my app and aspnet_wp.exe is running.
Do you know what I n... more >>
GetPrivateProfileString
Posted by Lalasa at 4/4/2005 4:37:09 PM
I got GetPrivateProfileString to work using interop, but there is
something that is bugging me.
This is the syntax provided on Pinvoke.net
[DllImport("kernel32.dll")]
static extern uint GetPrivateProfileString(
string lpAppName,
string lpKeyName,
string lpDefault,
StringBuilder lpReturnedS... more >>
COM Servers
Posted by glenn at 4/4/2005 4:20:23 PM
How do you write a COM server in C# VS 2003? I can't believe it but I can't
even find the words COM in the help for VS related to COM servers. Did
Microsoft Rename it again or can VS C# not handle the task? Why is there
nothing available for me to read?
Thanks,
glenn
... more >>
Zoom Image C# Pocket PC
Posted by marco at 4/4/2005 4:13:06 PM
I'm a newbie and i'm doing a little application in C# for a Pocket PC that
open image. I don't
understand what i've to do to have a zoom of an image...i don't know where's
the error. If anyone know a simple code tell me the url :O)
private void Zoom200_Click(object sender, System.EventArg... more >>
regex replace pipe character
Posted by glenn NO[at]SPAM glennh.com at 4/4/2005 4:00:20 PM
I am having trouble removing a pipe character using Regex.Replace -
see the 2 NUnit tests below:
The first replace works fine and the second Replace does not work.
I've tried escaping the pipe character.
Can anyone get this to work?
Thanks
Glenn
using System;
using NUnit.Frame... more >>
How to automatically Logout or Even Turn off the machine?
Posted by Q. John Chen at 4/4/2005 3:37:26 PM
How to automatically Logout or Even Turn off the machine?
I am NOT creating worm. Just to restrict my kids' computer time.
... more >>
message box fonts are invisible
Posted by Shoazib Longi via DotNetMonster.com at 4/4/2005 3:19:25 PM
Hi
When I display a message box in C# or VB .net the fonts of the message are
invisible i.e. i see the message box but not the message. Even the OK, NO
and CANCEL buttons do not show any fonts on them and are blank.
I have tried reinstalling VS .net but the problem is still there. I tried
to ... more >>
convert an improper fraction to a mixed number
Posted by Jeff at 4/4/2005 3:17:03 PM
I am trying to crete a method that will convert an improper fraction to a
mixed number...
I am not sure how about how to acomplish this. I know I can get the
remainder with the modulus operator (%), but I am not sure how to get the
quotent.
any insight would be appreciated.
thanks... more >>
Setup project - Launch Conditions
Posted by Feldman Alex at 4/4/2005 3:00:03 PM
Hello everyone!
In the setup project I need to add condition that user have "Administrative
privileges" before the installation starts. If the user doesn't the
installation will stop.
Anyone know how to do it?
As I understood I need to add condition to property window. Am I right? If I
do, p... more >>
exchanging data between a win32 application (service) and a c# application (service)
Posted by dthom at 4/4/2005 2:56:04 PM
Hi,
I have a C# service application - and a Win32 / C++ service application
running on my system.
I need someway to interact between those two - the Win32 application is pure
Win32 - so im not using any components or anything like that.
The 2 alternatives i could think of was, messages ... more >>
How to get started with Office & c#?
Posted by Frank Rizzo at 4/4/2005 2:43:50 PM
Hello,
I am supposed to write some code with Microsoft Visual Studio Tools for
the Microsoft Office System and C#. However, I am not sure what to
download and where to download it from. MS has a getting started page (
http://msdn.microsoft.com/vstudio/office/officetools.aspx ), which
ex... more >>
network assembly list
Posted by Narcís Calvet at 4/4/2005 2:39:01 PM
Hi,
Using Windows 2003 Server, if I access a LAN machine with the same OS to
browse it's "C:\WINDOWS\assembly" path I get my machine list not the remote
one.
Regards,
Narcís
... more >>
How to select treenode in treeview by name?
Posted by Wes at 4/4/2005 2:27:05 PM
I have a treeview that I am continually added nodes to. Each time a new node
is added I would like to select that node.
Is this possible? I have looked at selectedNode, but I don't know how to
point that at a given node using the nodes name.
I have the nodes name and it's parents name.... more >>
Access SQL SELECT * FROM X WHERE [Field] = null statement
Posted by Sam at 4/4/2005 1:54:15 PM
Access quickie question-
Have a table called ValidAxes. Design as follows-
FieldName Type Null OK ?
--------------------------------
ProcessType Text NO
EEType Text YES
....
....
--------------------------------
Have 2 records in the table. Records as follows-
... more >>
Webbrowser control and browser cache
Posted by Flyfish at 4/4/2005 1:44:03 PM
Hi,
wondering if would be possible to find out what files are cached in browser
cache (temporary internet files) when using Webbrowser control?
What about read files list? (e.g. what images are read) Can I find that?
FlyFish
... more >>
Collections
Posted by Aadam at 4/4/2005 1:19:05 PM
How do you do a VB.NET type Collection in C#?... more >>
system users
Posted by Hrvoje Voda at 4/4/2005 1:05:07 PM
Is there a system dialogbox which I can use to add, change or check users
accounts?
Something like users accounts in control panel.
Hrcko
... more >>
Communicating between forms...
Posted by AMeador at 4/4/2005 12:31:45 PM
I have a form where a user will check boxes next to items that have
been completed. They will click a button on the form to mark the items
as completed. When they do this, I will have the 'parent' form
instantiate another form where the details of this completed event will
be entered. Once th... more >>
How do I change the radiobutton when listbox selection has changed
Posted by Alpha at 4/4/2005 12:29:01 PM
I have 3 radio buttons for include, exclued or 'select all' from the listbox
items. If a user selects the 'Select All' button' then all items in listbox
is hi-lited as selected. Now, when user selects one item out of the 'all
selected' listing then there is now only one item selected. How a... more >>
Retrieving HTTP Response Code
Posted by Chris Fink at 4/4/2005 12:08:20 PM
How do I retrieve the HTTP Status code (ie 202, 404, etc) below? I am
currently receiving the response text but unable to access the response
status code.
string strNewValue;
string strResponse;
// Create the request obj
HttpWebRequest req = (HttpWebRequest) WebRequest.Create(txtURL... more >>
If statement with multiple condition
Posted by Alpha at 4/4/2005 12:01:02 PM
C# doesn't allow multiple condition in a single if ? Or did I make a mistake
with my syntax? It keep giving me syntax error when I put "and" or "or" in
the if statemnt for multiple condition checking.
if ((radioAllItems.Checked = TRUE) and
(this.lstSelections.SelectedItems.Count < lstSe... more >>
Registry Editor and Property Grid
Posted by Steve Teeples at 4/4/2005 10:45:02 AM
I have looked but can't find a way to pull up the registry editor within a
propertygrid. Is this possible? If so, can you tell me how?
--
Steve... more >>
How to add a shortcut Ctrl+S ?
Posted by cyshao at 4/4/2005 10:43:36 AM
How to add a shortcut Ctrl+S ?
I want to add a new function for user to provide Ctrl+S to save things.
How can I do that?
Thanks
Charles Shao^_^
... more >>
handling security in applications
Posted by Vivek Sharma at 4/4/2005 10:41:12 AM
Hi There,
I have always wondered what sort of security is the best for a windows
application. I am designing an application and I wish to understand whats
best to implement.
Is it role based security? Shall I handle security in SQL tables. What is
the best way of providing access to vari... more >>
How to get event of Esc pressed?
Posted by cyshao at 4/4/2005 10:11:38 AM
How to get event of Esc pressed?
I want to do something when user press Esc Key in my form.
I tried OnKeyUp event but code will never get here.
God, I'm confused :P
Thansk
Charles Shao
=========================================================
this.KeyUp += new
System.Windows.For... more >>
Throwing exceptions
Posted by Mark Rae at 4/4/2005 10:10:22 AM
Hi,
Can anyone please tell me if there is any difference in throwing an
exception with or without parentheses, e.g.
try
{
/*
code
*/
}
catch (Exception ex)
{
throw (ex);
}
try
{
/*
code
*/
}
catch (Exception ex)
{
throw ex;
}
... more >>
Break out of Try
Posted by Arne at 4/4/2005 9:40:46 AM
How can I break out of a try clause?
In vb.net I can do 'Exit try'. How do I do that in C#?... more >>
Splitting a string array to seperate variables
Posted by JeffM at 4/4/2005 9:11:50 AM
Quick C# question:
I have comma delimited values in a string array that I want to pass to
seperate variables. Any tips on splitting the array?
Thanks in advance!
JM
*** Sent via Developersdex http://www.developersdex.com ***... more >>
WinForms, Fully Expand DataGrid
Posted by stork at 4/4/2005 8:55:20 AM
I have a Windows Forms application with a DataGrid attached to a
DataSet. The DataSet consists of some 36 tables. I would like to
expand all of the tables at once in the grid. Is there a way to do
that? Expand(-1) doesn't seem to be doing anything.
DataSet ds = report.GetDataSet();
... more >>
xpath in c#
Posted by juli jul at 4/4/2005 8:28:38 AM
Hello,
Here is my try to show all the Group elements and it subelements in a
tree view. I think something with the x-path implementation is wrong
because I don't see any result although there are such elements,could
you please tell me what is wrong?
The Code:
private void populateTreeControl... more >>
how to launch java application from c# code?
Posted by Fei Li at 4/4/2005 8:21:02 AM
Hi,
How can I launch a java application from c# code without console window?
My command is like:
javaw -cp .;lib myApplication
Thanks
... more >>
include build time in exe file
Posted by Sitar at 4/4/2005 8:19:05 AM
Hi,
I would like to include the build time in my application.
It's for my ? / About ... menu. It's annoying to change the label.Text
property for every release.
Is it possible to do so?
Thanks,
Sitar.
... more >>
Start and exit applcation(s) using Windows Services
Posted by Serg at 4/4/2005 8:17:08 AM
Is it possible to create Windows Services that executes other applications
(batch files), checks for newer versions (placed to a specific folder) and
terminates them by demand (or as scheduled or as new version arrives)?
It seems that first part - execute application is easier than the last ... more >>
Web Service - Create Excel Files
Posted by François Lépine at 4/4/2005 7:19:04 AM
Hi Everyone,
I want to build up a web services that uses the Excel Object in .NET (COM).
I typed down the code and everything compiles fine. But when I run it, a
debug message is given : "Access is denied" when I want to pass this line :
"m_objExcel = new Excel.Application();"
What's the ... more >>
Hex with .ToString("X")
Posted by Steve Norman at 4/4/2005 7:15:03 AM
Hi All,
I am trying to display an int as it' sHex representation, and looking on
MSDN it appears this can be done with .ToString("X").
This does work, but the example on MSDN
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemenumclasstostringtopic.as... more >>
Control-click
Posted by Barguast at 4/4/2005 7:05:04 AM
When a control's 'Click' event is triggered, is there a way I can test
whether the CTRL / Alt / Shift keys are pressed as well? I've thought about
capturing KeyDown events before the click but this assumes that the control
is in focus which won't necessarily be so. ... more >>
Is there any equivalent function in C# for the windows functions such as PurgeComm
Posted by vidya.bhagwath NO[at]SPAM gmail.com at 4/4/2005 6:49:57 AM
Hello Experts,
I am having C++ code. Now I am porting that C++ code to the Visual
C#.NET. In my C++ code I used the windows functions such as
"PurgeComm", "SetCommTimeouts"... etc. How can I port all these
functions to the Visual C#.NET? I am very much new to Visual C#.NET.
So I don't know much... more >>
Image Zoom
Posted by marco at 4/4/2005 6:43:05 AM
I'm a newbie and i'm doing a little application that open image. I don't
understand what i've to do to have a zoom of an image...i don't know where's
the error. If anyone know a simple code tell me the url :O)
private void Zoom200_Click(object sender, System.EventArgs e)
{
PictureBox.... more >>
How to give Excel workbook focus
Posted by JM at 4/4/2005 6:39:12 AM
Hi
I was wondering if anyone out there knew how to give a Excel workbook focus.
Problem is that if I go away and do work on something else e.g. E-Mail while
the C# program is dropping data into Excel that it will miss data.
How do I give the Excel workbook focus so that it will drop the dat... more >>
Form Post - Session Values
Posted by Andy at 4/4/2005 5:53:01 AM
We currently use an online Task Management System that uses a login form.
This System has some reports that can be ran, however: you must do them
individually and also log-in to the system. This is a process we would like
to automate.
Is it possible to emulate the login process? We wou... more >>
attributes(xml)
Posted by juli jul at 4/4/2005 5:31:47 AM
Hello ,
Here is the code of the function I want to use:
private TreeNode CreateTreeNodeFromXmlNode(XmlNode node)
{
TreeNode tmptreenode = new TreeNode();
if((node.HasChildNodes) && (node.FirstChild.Value != null))
{
tmptreenode = new TreeNode(node.Name);
TreeNode tmptr... more >>
Referencing another C# assembly
Posted by msuk at 4/4/2005 4:59:09 AM
All,
I have created one assembly say project A using c# that I would like to
reference from another assembly also written in c# called project B. Now in
project B I select References click the browse button and browse to project A
now do I select the project A assembly in the bin\debug or o... more >>
Running an EXE from C# code
Posted by Robert at 4/4/2005 4:49:02 AM
I need to run an executable from within C# code. In the VB6 world, we would
use a Shell function to run an application. How would this be done in C#?
--
Robert Hill
... more >>
how to Get and set desktop image in C#?
Posted by AhmedSabry at 4/4/2005 4:37:04 AM
hi all
i am migarating to C# now , and kindly have so many questions about using
FCL instead of MFC
for example
how to Get and set desktop image in C#?
thx for ur interest in advance ... more >>
#define preprocessor
Posted by [Yosi] at 4/4/2005 4:23:03 AM
how I can do the following in C#, (the define line below)
c/c++ : #define MAX_LEN 0x23
for (int i=0;i<MAX_LEN;++)
array[i] = 0xFF;... more >>
MSOffice component : AddTextBox
Posted by merighi NO[at]SPAM webengineers.it at 4/4/2005 4:19:27 AM
Im' trying to add a textbox to a word document with this code:
appWord.ActiveDocument.Shapes.AddTextbox(myOrientation,10,567,50,156,ref
falseObject).Select(ref falseObject);
appWord.Selection.ShapeRange.TextFrame.TextRange.Select();
.....
but the debugging tool reports a "type mismatch" ... more >>
Do console apps have a load event?
Posted by sally at 4/4/2005 3:38:50 AM
I'm unfamiliar with console apps.
Can i have a Load event in it like you can for web and
windows project templates.
thank you.
... more >>
volatile - small question
Posted by nick_tucker NO[at]SPAM hotmail.com at 4/4/2005 2:42:53 AM
I am right in thinking that if I have a class that can be accessed by
more than one thread in my application then I should mark *all*
instance variables within that class with the volatile keyword.
Also is it right that if the access to the variable is within a lock
then this is not required, si... more >>
tree node from xml
Posted by juli jul at 4/4/2005 2:10:40 AM
Hello,
I have such declaration in function:
tmptreenode = new TreeNode(node.Name);
but I need an attribute name and not Name ,I tried to do something like
that:
tmptreenode = new TreeNode(node.Attributes);
but it doesn't work,how can I solve this?
Thank you v. much!
*** Sent via De... more >>
tree view
Posted by juli jul at 4/4/2005 2:00:38 AM
Hello,
I am buliding a tree view and wanted to know in which control (maybe
something like listdata) and in which way I can present the detailes of
each node(I am dividing the window into 2 parts the one is the tree) How
can I implement the details of nodes part?
Thank you!
*** Sent via ... more >>
convert function to csharp
Posted by Andy Sutorius at 4/4/2005 1:34:01 AM
Hi,
I am attempting to convert this vb function to csharp but I am getting stuck
on the if statement dt.Rows(iLoop)("FAQCategoryID")). The compiler says
"method name expected" and underlines dt.Rows[iLoop]. I don't understand.
Thanks for your help.
Function GetSelIndex(CatID as String) as I... more >>
How to show/hide an MS Office MDI application ?
Posted by Flo at 4/4/2005 12:55:02 AM
Hello
I want to be able to show/hide an application that is running. When i am
getting the handles corresponding to an MS Office application (Excel for
example), it appears that i get a handle for the Excel MDI application which
got MDI children corresponding to the document(s) opened. Therefo... more >>
Not being tricky with XmlDocument
Posted by knocte at 4/4/2005 12:45:21 AM
I am using the XmlDocument class to generate a XML document "on the
fly", I mean, build it in memory so as to extract its contents with the
property "OuterXml".
I know how to create elements and attributes inside these elements, and
text and more elements inside elements... ¡except the firs... more >>
|