all groups > dotnet general > february 2005 > threads for thursday february 10
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
How to find out whether a file cannot be read?
Posted by Joerg Battermann at 2/10/2005 10:46:54 PM
Hello there,
I was wondering how I can check whether I am allowed to read a certain file
or not? Some of e.g. XP's files are not readable, not even by the Administrator,
and when trying to open a file for reading, it throws an exception (e.g.:
{"The process cannot access the file \"C:\\Docu... more >>
.Selected property for listbox does not work
Posted by Vipin Kedia at 2/10/2005 10:21:09 PM
Hi
I have written a code for showing the list boxes as selected using a
Listitem and the selected property of the items.
Now I have 2 list boxes in my page. But it shows only the selected values
of the last list box in both the list boxes.
If i reverse the calls to the filllistbox m... more >>
How to deploy to you clients?
Posted by Stephen Russell at 2/10/2005 9:30:00 PM
I have a Setup project in my app. Questions are the little things to add to
it for a "real pro look"
1) Add the folder to the programs group.
2) Add a Removal Icon to it.
3) Add a program icon to it for the EXE, and not the setup exe.
4) Add an OLEDB driver install to fire for a new instal... more >>
extending the FolderBrowserDialog
Posted by the openBack at 2/10/2005 9:23:10 PM
I want to have a FolderBrowserDialog that simply has 2 radio buttons with a label beside each underneath the folder list. Is it possible to
actually add things to common controls or no?... more >>
Objects in Treeview
Posted by Ricola ! at 2/10/2005 5:58:09 PM
Can I store objects in treeviews ?
--
Texeme Textcasting Technology
http://texeme.com
Indie Pop Rocks @ SomaFM
http://somafm.com/
... more >>
newbie question about time
Posted by dawn at 2/10/2005 5:37:03 PM
if I have a field that I want to store to a database is there a function that
I can use to show that it is just time without appending a date to it or
something? For example: I want to enter 0430 pm and have it store 1630
(military time) to my database. For example the following always retur... more >>
building a treeview from an object graph (reflection)
Posted by Rein Petersen at 2/10/2005 5:09:27 PM
Hi all,
I'm toying with reflection to try and build a recursive function that
generates treenodes of a treeview that represent any given object's
graph (of child objects):
public TreeNode BuildNode(ref object o)
{
TreeNode tn;
treenode.Tag = o;
treenode.Text = typeof(o).Name;
if (ty... more >>
Format string for phone number
Posted by Sansanee at 2/10/2005 4:19:55 PM
Hi,
I am wondering if there is any format string for phone number. Just like
those dd:mm:yyyy or C for currency. Can anyone enlighten me?
Thank you in advance,
Sunny
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
edit menu disabled in visual studio .net !?
Posted by Bryan Van. at 2/10/2005 4:17:02 PM
Hello,
I've had Visual Studio .NET for C# only two weeks now. Today I encounter a
big problem with the developer. The edit menu is disabled! Both using the
right click of the mouse, the edit menu bar, AND the CTRL + ... of the
keypad! I can't even delete items!!!!! I should be more spacific: ... more >>
typed DataSet not firing RowDeleted
Posted by Reader at 2/10/2005 4:01:02 PM
Hello,
I have a typed dataset and I have the following loop.
foreach (DataTable myTable in DataStore.Tables)
{
myTable.RowChanged += new DataRowChangeEventHandler( Row_Changed );
myTable.RowDeleted += new DataRowChangeEventHandler( Row_Changed );
}
The Odd thing about this is ... more >>
after opening socket, sending data then closing socket 3000 times i get "Only one usage of each socket address"
Posted by Daniel at 2/10/2005 3:48:06 PM
after opening socket, sending data then closing socket 3000 times i get
"Only one usage of each socket address"
what am i doing wrong? is there some thing else i need to do to free up the
socket after i send data into it?
I simply want to open socket, send data, close socket and have the s... more >>
Enterprise Library
Posted by Brent Stevenson at 2/10/2005 3:31:36 PM
We are a company whose IT development will be standardized on VS .Net C#. We
are reviewing tools that could help with development/standardization and
have seen Enterprise Library. Can anyone offer some insight and experiences
in using this tool?
Thanks Brent
... more >>
knowing when data sent so i can close the streamwriter and networkstream
Posted by Daniel at 2/10/2005 3:27:00 PM
i would like to konw when the data sent so that i can close the streamwriter
and networkstream is there some sort of call backs/events i have to
implement for this to work? if so how? can i just open neworkstream and
streamwriter, send data and then close it syncrhronously or do i have to
implem... more >>
SQladapter not returning value
Posted by lekshmi at 2/10/2005 2:50:03 PM
Hi,
I have an application written in .Net and my database is
SQLserver. In my application i am using SqlAdapters to
get the values from the database. But sometimes, values
are not returned properly to these adapters and there are
no exceptions also. At this time, all database queries
wi... more >>
VB.NET equivalent of String(5, "_")
Posted by Job Lot at 2/10/2005 2:49:02 PM
What is VB.NET equivalent of String(5, "_"), which creates a string
containing 5 "_" characters.
thanks
... more >>
Trickey problem with editing enum based properties
Posted by thechaosengine at 2/10/2005 2:35:42 PM
Hi all,
I have a problem that I havent really come accross before.
I need to be able to allow the user to set a dropdown control to a particular
colour value. The permissable values come from the Color enumeration and
unfortunately I can't change this implementation detail.
My question... more >>
Hiding Controls in aspx page dynamically:
Posted by Varad at 2/10/2005 2:15:04 PM
Hi all
I have been fighting to get this working.. I have a form with several text
boxes which posts back when an user fills and submits. I want to hide the
textboxes on postback and display some message based on some server rules.
Do I have to loop through each and every text box and set t... more >>
Error when trying to run a stored procedure
Posted by Jeff Thur at 2/10/2005 1:30:39 PM
I am getting this error when trying to run a stored
procedure:
[MissingMemberException: No default member found for
type 'DataSet'.]
Microsoft.VisualBasic.CompilerServices.LateBinding.LateInd
exGet(Object o, Object[] args, String[] paramnames) +1361
ASP.Baldwin41_aspx.Button1_Click(O... more >>
the api call in vb.net looks like this Dim WithEvents mobjSocketClient As TCPConnection how to do this in C#
Posted by Daniel at 2/10/2005 1:28:09 PM
the api call in vb.net looks like this Dim WithEvents mobjSocketClient As
TCPConnection how to do this in C# (particularly the equivilant of
WithEvents)
... more >>
Connection String
Posted by JJ at 2/10/2005 12:57:03 PM
Hello,
I was wondering what the best way would be to dynamically determine and
store connection string information. What I mean by this is that I want the
application to user the servervariable to determine what location it is
running in and then dynamically assign a connection string value ... more >>
DropDown List Issue
Posted by Manoj Paramu Das at 2/10/2005 12:50:23 PM
DropDownList.SelectedItem.Value returns only the first record value, no
matter when you select. any help would be appreciated.
Thanks Manoj
... more >>
setting tabs in a string
Posted by Chris at 2/10/2005 12:39:08 PM
Hi,
I am filling a server side listbox in an asp.net app
Each text value for each item in the list is created by concatenating to
string values together.
I want to give the appearance of columns in the drop down list box.
i.e.
jan 2000
feb 2000
mar 2000
however I am getting ... more >>
Screen freeze when running a .net application
Posted by Wei at 2/10/2005 12:13:47 PM
Hi,
I have a .net application serves 150 user simultaneously to answer multiple
choice questions on-line. Back end SQL server 2000. After the process
started about 45 minutes, most of the user's screen got freeze. It happened
three times. If 10 to 15 users work on the system for three hours, t... more >>
MemoryStream??
Posted by Charles A. Lackman at 2/10/2005 11:52:57 AM
Hello,
I am working on an updater that Retrieves a file from a web page.
GetRequest.Method = "POST"
SW = New StreamWriter(TheRequest.GetRequestStream)
SW.WriteLine(TransferName)
SW.Close()
TheResponse = TheRequest.GetResponse()
ms = New MemoryStream()
CopyData(TheResponse.GetResponse... more >>
Logo?
Posted by Uffe Kousgaard at 2/10/2005 11:40:25 AM
I have been looking for a logo for the .NET framework similar to the
Linux (the penguin) and java (cup of coffee) logo's.
Not something like "I support .NET" or ".NET certified". Just a neutral
logo for the framework.
TIA
Uffe
... more >>
Longhorn managed?
Posted by Wayne at 2/10/2005 10:58:03 AM
This was stated in a response another post:
>Right now only Win 2003 OS comes with the framework 'pre-installed'.
Windows
>2006 a.k.a 'LongHorn' is actually built on top of .NET framework. So
finally
>we have a 'managed' OS.
I'm curious about this, does it mean that the OS from ground up ... more >>
interface not supported excel COM
Posted by Chris at 2/10/2005 8:49:15 AM
Hi,
I hope this is correct forum for this, this might possibly an academic type
question.
I am trying to copy a dataset to an excel spreadsheet for my asp.net
application.
(written VB).
I have tried lots of sample code examples but everyone gets stuck at the
point where I try to mani... more >>
Microsoft's "Dies Patchae" Break .NET/COM interoperability.
Posted by INGSOC at 2/10/2005 8:34:26 AM
Check out the Microsoft support groups post this weekend.
The weekend of "patches".
They seem to have broken COM/.net interop on W2K.
..Net apps calling any COM component are met with nasty, unresolvable
"security" errors that can't be fixed with dcomcfg or the .Net
configuration manage... more >>
boolean logic parser - need help
Posted by Mad Scientist Jr at 2/10/2005 7:36:52 AM
Has anyone worked on code that that can parse evaluation expressions
(could be numbers or strings) like
( ( "dog" = "dog" ) or "foo" = "bar" ) and ("cow" = "bat" and "bye" =
"hi") or ("math" = "fun")
or
( ( 1 = 5 ) or ( 2 < 3 ) ) and (1 <= 6)
or (here it gets a little complicated wit... more >>
another easy question :) what OS come with .NET framework
Posted by Newbee Adam at 2/10/2005 7:31:06 AM
what OS come with .NET framework!?
How can I install .Net Framework on say a win 98 and win 2000 machine?
does the .Net framework need for the win 98 and 2000 machone come with
visual studio .NET?
--
Adam S... more >>
easy question - will an application created in .NET run a windows
Posted by Newbee Adam at 2/10/2005 6:57:02 AM
will an application created in .NET run a windows 98 and 2000 machines
--
Adam S... more >>
Datetimepicker button: How do I fire it manually?
Posted by snake_2k at 2/10/2005 6:51:03 AM
The button in the datetimepicker class that opens the calendar is too small
for my touchscreen users. How can I make a regular button that opens the
datetimepicker calendar ?
I don't want to just make the font in the datetimepicker huge, that only
makes the button very tall and skinny.
... more >>
Is there any way to know whether a procesure parameter is paramarr
Posted by buzzy at 2/10/2005 4:03:02 AM
Using reflection, is there a way to know that a method or property parameter
is a paramarray? There doesn't seem to exist a property like 'IsParamArray'
in reflection.parameterinfo.
Thanks in advance.... more >>
Validation happening for 2 datagrids
Posted by Stephen at 2/10/2005 3:49:02 AM
I have two datagrids on a page and each of them allow the user to add rows.
On each datagrid I have validation (required field, reg expressions etc) and
my problem is that I only want the validation to work on the datagrid which I
click add in. At the moment if I click add in one datagrid and... more >>
Reg Expression
Posted by Stephen at 2/10/2005 3:17:03 AM
I was wondering if anyone knew how to write a regular expression which
validated that a field was 200 or less characters long.
Its this part i'm interested in working out. Can someone help me please.
ValidationExpression="^{0,200}$"
<asp:regularexpressionvalidator id="Regularexpressionvali... more >>
Validation for the length of a textbox
Posted by Stephen at 2/10/2005 2:57:02 AM
I have the following regular expression and at present it checks that a field
contains only letters and is more than 2 characters in length. I would like
to change this slightly to also check that the text entered is 25 characters
or less. I'm not very good with regular expressions and was won... more >>
Can we add an event handler that has different delegate?
Posted by Tee at 2/10/2005 2:35:13 AM
Hi,
As topic,
Can we add an event handler that has different delegate?
Example:
I have a method that takes no parameter:
public void xyz()
I would like button1 to fire that method onclick.
button1.Click += new EventHandler(xyz)
I understand that button click event should has para... more >>
Databind problem? Cannot set selectedindex on dropdownlist
Posted by Paul Owen at 2/10/2005 2:13:03 AM
I have been pulling my hair out (what is left of it) for a few days trying to
figure out what is wrong with this..
I have a repeater control that renders a number of controls bound to a
datasource. Within this repeater, there are a number of dropdownlists which
have their datasource set to ... more >>
Can we pass a method to another class?
Posted by Tee at 2/10/2005 1:14:54 AM
Hi,
Can anyone tell me if it's possible to pass a method to another class?
Example of what I would like to do:
class1:
public void MyMethod()
{
code here
}
class2:
public void CallThisMethod(something MethodName)
{
MethodName();
}
Then I will call this code from class1:
c... more >>
|