all groups > dotnet framework > may 2007 > threads for may 22 - 28, 2007
Filter by week: 1 2 3 4 5
Serializing some properties of a UserControl-derived class
Posted by she_prog at 5/28/2007 12:49:20 PM
I have a class derived from UserControl.
I need to serialize an object of this class, but only some properties
of it, as not all properties are serializable (some of the properties
coming from UserControl are like that). When serializing, how
could I ignore all the properties coming from the Use... more >>
treeview control
Posted by AVL at 5/28/2007 7:29:00 AM
Hi,
I need bind a Treeview control in my windows form with xml file and also,,,
display icons for each tree node....
how can I acheive it? ... more >>
writing tags in tiff images
Posted by Geordie at 5/28/2007 3:59:12 AM
Hello, we are developing an application that must process images
coming from a multispectral vision system. Images must be saved and
loaded in TIFF format, which I know it's possible calling
Save(System.String filename, System.Drawing.Imaging.ImageFormat
format)
The problem is that we need to w... more >>
Creating Shell Extensions in C#.NET
Posted by cjsoftuk at 5/28/2007 2:32:01 AM
Hello,
I'm trying to create a Shell Namespace Extension in C#, but I'm kind of stuck.
I'm using the framework at "http://www.dcooney.com/wiki/?NamespaceExtension"
to create the Namespace, and I can see that. I can see the folders I have
asked it to create when I double click, except they ar... more >>
Get existing Wi-Fi settings
Posted by Srini at 5/28/2007 12:37:42 AM
Hi,
I have a Wi-Fi adapter connected to my PC. It detects some access
points and some computers and devices with Wi-fi capabilities. I want
to know where these information stored in the PC. Is there any way to
get these information through C#? Please let me know.
To be more clear, I dont w... more >>
File searching is really slow, how do I speed it up?
Posted by janderson at 5/26/2007 8:01:10 PM
Hi gang,
I have a win32 C# app that needs to recursively search for a particular
file type really fast. It always searches the same place for these files.
I'm using Directory.GetDirectories and Directory.GetFiles to do it
currently. Because I know the location is the same every time I b... more >>
ListBox crash when accessing SelectedIndex
Posted by Valerie Hough at 5/26/2007 3:46:44 PM
Can anyone please tell me how it is possible to get the following crash when
accessing ListBox.SelectedIndex property:
Message: Index was outside the bounds of the array.
Stack Trace:
at System.Windows.Forms.ListBox.ItemArray.GetEntryObject( Int32
virtualIndex, Int32 stateMask)
at System... more >>
Converting to/from a string without regard to culture
Posted by John Brown at 5/26/2007 12:42:36 PM
Hi there,
Does anyone know how to go about reading/writing a type to a file in a
language (culture) independent way. For instance, let's say you're dealing
with the native "System.Drawing.Size" type on an English version of Windows.
You use the "TypeConverter" for this structure to generate... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Threading question
Posted by GeezerButler at 5/26/2007 4:33:08 AM
I am very new to threading.
I am having trouble deciding on which object i should obtain lock.
class MyClass
{
private ICollection<ClassB> myColl;
public void ModifyCollection()
{
lock(????)
{
//modify the collection
}
}
}
Should I obtain lock on myColl itself or should... more >>
Parsing web.config
Posted by Andrew Chalk at 5/25/2007 5:10:52 PM
I am parsing my ASP.NET 2.0 web apps. web.config file. The following line
produces xnl with 0 elements
XmlNodeList xnl = xd.SelectNodes("/configuration/appSettings/add");
if web. config has:
<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
... more >>
XAMLParse Problems
Posted by Yehia A.Salam at 5/25/2007 4:34:35 PM
Hello,
I'm trying to build a WPF project in Visual Studio 2005, I didn't type much
code in the project, I just opened a new WPF Application template from
Visual Studio and run it, however the resulting executable fails to run with
this runtime error retrieved from Microsoft error reporting ... more >>
Installing a Windows Service
Posted by Andrew Chalk at 5/25/2007 1:51:16 PM
I want to use a .Net class to install a service written in unmanaged C++.
Are there .Net classes to do this? It appears the classes only allow you to
install a service written in .Net.
Thanks.
... more >>
Inheritance question
Posted by Flomo Togba Kwele at 5/25/2007 1:47:42 PM
My application consists of a single form with a panel on it. When the user selects a menu item, a
UserControl is loaded onto the panel.
All the UserControl forms are derived from ctrlForm.vb. I want to embed 4 Subversion keywords into
each UserControl. Each of these keywords would be represente... more >>
TcpClient
Posted by EdisonCPP at 5/25/2007 1:34:58 PM
Hi,
I see that TcpClient.Connected only gets updated after
an I/O operation. This stumps me. I have a service
that listens for connections, and spawns a thread
for each connection to deal with client requests.
I maintian the thread as long as the service is running
and the socket is connec... more >>
Are the free books at programmerworld legal?
Posted by tim_witort NO[at]SPAM hotmail.com at 5/25/2007 11:58:40 AM
A search for programming books turned up programmerworld.net where
I found tons of books that can be downloaded for free. Some of
these are fairly recent (2006). Are these just authors who allow
electronic distribution of their books or is something fishy going
on here?
-- TRW
___________... more >>
Reporviewer localreport margins
Posted by esoci at 5/25/2007 10:48:04 AM
Looking for Steven Cheng [MSFT] and Mr. Walter Wang...
I have created rdlc files and when I load them into Report Viewer at run
time they appear OK, If I click on 'Print layout' button on Report Viewer
the view again appears unacceptable and clicking on 'Page setup' button the
margins left &... more >>
Thread or Web Service Callback
Posted by Abhishek at 5/25/2007 4:11:01 AM
Hi,
I have to create a web page in .net 1.1 having controls whose actions are
performed through AJAX, means user can do operation without any post back. In
back end I defined a Ajax method which is called every time whenever a hit is
made.
This method invokes a web method resides in Web ... more >>
how to extract values from webpage
Posted by shantanu at 5/24/2007 10:25:21 PM
Hi all
I have a requirement and i need some resolution to work on.
i have to read a webpage and extract few values from the page. I am
using the httpwebrequest meathod to query the webpage that based on
the values generate a result on the webpage and then i need to pick
the phone number a... more >>
Finding an object property in list
Posted by mpaine at 5/24/2007 9:52:02 PM
Hello,
I am trying to avoid using a DataTable to find particular data rows, because
I believe generic.list(of someobject) is faster. Unfortunately, two
seperately instantiated objects do not have the same hashcode so I am unable
to compare them within a Contains() call [even though they co... more >>
outlook express
Posted by butler077 at 5/24/2007 9:08:01 PM
I "lost" outlook express. In the control panel under mail I deleted my old
dial up account because now i have dsl. when i did this my mail icon on my
desktop disappeared. Went back into the "cp" under Mail and added my new
one. Still no icon and when i open my email from my browser"with th... more >>
Permissions exception saving app config
Posted by Brad at 5/24/2007 3:50:40 PM
I have some code for a .Net 2.0 winforms application which modifies the app's config file. The code works without error
for me, but when another developer runs the same code in Visual Studio debug he receives a permissions exception on the
statement
config.Save(ConfigurationSaveMode.M... more >>
Debugging a class libary
Posted by Andrew Chalk at 5/24/2007 2:30:14 PM
I have created an installer class library. I am trying to run it inside the
debugger by running INSTALLUTIL.EXE to load the .dll.
What is the correct syntax to do this, and pass command line arguments to
the DLL, in the 'Properties' page of the class libary project.
Many thanks.
... more >>
Best first .NET book for experienced programmer?
Posted by tim_witort NO[at]SPAM hotmail.com at 5/24/2007 12:53:29 PM
I've been programming for 20 years in a variety of languages
including C, xBase, SQL and others including quite a bit of OOP.
I have yet to do any C++ or C# development. I want to delve
into .NET and/or other current Microsoft development platforms,
but am not sure what direction to go in. The... more >>
Windows service concept?
Posted by Andrew at 5/24/2007 12:51:01 PM
Hi, friends,
Here is a question about Windows service concept in C#.net 2005.
Suppose my service is doing a transaction, say modifying records/data of a
database. At this point, a user issues a command to stop this service? How
this service will behave? It will stop right away without roll... more >>
Cursor location
Posted by Hansford cornett at 5/24/2007 12:27:01 PM
I am in a form and want to place the one of two date fields into a report I
am emailing.
the Date field names are FirstDateMailed and SecDateMailed.....
I want to identify where the cursor is (in which field) and then place the
contents of the field into a report. I think I know how to d... more >>
Error "The network path was not found"
Posted by Flomo Togba Kwele at 5/24/2007 8:59:52 AM
I've defined the following snippet:
--
Private _docNav As XPathDocument = Nothing
Private _nav As XPathNavigator = Nothing
Public Function Process() As List(Of ICassIn)
_docNav = New XPathDocument(FileName)
_nav = _docNav.CreateNavigator
Me.RecursiveW... more >>
Marshal.GetLastWin32Error not Thread Safe?
Posted by Yonatan Leonov at 5/24/2007 6:53:00 AM
the Hi
the method GetLastWin32Error should be a wrapper to win32's GetLastError.
"Retrieves the calling thread's last-error code value. The last-error code
is maintained on a per-thread basis. Multiple threads do not overwrite each
other's last-error code" (from MSDN)
But from time to t... more >>
Importing a C#.NET dll into Delphi Options
Posted by sarah_c_clough NO[at]SPAM hotmail.com at 5/24/2007 4:13:57 AM
I have a dll created in C#.net, that I wish to call from Delphi 5. I
have strong-named the assembly, deployed it in the GAC, and registered
it with RegAsm, but whenever I create the pas file (either through the
'Import Type Library' option in Delphi, or via an InteropUtils program
I found on th... more >>
Sicurezza LocalIntranet
Posted by Siint at 5/24/2007 12:54:01 AM
Abbiamo un'applicazione sviluppata in VB.NET 2003 per il Framework 1.1 che
risiede su di un server.
I computer client lanciano l'eseguibile che si trova su una cartella di rete
condivisa con permessi di lettura/scrittura.
Per il corretto funzionamento impostiamo il livello di sicurezza del
F... more >>
ADO.NET - Working with DataSet
Posted by Sheikko at 5/24/2007 12:39:33 AM
ADO.NET - Working with DataSet
=========================
HI, I want to create an application that interact with a DB. I wont to
use SQL statement, but I want to use DataSet.
- I have created my application
- From SERVER EXPLORER panel, I have added a connection to a database
(MyDB) and the ... more >>
Click Once and .Net 3.0 as Prerequisite
Posted by Allan Bredahl at 5/23/2007 11:47:13 PM
Hi All
I'm trying to publish my win application to our web server using the Publish
functionallity in VS 2005.
The problem is that I'm using a couple of dll's from the 3.0 Framework,
which makes it impossible to install the app on machines not having 3.0
installed.
You can set up ... more >>
Re: Socket Creation (InterNetwork, Stream, Tcp) vs (InterNetwork, Stream, Ip)
Posted by gdean2323 at 5/23/2007 3:29:35 PM
On May 23, 8:45 am, gdean2323 <dean.g...@gmail.com> wrote:
> On May 23, 2:53 am, "Arkady Frenkel" <arka...@hotmailxdotx.com> wrote:
>
>
>
>
>
> > That should be exception in .Net if incorrect parameter set instead tcp in
> > this case
> > Arkady
>
> > "Peter Duniho" <NpOeStPe...@nnowslpi... more >>
Search & Replace in HTML
Posted by Søren Olesen at 5/23/2007 1:20:43 PM
Hi
I'm using a thirdparty webgridcontrol on a .aspx page. However I need to
disable one of the childcontrols in this grid. Unfortunately the gridcontrol
doesn't give me any way to do this on the server side.
I could do it in Javascrip... When the page is loaded I could find the
control a... more >>
Different 2.0 framework for different country-versions of Windows?
Posted by David at 5/23/2007 11:38:01 AM
We're about to go international with a .NET 1.1 app and just read a KB
article that says a country-specific version of the 1.1 framework
redistributable must be used which matches the country-specific version of
Windows that is being used (ie, if you use Hungarian Windows, you must use
the H... more >>
Cookie with illegal characters in dotnet framework 2.0
Posted by dotnetal NO[at]SPAM googlemail.com at 5/23/2007 10:23:00 AM
Hi,
I'm writing a web spider that interacts with a web site that is
sending back a cookie that is broken. However, both IE and Firefox
will happily work with a cookie that contains illegal characters.
According to the HTTP specs, and the implementation of Cookies in
the .Net Framework, it i... more >>
Bug in System.Drawing.Graphics.DrawLines
Posted by mfr at 5/23/2007 8:05:02 AM
Hi,
I think I've found a bug in the System.Drawing.Graphic.DrawLines method.
The code below fills a list with a number of points and then draws these
points using DrawLines and then using DrawLine within a loop.
The DrawLines() method inserts a superious line that that is not drawn using ... more >>
SQL - all users access db using same username - what licence required ?
Posted by Scott at 5/23/2007 12:00:00 AM
Hello,
I have an aspx app using 2005 express and need to upgrade to standard
edition to get the features i require.
My initial thinking was a single processor licence for 2005 standard edition
as you get unlimited user connections.
The app is designed so that no matter how many users co... more >>
Socket Creation (InterNetwork, Stream, Tcp) vs (InterNetwork, Stream, Ip)
Posted by dean.greg NO[at]SPAM gmail.com at 5/22/2007 11:02:00 PM
What is the difference between the two method of creating a socket?
new Socket(AddressFamily.InterNetwork, SocketType.Stream,
ProtocolType.Tcp);
new Socket(AddressFamily.InterNetwork, SocketType.Stream,
ProtocolType.IP);
It is my understanding that the third parameter in this scenario has... more >>
Some Problem of SilverLight
Posted by Pony Tsui at 5/22/2007 10:58:01 PM
Hi,
I have some problem of silverlight but i can not found any news group about
silverlight, so i post my problem here.
1. Does mediaelement of silverlight support live stream? i just create a
silverlight javascript application, put a mediaelement in page.xaml, set the
source property as... more >>
how do you run aspnet_regiss?
Posted by Darrel at 5/22/2007 10:03:08 PM
Probably a dumb question, but...how do you run aspnet_regiis? I'm trying to
run it from the command line and I keep getting an error:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322>aspnet_regiss -c
'aspnet_regiss' is not recognized as an internal or external command,
operable program or batch f... more >>
thread differences from button_Click and timer_Elapsed
Posted by Victor Reboucas at 5/22/2007 9:20:19 PM
Hi, I'm experiencing some kind of thread behavior problem in a WinForms app
in Vb.Net 2.0.
Actually I'm doing some huge interop using DirectShow to interact with my
miniDV camera.
The problem is that if I put the code to read the camera's timecode inside a
button_click routine it works just... more >>
Windows Client Print Driver
Posted by jim1800 NO[at]SPAM community.nospam at 5/22/2007 2:13:55 PM
"Windows Client Print Driver" was a printer driver to generate xaml file.
I'm trying to run Svg2Xaml tool but could not get the driver any more. The
link was
http://longhorn.msdn.microsoft.com/lhsdk/docservices/overviews/edocs_printer_driver.aspx.
Jim
... more >>
Number formating is incorrect for "ar-LY" culture
Posted by AndrewB at 5/22/2007 12:42:00 PM
The number format in Libya is to have 3 digits after the decimal place.
I am basing this upon feedback from our Libyan customers. The following site
also reflects this standard: http://en.wikipedia.org/wiki/ISO_4217
However, in .Net as well as Windows the numbers are formatted with only 2
... more >>
Run ClickOnce application as explorer shell replacement
Posted by ujjc001 NO[at]SPAM gmail.com at 5/22/2007 11:32:19 AM
I'm trying to get an app to run on logon as the shell. We have our
app run as a kiosk by replacing the shell key value in HKCU\Software
\Microsoft\Windows NT\CurrentVersion\Winlogon\Shell
I've tried the following (used to be a ref to the actual exe, which
now needs to run the clickonce proxy ... more >>
Access or SQL
Posted by NO[at]SPAM BCBS at 5/22/2007 9:57:00 AM
I have some MS Access databases linked to SQL db's.
I need to create a Web Form with Visual Studio 5.0 for useres to enter and
edit data. Would it be better to establish a new connection to the SQL table
from VS Web site or should I create a connection to the MS Access database?
Is there a ... more >>
Exchange server name from Outlook application
Posted by Srini at 5/22/2007 5:22:12 AM
Hi,
I need to get the details about the exchange server name, email
address, username and password from the outlook, which is already
configured. Is it possible to retrieve those values in C#?
I tried using the following code
Outlook.Application objOutlook = new
Outlook.Appli... more >>
Windows Service NullReference Exception
Posted by mdhaman at 5/22/2007 12:00:00 AM
hi,
I have a windows service written in VB.Net and framework 2.0. It is a
multithread service and it is using threadpool to manage threads.
Recently I have started getting NullReferenceException and after that
windows service crashes.
System.Transactions Critical: 0 : <TraceRecord
xml... more >>
|