all groups > c# > march 2006 > threads for monday march 20
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
How do I set an Icon property
Posted by Thomas Wegener at 3/20/2006 11:32:32 PM
Hi,
I have an file "painting.ico".
I use an class which has an "Icon" property.
How can I set this property.
I tried
- Build Action: embedded resource
But it crashed during the assignment
- class.Icon = new Icon("painting.ico");
Anybody know the right way?
Thanks in advance
Tho... more >>
export to excel
Posted by beachboy at 3/20/2006 10:17:49 PM
Hello all,
any FREE solution for export data into excel file?
Thanks in advanced.
... more >>
Crazy behaviour!!
Posted by Lee at 3/20/2006 8:19:12 PM
Hi,
I am saving a forms location by getting the x and y coordinates as such;-
this.Location.X.ToString();
this.Location.Y.ToString();
when i again load the form i am using the saved x and y coordinates as
such;-
public void setLocation(int x, int y)
{
Point moveTo = this.PointTo... more >>
How do I save a file?
Posted by needin4mation NO[at]SPAM gmail.com at 3/20/2006 7:46:49 PM
I have data I am reading from a database.
I want to take that data, parse it, and put it in between html tags.
When I have that row completed in between all the tags, then I want to
save that file as an .htm.
I'm not asking anyone to write code. I was hoping someone would point
me in the... more >>
convert ArrayList object to double
Posted by Web learner at 3/20/2006 6:32:52 PM
In the following code, I want ArrayList object x to be of type double.
How can I do that?
--Thanks
SqlConnection objConnection = new
SqlConnection("server=(local)\\SQLEXPRESS; database=Northwind; integrated
security=true;");
String strSQL = "SELECT ProductName, Un... more >>
saving rich text box data!
Posted by Lee at 3/20/2006 6:26:15 PM
Hi,
I have a rich text box that can have hyperlinks ect within the text!
when I save this data to file how should I do it? that is can I just save it
as text?
or do I need to serialize it beforehand to preserve the hyperlink info?
thanks in advance
... more >>
How to use filestream, memoryStream ,byte array and streamreader properly
Posted by pgmfan NO[at]SPAM gmail.com at 3/20/2006 6:13:50 PM
What is the difference among filestream, memoryStream and byte stream,
how do i use each properly. i confused by them
appreciate for any advice ,please help
... more >>
HTML Email
Posted by Thomas Heiz at 3/20/2006 5:35:04 PM
I want to create a html email with c# and the class System.Web.Mail. The
assign html code is correct, but the produced email has a lot of strange
errors in the text.
there are ! in the text, spaces and new lines in the tags.
Is there any solution for this problem?
Thanks
Thomas
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
passing object as value problem
Posted by J055 at 3/20/2006 4:41:27 PM
Hi
I'm a little confused by this so would appreciate some advice on ways to
deal with the following. When I call the CodeMaker.Update static method for
the second time I want the dt parameter to have the same value as when
called the first time. What would be the best approach (and simplest... more >>
Cannot connect to SQLEXPRESS via MS Enterprise Library??
Posted by Crash at 3/20/2006 3:09:14 PM
Windows XP
MS SQLExpress
VS 2003
..NET 1.x SP1 {for Application}
..NET 2.0 {for SQLExpress}
MS Enterprise Library June 2005
This works from a command prompt
osql -E -S localhost\SQLEXPRESS
> use <MyDatabase>
> select * from <MyTable>
> go
However on the same machine, attempting to... more >>
Quick check to see if Columnname exists in a datagridview
Posted by RSH at 3/20/2006 2:38:24 PM
Hi,
I have a situation where I have a dynamically loaded DataGridView and I need
to see if a particular column exists in the DataGridView before I enable it
for editing. Is there an easy way to see if the column exists?
Thanks!
Ron
... more >>
reading ListView content
Posted by phil2phil at 3/20/2006 2:01:06 PM
Hi,
I have an application that loads data into a ListView object, is there
anyway for me to loop through that list row by row, column by column.
Currently the user selects a name from a dropdown and the listview
refreshes with data on that person, I need to then write that data out
to a file, b... more >>
Converting string to date time
Posted by eric.goforth NO[at]SPAM gmail.com at 3/20/2006 1:58:34 PM
Hello,
I'm trying to convert a string to a date time in a C# web service.
I'm passing in a string parameter and I have a localization setting in
my Web.config file:
My app is blowing up on the first line here, with a"Value does not fall
within the expected range" error.
CultureInfo ci ... more >>
Culture/Resource problem
Posted by Thor W Hammer at 3/20/2006 1:53:06 PM
DESIGNER:
<asp:Button runat="server" ID="b1" Text="<%$ Resources:Products,
PopularProducts %>" />
CODE BEHIND:
protected void Page_PreRender(object sender, EventArgs e)
{
Response.Write(Resources.Products.PopularProducts);
}
These two should both be linking to the same resource,... more >>
Getting an icon for a window out of a resource.
Posted by UJ at 3/20/2006 1:47:22 PM
I have an icon file stored as part of a program as a resource (Embedded
Resource). How can I get the file out of the resource to be able to set a
window's icon to the icon?
(I know the icon is there because I can pull it out as bit map and display
it.)
TIA - Jeff.
... more >>
Regex.Replace help
Posted by Roger at 3/20/2006 1:47:10 PM
I'm having a little trouble using the Regex.Replace method. I am
trying to perform a search and replace based on string pattern. I've
been successful in replacing string from it's starting position to the
end of the string value, however, I want to better define an ending
position. Below foll... more >>
Anyone familar with .net Oracle programming?
Posted by jens Jensen at 3/20/2006 1:41:39 PM
I have the following code:
OracleConnection ocn = null;
ocn = new
OracleConnection(ConfigurationManager.AppSettings["ODB_Connectionstring"]);
OracleParameter omid = new OracleParameter("OUT_MESSAGE_ID",
OracleType.Int32);
omid.Direction = ParameterDirection.Output;
OracleParameter... more >>
How to get a system image into a picturebox?
Posted by Frank Rizzo at 3/20/2006 12:19:04 PM
Hello, I am trying to get a system image, like the ones that appear in
the message boxes, to go into my picture box on a winform.
How do I do this? If possible, I'd like to keep all the nice
translucency just like when appear in message boxes.
Thanks.... more >>
Site works with Firefox, not with IE ( Response.Redirect )
Posted by KBuser at 3/20/2006 12:02:09 PM
I recently developed an internal website with various queries against
our SQL server. I added buttons with Response.Redirect. These buttons
do not work with Internet Explorer, however when using Firefox the page
works flawless. Does anyone know why this is happening or how to fix it?
... more >>
Using .GetType() or similar to create object of arbitrary type...
Posted by danielbuus NO[at]SPAM gmail.com at 3/20/2006 11:32:47 AM
....or, to put it perhaps more communicative, something like this:
Type someObjectsType = someObject.GetType();
someObjectsType newObject = new someObjectsType();
Is this possible? If so, how?
Thanks very much in advance,
Daniel :)
... more >>
Write a "Windows Service" as a HTTP Request Server?
Posted by domtam NO[at]SPAM hotmail.com at 3/20/2006 11:14:01 AM
Hi there.
My goal is to write a windows service that can act as HTTP Request
server. How can I do that?
I know that I can use ASP.NET to develop a web site to achieve this
purpose, i.e. receive HTTP request. However, I'd like it to exist in
the form of a "Windows Service".
I also under... more >>
Problems with Threading and CDO in C# Winforms app
Posted by Steve Smith at 3/20/2006 10:38:57 AM
I have written a winforms application that launches approximately 150
threads with
Thread.ThreadStart()
Each thread uses CDO 1.21 to logon to a different Exchange mailbox and
send/receive a number of mail messages, reporting back to the UI thread
through the use of a Queue object. When all m... more >>
mutithreading in a Winforms app with CDO
Posted by Steve Smith at 3/20/2006 10:30:14 AM
I have written an application that launches approximately 150 threads with
Thread.ThreadStart()
Each thread uses CDO 1.21 to logon to a different Exchange mailbox and
send/receive a number of mail messages, reporting back to the UI thread
through the use of a Queue object. When all messages... more >>
strategy of migration to VS 2005
Posted by mustapha.jouad NO[at]SPAM gmail.com at 3/20/2006 9:45:27 AM
i have like tasks to migrate an applcation (a great application , so
many packages and much design) coding in C#1.1, and i have ti migrate
it in C#2.0 (VS 2005),
i hope so for help to doing a strategy and how i can doing this work,
i m justing coming from java_world, i dont have so many experien... more >>
Problems Changing Mouse Cursor Type
Posted by Jim Frazer at 3/20/2006 9:30:15 AM
Hi,
I'm working on an application in C# that will allow the user to create
simple CAD drawings on a CEPC system. I would like to be able to change the
cursor shape depending on the drawing mode selected by the user. I started
out by setting up P/Invokes for LoadCursor and SetCursor. Calling... more >>
Force Application Update
Posted by Mike L at 3/20/2006 9:16:29 AM
If a newer version of the application exist, the user will receive a popup
question that states, "Update Available. Application update. A new version
of projectname is available. Do you want to download it now?"
OK button and a Skip button are show on the popup question.
I don't want the ... more >>
Dictionary of dictionaries
Posted by AdamH at 3/20/2006 9:16:28 AM
I’m looking for a way to create a generic dictionary of generic dictionaries
grouped by type. Something like this
Class the Grouping ChildItem<T>{…}
Class ParentGrouping {
Dictionary<Type, ChildItem <theGrouppingItemtype>> myDimDict;
}
So I would access it like this
ParentGroupin... more >>
combobox usage
Posted by barry at 3/20/2006 8:32:05 AM
hi
i have a screen with customer details on it. for some items i only want to
make a combobox available. eg. country - this will hold a defined list of
countries. my question is how i set up the datasource etc. on this combo. of
course, when opening the screen, i want the existing value for... more >>
Crash when hooking common dialog boxes in namespace extension
Posted by kmslick NO[at]SPAM gmail.com at 3/20/2006 8:13:30 AM
Hello all. Not sure which group this problem best relates to, so I'm
posting to both with a follow up.
I started learning C# and .NET last august for a project for my
employer. The project involved extending explorer by creating a
context-menu extension and allow certain actions to be perfor... more >>
outlook2003 add-in
Posted by Gwen at 3/20/2006 7:38:33 AM
Hi, I'm writing an add-in for outlook 2003 which automatically schedules the
users tasks from the task list in to the calendar with respect to priority. I
can sort the tasks by priority within the task list via;
_Items olTasks = olFolderTask.Items; // MSO items collection in f... more >>
Dllimport, Help needed
Posted by alex at 3/20/2006 6:33:56 AM
Hi,
I try to use a c++ dll in a CS-project.
First i call a test method to receive the given parameter an compare
both:
extern DLLEXPORT char * DLL_Test(char *str){
return str;
}
This method is defined in a header file, in a seperate project of the
solution which provides the dll function... more >>
Need help
Posted by Sanjiv at 3/20/2006 5:40:33 AM
Hi guys
i need to deserialize the xml file in C#. and that file has about 300
nodes?
how can i do that. plz help me. its urgent
thanks in advance
Sanjiv
... more >>
convert DIB to Bitmap
Posted by cosminb at 3/20/2006 4:13:05 AM
I have a native function which returns an image in the form of a BYTE*
lpDIB array. How do I convert it to a Bitmap, so that I can work with
it properly in C#?
Thanks in advance,
Cosmin
... more >>
new Point(-e.X, -e.Y); can someone tell me what the e's do / mean?
Posted by garyusenet NO[at]SPAM myway.com at 3/20/2006 2:26:03 AM
I understand that Point is an object used for storing co-ordinates,
such as mouse location.
I can't figure out what the e's do in the above example can someone
explain please.
Thanks,
Gary.
... more >>
Saving RichTextBox from Tab Control
Posted by AxOn at 3/20/2006 12:40:47 AM
Hi,
How can i save the specific RichTextBox in the selected tab if i have
several tabs with RichTextBoxes in? The application is a text editor
type program and when i try to save the most recently opened text file
in the rich text box my application saves that file over the other
files?? Can ... more >>
Thread.Sleep vs Thread.Join
Posted by Joe at 3/20/2006 12:34:23 AM
Does anyone know the difference, in practical terms, between
Thread.Sleep (10000) and Thread.CurrentThread.Join (10000)??
The MSDN says that with Join, standard COM and SendMessage pumping
continues, but what does this mean in practice for a typical Windows
Forms or Windows Service applic... more >>
Code Obsfucation
Posted by John at 3/20/2006 12:00:00 AM
Hi,
Does visual studio come with a compiler setting to obsfucate the assembly,
or are there 3rd party products that do this?
John.
--
"I have nothing but the greatest respect for other peoples' crackpot
beliefs".
-- Sam the Eagle.
... more >>
My.Settings
Posted by Fox at 3/20/2006 12:00:00 AM
NewBie question.
How can access the project setting in C#?
I can access the project setting in VB (My.Settings).
... more >>
Question about casting
Posted by Andy Chen at 3/20/2006 12:00:00 AM
Hi,
I have a Hashtable, key is string and value is ArrayList. The problem is I
cannot cast the value from object to ArrayList.
like this:
Hashtable ht = new Hashtable();
ArrayList al = new ArrayList();
al.Add("test");
ht.Add("key1", al);
ArrayList al1 = (ArrayList)(Hashtable["key1"]; ... more >>
How to get AllUser's Desktop folder
Posted by ad at 3/20/2006 12:00:00 AM
I can use SpecialDirectories.Desktop to Get the user's Desktop folder.
But I can't find how to get the Dedktop folder of All user.
How can I do?
... more >>
Having problem with class decaration when Building a class libraray
Posted by tony at 3/20/2006 12:00:00 AM
Hello!
I try to build a class library but I run into some problems.
In the code for this class library there are some rows that have this kind
of look
public bool IsBottomMixValid(MeltPracDataGmix.BottomBlowing mix, int
maxBottomFlow)
As you can see here we have a class named MeltPracDat... more >>
How to use class library when anthor class is used
Posted by tony at 3/20/2006 12:00:00 AM
Hello!
I'm trying to build a class library which has a class called
AvestaPlantFunc.
In this project building a class libray exist a class called
AvestaPlantFunc. In this class is there a method called IsBottomMixValid.
Code not relevant for the question has been removed.
This method IsBotto... more >>
Q: loading Crystal report 10 from file
Posted by dllhell at 3/20/2006 12:00:00 AM
hello all,
this is my code:
LINE_1: CrystalDecisions.CrystalReports.Engine.ReportDocument aRep= new
CrystalDecisions.CrystalReports.Engine.ReportDocument();
LINE_2: aRep.Load("c:\rep1.rpt", OpenReportMethod.OpenReportByTempCopy);
in line_2 whatever option I use in load method error occu... more >>
sql server name
Posted by Hrvoje Voda at 3/20/2006 12:00:00 AM
How to get the name of sql server that is running in application?
In another words, i need the name of sql server that i'm using in my
application for getting data.
Hrcko
... more >>
|