all groups > c# > april 2005 > threads for tuesday april 12
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
How to set local variables automatically?
Posted by Iwan Petrow at 4/12/2005 11:57:21 PM
Hi,
Are there any options to set local variables in methods automatically
(in Visual Studio 2003)?
Example:
public void Method(){
int i; //I want i=0
ArrayList a; //I want a=null
i++;//compile time error
if (a==null) //compile time error
...
}
Thanks.
... more >>
FolderDialog Problem
Posted by Uchiha Jax at 4/12/2005 9:55:53 PM
I have downloaded as many samples of FolderDialogs as possible, tried the
1.1 version in the .NET Framework and the W32Shell API version I have that
used to work and am now stumped.
For some reason I can no longer access network locations from any type of
FolderBrowserDialog I use.
With the .... more >>
What's wrong with this Regex.Split
Posted by Jianwei Sun at 4/12/2005 9:11:19 PM
string sTest="TEST1||TEST2";
string[] asTest =Regex.Split(sTest, "||" );
I want to get an array with two elements TEST1 and TEST2, but it returs
every char inside the sTest as a seperate array element.
Thanks,
Jianwei... more >>
topmost item in listbox
Posted by Alex K. at 4/12/2005 5:49:13 PM
How do I get the index of the first displayed item in list box / combo box?
Thank you... more >>
Passing null value to Crystal Reports parameter
Posted by PK at 4/12/2005 4:20:14 PM
Hi, I have an application that opens a Crystal report document and
passes in a value to a parameter in the report (pointing to an Oracle
DB). However, if I want to pass a "null" value to retrieve all records
that have no data for the specified field that the parameter is a
condition of (ie. SEL... more >>
Create a Bitmap of a webpage programmatically...how?
Posted by Joe Black at 4/12/2005 3:40:19 PM
Hi everyone,
I have a pesky little problem that is driving me nuts.
I'm trying to capture an image of a web page programmatically in a
background thread or process.
What I'd like to do is create a Bitmap object of a webpage from, say,
the new WebBrowser control of .net 2.0 or even the old Act... more >>
Quick way to get the dimensions of an image?
Posted by Gordon Scott at 4/12/2005 2:43:38 PM
Is there a faster way to determine the dimensions (width, height) of an
image besides using a Bitmap object?
I've got a piece of code that is searching a directory structure for images
and retrieving their hieght and width.
I have been using a bitmap object like this to gain access to the ... more >>
wasn't there a way to access a datatable with [][]
Posted by D at 4/12/2005 2:38:27 PM
I recall seeing some syntax regarding accessing data in a data table using
brackets like
using DataTable T
T[4][3] = "test";
Can someone post some sample.
Thanks
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Problem with Event Log event triggers
Posted by amol at 4/12/2005 1:51:43 PM
Hi,
I have the following code to raise events when something gets written
to the Application log. The problem I'm seeing is when a bunch of
entries get written to the log at the same time (or within a couple of
seconds of each other). I receive an event for the first entry, but
the events f... more >>
Exiting a Subroutine
Posted by OutdoorGuy at 4/12/2005 1:29:42 PM
Greetings,
I'm still relatively new to C# and was wondering if there was a way to
exit a subroutine (such as "Exit Sub" in VB)? I have the code below
which performs validations. If the user fails to enter in a First name,
then I want to set the focus to the control on the form and then exit
... more >>
Calculate trend line
Posted by Joe at 4/12/2005 11:43:54 AM
I need to add a trend line to a scatter plot (not automatically supported by
the charting package) but I don't know how to calculate it. Is there any
formulas around for calculating what the trend line should look like?
... more >>
XSLT for WinForms?
Posted by Evan Stone at 4/12/2005 11:37:47 AM
Hello All,
I was just curious to see if there was some analog to XSLT in WinForms.
I'd like to be able to have my data be defined in XML, then process it
with some kind of style sheet/transformation to dyamically "render"
forms and their constituent controls on-the-fly.
Would XAML fit th... more >>
Async Design Question
Posted by Shawn Meyer at 4/12/2005 10:50:10 AM
Hello -
I am trying to write a class that has an async BeginX and EndX, plus the
regular X syncronous method. Delegates seemed like the way to go,
however, I still am having problems getting exactly what I want. Here are
my goals
1. I would like the IAsyncResult that is returned by the Be... more >>
windows service
Posted by J at 4/12/2005 10:29:48 AM
I create a windows application to delete old data in sql server without any
problem. Then I create a windows service to handle this task due to this task is
a daily basis job. I also have let this service write to log file before and
after service to start and finisheddelete job. When I opened lo... more >>
Missing Icons With EXE
Posted by Andy at 4/12/2005 10:03:02 AM
I have an application (.exe) that is running in the system tray. When a
message arrives: the icon in the system tray is to change so that the user
knows a message has arrived.
My question is: how can I deploy .ico files with an application? I would
like to just send the people the .ex... more >>
VB.NET Equiv of...
Posted by Brian W at 4/12/2005 9:18:32 AM
Hi All!
Does VB.NET have an equivelent of the following C# statement (the using
part):
using (SqlConnection connection = new SqlConnection(connStr))
{
}
TIA
BW
--
-- Formerly brianw@gold_death_2_spam_rush.com ... more >>
AWESOME MOVIE! << This free movie is about real situations and I give it a big thumbs-up..............................................................
Posted by JavaDude_100208 NO[at]SPAM yahoo.com at 4/12/2005 9:02:12 AM
http://www.moviefever.com/movie121 << Awesome Movie!
... more >>
Accessor Issue
Posted by apoc69 NO[at]SPAM gmx.net at 4/12/2005 8:49:13 AM
Hi guys,
maybe you can help me again in developing my bussiness project for a
company..
i make sure, that each property of an entity, mark it self dirty when
data get changed.. thats the code:
private Address address;
....
/// <summary>
... more >>
Naming Controls
Posted by Brian Corcoran at 4/12/2005 8:31:18 AM
With dotnet, everyone has said that you should no longer use hungarian notation
to name your objects. So, no more strName or intCount.
Okay, but what about controls on forms. If you have a button that is the
"okay" button, I can't see how naming it "Okay" makes any sense.
Thoughts?
... more >>
WebService Parameters
Posted by François Lépine at 4/12/2005 7:36:03 AM
Hi all,
I am a beginner in using the Web Services. I attempt to send typed
parameters (such as Shoe that possesses a name and a color, two strings) but
..NET seems to make a difference between the Shoe class and the
localhost.MyApp.Shoe class...
Would someone tell me the difference betwe... more >>
General Question About Structs and Stack
Posted by gmccallum at 4/12/2005 7:14:03 AM
General Info:
A struct is stored on the stack and a class on the heap.
A struct is a value type while a class is a reference type.
Question:
What if a struct contains a string property(variable). The string would
be a reference type being contained in a value type. Would this filter
up an... more >>
ADO.NET No Row At Position X Error
Posted by wackyphill NO[at]SPAM yahoo.com at 4/12/2005 5:40:43 AM
I keep getting this error on a scheduling program I'm working on and
don't know why. It seems to be the last row in the view always that
gets the error.
The Code W/ The Error: (_db is a wrapper around some ADO Objects)
int freq;
int days;
DateTime now = DateTime.Now;
... more >>
Send message like Yahoo Messenger??
Posted by trint at 4/12/2005 5:06:14 AM
How can I send from myApp, over the internet with c#.net, a message to
another instance of myApp?? Like Yahoo or MSN?
Thanks,
Trint
... more >>
elements(list view)
Posted by juli jul at 4/12/2005 3:43:26 AM
Hello,
How can I pass over all the elements that are in the first column of
listview?
I need to do it in a loop and to present each cell value,how?
Thank you!
*** Sent via Developersdex http://www.developersdex.com ***... more >>
Declaration of xdata * data_buf
Posted by Mark at 4/12/2005 12:20:02 AM
In an example program there is the code:
u_char xdata * data_buf = 0x7000; // Location of received_buffer
When I want to compile the program it gives the error "impossible type
conversion". If I delete the 0x7000 part then it is fine, but then the
pointer "data_buf" in "recv(s, data_buf, le... more >>
Delphi client / VS 2003 COM Server
Posted by glenn at 4/12/2005 12:00:00 AM
I've gotten a COM server written in C# and I can call it from a VBScript
just fine and it works perfectly. However, I import it into Delphi 6 or
Delphi 2005 and I can not get access to any of the functions that are in the
server. Is there something specific that I need to do in order to get
De... more >>
void parameter argument
Posted by Dan at 4/12/2005 12:00:00 AM
Is it just me, or is the removal of support for the word "void" in a
parameter list extremely annoying? Some of us have been programming for
years putting "void function_name (void)" - and it really doesn't feel nice
having to miss it out. Is there any reason for them removing this? I don't
s... more >>
Wrong overload resolution ?
Posted by Vladimir Granitsky at 4/12/2005 12:00:00 AM
Hi guys,
Please, look at the code below and try to step into it. The compiled =
code calls the loosely typed method public void Method1(object o) !?!?
Am I right that C# compiler does wrong overload resolution ?
I've used parameters of type object and string here, just to illustrate =
the... more >>
Command Line Arguments
Posted by Brian Scott at 4/12/2005 12:00:00 AM
Is it possible to get the full command line argument string that was used to
launch your current process other than using the args[]. I would like to see
the original string before the args are interpreted.
Thanks.
... more >>
C#/2.0: Tricky issue with generics.
Posted by Thomas Tomiczek at 4/12/2005 12:00:00 AM
Ok, working my way through a complex library conversion to .NET 2.0 and C#
2.0 with generics I am totally stuck on one thing -if anyone sees the issue
I would be more than glad.
The situation is that we have a tree of "Node" objects. A Node is a
visualizable item, like a component. THe menu... more >>
list box checked names
Posted by Hrvoje Voda at 4/12/2005 12:00:00 AM
I got the index of all checked values, but I don't know how to read data of
that value?
For example.. in list box I have Names of users. First is John(index 1),
Second is Jack(index 2) and so on...
How to get the names ?
Hrcko
... more >>
Adding a service description
Posted by Claire at 4/12/2005 12:00:00 AM
How do I add the "description" field that's seen in service explorer to my
service please
thanks
Claire
... more >>
TrackMouseEvent in C#?
Posted by Tyron Madlener at 4/12/2005 12:00:00 AM
Is there some sample code for this available?
I don't have a clue how to use this function in C#, I found one for C++
though: http://www.codeguru.com/Cpp/misc/misc/article.php/c307
I need the WM_NCMOUSELEAVE Notification and as far as i can see this
function gets me this notification.
Tha... more >>
how can i call IE print preview function after i press asp:button?
Posted by Alan Ho at 4/12/2005 12:00:00 AM
SEARCH XML ATTRIBUTE BASED ON THE VALUE OF ANOTHER ATTRIBUTE
Posted by ATLANTA PATNAIK via DotNetMonster.com at 4/12/2005 12:00:00 AM
<ITPL>
-<GATE NAME="2">
<SLOT SNO="5" TYPE="2" STATUS="VACANT">
<SLOT SNO="6" TYPE="2" STATUS="VACANT">
<SLOT SNO="7" TYPE="4" STATUS="VACANT"><VEHICLE VNO="5" TYPE="2"
MODEL="BOLERO" />
<SLOT SNO="8" TYPE="2" STATUS="VACANT">
</GATE>
</ITPL>
For the above file how can i q... more >>
Regular expression for validate
Posted by PawelR at 4/12/2005 12:00:00 AM
Hello everybody,
I have problem with regular expression.
I want "code" telephon number and I have two types number:
1) [xx] [xxx xxx xxx] or
2) [xx] ([xx] or [xxx]) [xxx xx xx]
where x - is digital
Maybe someone know where is simple description regular expression - for
complitly beginner.
... more >>
list box checked
Posted by Hrvoje Voda at 4/12/2005 12:00:00 AM
How to get witch values in listBox are checked?
Hrcko
... more >>
Regular expression
Posted by PawelR at 4/12/2005 12:00:00 AM
Hello everybody,
I have problem with regular expression.
I want "code" telephon number and I have two types number:
1) [xx] [xxx xxx xxx] or
2) [xx] ([xx] or [xxx]) [xxx xx xx]
where x - is digital
Maybe someone know where is simple description regular expression - for
complitly beginner.
... more >>
what's wrong?
Posted by Hrvoje Voda at 4/12/2005 12:00:00 AM
I would like to fill combo box with a string.
I call this function but nothing is placed in it.
string UserName = "something";
comboBoxMembers.Items.Add(UserName);
... more >>
Hiding COM functions
Posted by glenn at 4/12/2005 12:00:00 AM
how do you only expose certain functions to COM? Currently I've been
playing around with writing a COM server in C# and VS 2003, and have gotten
through the first few tutorials, however, the entire program is being
exported for use when what I really want is to only expose a few specific
elemen... more >>
Multi Dimension Arrays
Posted by SouthSpawn at 4/12/2005 12:00:00 AM
If I have an array that is
string[,] MyArray = new string[1,1]
Then I do the following.
string[0,0] = "A";
How can I "ReDimension" my multi dimension array?
In VB.Net they have the ReDim Keyword.
Thanks,
Mark
... more >>
how to merge urls with relative paths?
Posted by ask josephsen at 4/12/2005 12:00:00 AM
Hi
Does anyone know how to combine a url with a relative path (ex.:
"../imges/pic.png") with an absolute path (ex.:
www.someplace.org/themeOnePointZero) ?
Thanks....
../ask
... more >>
Com interop, reflection & other problems...
Posted by Francesco Mancini at 4/12/2005 12:00:00 AM
Hi all
I'm working with c# and I need to load (runtime) a COM ActiveX (written in
VB6, I think...); and this is not a problem (with Reflection class)...
the problem is that this ocx has a menu, that I'm not able to retrieve in
any way. Someone have some ideas?
Thanks, bye
Francesco Mancini... more >>
Remove Filtered result.
Posted by Jeya at 4/12/2005 12:00:00 AM
Hi all,
Is it possible to remove filtered result from dataview ?
Say
Mydataview.RowFilter ="Select='True' and tmp='False'"
Say the Fitered row count is 8. i want to remove only 8 row...
I am using a for loop to get the work done..is there any alternate and fast
way...
Thanks
... more >>
method to bind ListBox, DropDownList, RadioButtonList
Posted by kids_pro at 4/12/2005 12:00:00 AM
I tried to create a simple method to bind 3 kind of control
private void SimpleBinding(ListControl lc, string tblName, string txtField,
string valField){
SqlDataReader dr = ....
//... get value from database
lc.DataTextField = txtField;
lc.DataValueField = valField;
l... more >>
Maximize Box and HelpButton
Posted by Mohan at 4/12/2005 12:00:00 AM
Hi,
I am C# Beginner.
I want to develop an Form Based application, form should contain the
Minimize box and Help Button.
When I tried,
this.MaximizeBox = false;
this.MinimizeBox = true;
this.HelpButton = true;
Form Displays the Minimize box and disabled Maximize ... more >>
|