Groups | Blog | Home


Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008


all groups > dotnet general > september 2005

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

UPD in VB.NET
Posted by ninadsd NO[at]SPAM gmail.com at 9/30/2005 11:27:00 PM
I have the following VB6 code ------------------------------------- Option Explicit Const ByteCode =3D "=FF=FF=FF=FF" Private Sub Form_Load() wsk.Protocol =3D sckUDPProtocol wsk.RemoteHost =3D "255.255.255.255" wsk.RemotePort =3D 27015 wsk.SendData ByteCode & "infostring"...more >>

LIKE and IN expressions in parameter queries
Posted by Rob Oldfield at 9/30/2005 5:26:04 PM
Does anyone have any idea how to do this? I want to pass a select command a parameter and just use that as a LIKE/IN comparison with my SQL data. Thanks ...more >>

Icon with drop down.
Posted by Jon Turlington at 9/30/2005 4:07:30 PM
My company is creating a new IEAK but how do we create the icon like the mail icon that has a drop down. I have searched endlessly and finally resorted to posting my own question. Does anyone know? ...more >>

Delegates/Messaging Uncoupling Threaded Applications
Posted by James Smyth at 9/30/2005 3:37:06 PM
I currently have a .NET Form application which has a seperate thread invoking delegates of the MainForm in order to have the main thread update the form's controls. I would like to move the secondary thread's behavior into another class, eg. MyClass, but I would like MyClass to be complete...more >>

General question about use of ports when programming with sockets
Posted by 0to60 at 9/30/2005 3:26:43 PM
I have a question about socket programming in general. Exactly what happens behind the scenes when I one socket connects to a different socket in listen mode? Using the dotnet framework, I create a socket, bind it to a port, put it in listen mode, and then n sockets can connect to it. The co...more >>

plug-in architecture problem
Posted by Oleg Yevteyev at 9/30/2005 3:03:41 PM
Trying to implement a plug-in architecture and to load my assembly in run time by calling System.Reflection.Assembly.Load method. There are two assemblies - I'd call one "plugin" and another is "common" and the "plugin" depends on "common". there were two separate projects - one for each assem...more >>

Custom collection design/style opinion requested
Posted by Chris Dunaway at 9/30/2005 12:08:36 PM
VB.Net: I have create a custom collection to hold instances of my custom class. The collection has an Item property which is set as the default property. I can use code such as this to retrieve an item by index or key: Dim MyInst As MyCustomClass = MyColl("key") My question is how shoul...more >>

Obtain a MAC address from a connected socket
Posted by Jeronimo Bertran at 9/30/2005 11:39:11 AM
Hello, We have developed a socket tcpip server in .net that accepts calls from clients. Using the connected socket we are able to use the Socket.RemoteEndPoint to obtain the IP address of the client. Is there any way to obtain the MAC address for the client? Thanks Jeronimo...more >>



Two services with similar names can't run at same time
Posted by John Bailo at 9/30/2005 9:56:08 AM
I developed a windows service, called x.exe Then I created a variant called x.c.exe I installed both on a target machine. If I start x.exe, then x.c.exe won't start. If I start x.c.exe, then x.exe won't start. Is .NET having trouble distinguishing these services? Do I need to d...more >>

Converting VS6 C++ to .NET Solutions
Posted by j.a. harriman at 9/30/2005 9:45:05 AM
Hi, On MSDN I know there is a JScript example (Upgrading Visual C++ Projects to Visual Studio .NET in Batch Mode) to upgrade VS6 C++ projects to .NET solutions. It converts the project files (*.dsp), but doesn't create the solution (*.sln) file. Is there an automated way to convert an ...more >>

360 .NET
Posted by John Bailo at 9/30/2005 9:42:12 AM
Can I develop in .NET for the Xbox 360 computer? ...more >>

How to dynamically enable a control and refresh it into the taborder
Posted by kea at 9/30/2005 9:39:35 AM
I have a checkbox and a textbox in a continuous taborder on a form along with a bunch of other controls. The textbox is disabled. When I leave the checkbox I want to enable the textbox and move the focus to it (only if the checkbox.checked=true). So on the checkbox Leave-event i do the follo...more >>

Microsoft Office Automation
Posted by Raju Joseph at 9/30/2005 8:56:47 AM
Hi All, We have a module that needs to automate word 2000 for certain added functionality. I have successfully created the component to do this. Basically I start word using a statement like _word = New Word.Application Then I proceed to sink the word events that I need. Once everyth...more >>

enabling\disabling a radiobutton
Posted by Leonard at 9/30/2005 7:47:06 AM
I have several radio buttons for the user to choose from. I need to enable or disable a particular radio button, depending on a certain condition. How can I do this? Thanks, Leonard...more >>

SQL SERVER Connection Problem II
Posted by Niyazi at 9/30/2005 5:56:09 AM
Hi, I can connect using my PC local SQL Server Enterprise manager to Remote SQL Server. But I cannot connect using my Connection string? strConn = "Data Source=190.168.0.97,1433;Network Library=DBMSSOCN;Initial Catalog=DBANK;User ID=myID;Password=myPASSWORD;" Does anyone knows any idea...more >>

System.GetType returns null
Posted by audipen at 9/30/2005 3:09:28 AM
I have a problem with System.Type.GetType method. If you try out the following code in C# console app .. System.Type t = System.Type.GetType("System.DateTime"); System.Type t1 = System.Type.GetType("DateTime"); t is set to the appropriate Type object but the second call returns null (when...more >>

Pasting into Outlook Express from the C# application..
Posted by geo24 at 9/30/2005 2:38:09 AM
Hi, how about C# app that copies some data (text or pictures) into the clipboard and then pastes them into new message opened in OE? Is something like that possible? ...more >>

app.config for exe file
Posted by bic at 9/30/2005 1:15:01 AM
I copied my app.config into the bin folder and tried to deploy both the .exe and app.config file so my user will be able to change values such as connectionstr settings. But I can't get the app.config to work unless I change the one inside the solution. How can I make the app.config work o...more >>

Convert MFC 6.0 static libraries to managed application
Posted by Dani Peer at 9/30/2005 12:27:16 AM
Hi, We have few MFC 6.0 applications that are using many static libraries that are basically our infrastructure. Now we want to develop in C#, and we don't want to redesign all the infrastructure, that basically the libs are also using dependencies between them. From where to start ? and sugg...more >>

Not all images are loaded correctly
Posted by etantonio NO[at]SPAM gmail.com at 9/29/2005 11:23:01 PM
Good morning, I've a web page where I have put about 30 little images (4kb each) coming from other sites, the problem is that not all are showed and the images showed are random, I don't know if it is a problem of the http protocol, but how I could solve the problem and force the browser to loa...more >>

System.IO.Stream to string
Posted by Paul at 9/29/2005 9:52:01 PM
How do I convert a System.IO.Stream to a string variable. Regards Paul...more >>

Getting titles of all openning windows process
Posted by Tedmond at 9/29/2005 8:26:04 PM
Dear all, How can I get all the titles of all openning windows? I found a API in win32 that called EnumWindows() but it returns only the windows handles, not titles. How can I get the list just like the Applications tab in Windows Task Manager? Thanks, Tedmond...more >>

Mantaining a Windows Service
Posted by Reuben at 9/29/2005 7:07:01 PM
Hi, I've been trying to write a Windows Service that handles specific events. However, when I start it, it is immediately stopped, since it is idle when none of the events are triggered. And when it's stopped, it can't handle the events. How can I keep it running? Reuben....more >>

MultiCastDelegate vs Delegate
Posted by Nima at 9/29/2005 6:51:03 PM
The documentation for the Delegate and the MultiCastDelegate classes tell me that when we have a line like: public delegate void CheckAndPrintDelegate(string str); it causes the compiler to generate a new delegate class named CheckAndPrintDelegate that inherits from System.MulticastDelegat...more >>

Manually Add Row to Datagrid
Posted by Jason at 9/29/2005 5:00:47 PM
Is there a way to do this after you have bound it? I am just wanting to add another record that will be displayed. ...more >>

Blue Squares on side of VSS.NET
Posted by John Bailo at 9/29/2005 4:35:17 PM
For some reason, blue squares with rounded corners started appearing on the left side of VS.NET -- in the same place were the brown circles that represent breakpoints are. What do these represent? I can't remove them! ...more >>

I need help, i dont now what happend ? =S
Posted by Mayolo Juarez via DotNetMonster.com at 9/29/2005 3:19:36 PM
Hi, I have a problem, when i use a context menu in a MDIForm and activate the property "MDIList= True", the context menu don't show me the current child windows, please help me, i use VS2003. it´s neccesary resolve this, i need to finish a homework it´s urgent. -- Message posted via DotN...more >>

Updating the AssemblyFileVersion
Posted by Sam Carleton at 9/29/2005 3:08:46 PM
I have a software procect that now has over 30 .Net assemblies and I need to maintain the AssemblyFileVersion for the builds. I know it is possible to write a little utility that rifles through all the AssemblyInfo.cs files and changes the value. Are there other options? Sam...more >>

Tiers and Circular References
Posted by Doyle at 9/29/2005 1:37:04 PM
I want middletier objects and data access objects in different namespaces. I want the middle tier object to get a reference to the data access object and pass itself as a parameter to the data access object's constructor, accordingly the constructor of the data access object must declare a da...more >>

change colour of tab?
Posted by amber at 9/29/2005 1:34:01 PM
Hi there, I'd like to change the colour of my tabs. I can change my background colour of my tab control, but the actual tabs, with the text on them don't change colour. Am I missing something? TIA, Amber ...more >>

COM Interop Deploy issue
Posted by krissy_kernan NO[at]SPAM hotmail.com at 9/29/2005 1:14:40 PM
I am getting the following error when I try to run my code on the deployed server: "File or assembly name dllname.dll or one of its dependencies was not found." It is a VB6 app. that calls a .Net dll. (The .Net code also calls VB6 dlls, but I don't have a problem executing that part of the code...more >>

ClickOnce Deployment Manifest issues
Posted by Dany C. at 9/29/2005 1:11:17 PM
-- Dany Couillard, ing....more >>

Is there a method to read files by date modified ?
Posted by Lee Holsenbeck at 9/29/2005 1:08:05 PM
i have been using the getfiles method, but that retrieves only alphabetically. i'd like to be able to retrieve filenames in a directory by thier date modified. does .net have a method for this ? the closest i can see is to use the file system object. thanks in advance, Lee...more >>

Populating drop down list from AD
Posted by Chris Geier at 9/29/2005 12:40:02 PM
string strLdap = "LDAP://OU=Sales,DC=Company,DC=com" DirectoryEntry objOU = new DirectoryEntry(strLdap); DirectorySearcher objUserSearcher = new DirectorySearcher(objOU); SearchResultCollection objResults; //Search for user objects objUserSearcher.PropertiesToLoad.Add("cn"); objUserSearche...more >>

'wrap text' in column header in a datagrid?
Posted by amber at 9/29/2005 10:45:07 AM
Hello, I have a datagrid column header that is quite long, and I would like it to appear on 2 lines instead of 1. Is this possible? TIA. Amber ...more >>

Screen capture does not work in Windows Service...?
Posted by Madestro at 9/29/2005 10:21:02 AM
Hi guys, I have a little problem. I have a class that uses Windows API to capture a snapshot of the screen. I have this class in a library that I include in my projects. When I try to use this class in a windows service, the snapshot comes up as a black screen. Any idea why? or how do I...more >>

Is it possible ti inherit form 2 dll
Posted by Chris at 9/29/2005 10:18:42 AM
Hi, I am using 2 .dlls to create a 3 dll and I would like to expose all the methods and functions form dll1 and dll2 in my 3dll so it appears as if the methods sre in my 3dll. Currently I have Imports dll1 Imports dll2 Public Class Test Inherits dll1 Inherits dll2 >> Error here "Can ha...more >>

Problems with System.Net.WebClient
Posted by Bruno Otero at 9/29/2005 10:18:05 AM
Hi! I have a program that excutes the following code: DirectoryInfo diretorio = new DirectoryInfo(@"C:\teste"); FileInfo[] arquivos = diretorio.GetFiles("*.xml"); for(int contador=0;contador<arquivos.Length;contador++) { lblMensagem.Text = "Uploading files... "; ws.UploadFi...more >>

Crystal Reports
Posted by COlmstead at 9/29/2005 10:00:52 AM
Is anyone familiar with using Crystal Reports and coding all of the connection stuff without using their expert or wizard? ...more >>

VS 2005 RC: "has encountered a problem" on deployment
Posted by DraguVaso at 9/29/2005 9:22:58 AM
Hi, I tried to deploy an application written in VB.NET 2005, with the Release Candidate. Everything works fine on my pc which has the Visual Studio installed, but when I install the .NET Framework (v2.0.50727) and the Setup of my prject, I get some nasty error: "MyApplication has encountere...more >>

Send Excel XML to client
Posted by Sudhesh at 9/29/2005 8:00:23 AM
Hi, I found a very nice artice to convert a dataset to XML file that complies with EXCEL schema http://www.codeproject.com/dotnet/ExportToExcel.asp However, the one thing that article didn't help me with, is how do I send this file down to the browser so it opens up like Excel? Can anyon...more >>

xsd:maxLength
Posted by Sudhesh at 9/29/2005 7:47:07 AM
Hi, I understand I can write an XSD file like... <xs:attribute name = "value1" use="required"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="30"/> </xs:restriction> </xs:simpleType> </xs:attribute> I'm writing a class heira...more >>

Free .NEt IDE
Posted by checcouno at 9/29/2005 7:18:05 AM
Someone know free .NET IDE? thanks...more >>

Problem to Create A new Project from VS.NET 2003
Posted by Colin at 9/29/2005 7:05:03 AM
Anyone know what is wrong with my VS.NET?? Please Help! I have installed the VS.NET 2003 recently. When I try to create a new Web Application project (C# or VB), an Error message popup: "Visual Studio.NET has detected that the specified Web server is not running ASP.NET. You will be unable to ...more >>

Nested DataGrid using Relations sorting child
Posted by DelphiBlue at 9/29/2005 4:18:05 AM
I have a Nested Datagrid that is using a data relations to tie the parent child datagrids together. All is working well with the display but I am having some issues trying to sort the child datagrid. HTML Datagrid1 TemplateColumn Table Header information Detail In...more >>

Disable and Enable COM Port from .NET
Posted by Lim Tau Wan (SG) at 9/29/2005 3:49:03 AM
Currently, our application requires to use the COM Port but it seems that the COM Port is being utilised by other process. Therefore if I need to use the COM Port, I have to manually disable and then enable the COM Port. As such I will need to know how to programmatically disable and enable th...more >>

if off subject, sorry, ??
Posted by lorentsonci NO[at]SPAM lycos.com at 9/28/2005 9:45:44 PM
I have a older Microsoft trackball that I would like to use., when I tried to install, I get a message that says, XP cannot work well with this older trackball software. So, my question. Is there a way to make Windows XP work with my older trackball? I think I read/heard somewhere that you c...more >>

Can a .net app have the same behaviour like an VB6 Activex.exe?
Posted by Durval Mateus at 9/28/2005 7:43:27 PM
I have an activex.exe with a public class, in order to be accessed by other apps. the activex.exe was upgraded to .net, and i'm unable to make other apps comunicate with the new version. The activex.exe have some global variables with user input that i want to be accessed by other applicati...more >>

can I get csc.exe for free?
Posted by alexl at 9/28/2005 7:36:08 PM
Hi, I downloaded / installed the .net sdk beta 2 however there is no csc.exe. Also the only documentation that comes with it is the readme but no reference guide, maybe I overlooked it? Thanks! ...more >>

Solution for the Error : The service did not respond to the Stop call in a timely fashion
Posted by Prasad at 9/28/2005 7:19:33 PM
Hi, I am writing a service which takes a long time to stop after the OnStop call is given by the Services Snap-in. The problem is I cannot cut down on the time that it takes to Stop. The Service snap-in gives me the error saying that the service did not respond to the Stop call in a timely ...more >>


DevelopmentNow Blog