M. Franz's Q&A profile
Visual C# how to set the ReuseAddress socket option?
my code is like this: s.SetSocketOption(SocketOptionLevel.Socket,SocketOptionName.ReuseAddress,1); does this mean the socket can reuse the address only once or does it just mean that ReuseAddress is enabled how does this option work please .. if anybody can give me an example of how to set this option and explain how it works. thanks SocketOptionName.ReuseAddress has nothing to do with reusing the address, believe it or not. This opti ...Show All
Game Technologies: DirectX, XNA, XACT, etc. rendering on hardware device
Hello, I am new to DirectX. How can I use the CreateDevice method to set the output to be displayed on my second display card(ATI Mobility Radeon X600) I set the device index to 1, is it appropriate Or I missed other properties Or I cant use the X600 card to render output device = new Device(1, DeviceType.Hardware, this, CreateFlags.SoftwareVertexProcessing, presentParams); Check out the adapterListCollection which you can enumerate ...Show All
Windows Forms How to deal with Windows Forms Application?
Hi! I have created an application with forms(Windows Forms Application). I want to generate a window which contain some elements such as buttons, containers and toolbars. I used the toolbox to do such work, but it seemed so ugly.I mean the result of execution is not what I imagined. Maybe I did not choose the proper toolbars. Could somebody possibly provide me any information or examples about how to create a Window Forms Application proper ...Show All
Visual Basic Debugging: Not showing updated forms
I have a problem with my application. On Design view I add elements to the form, e.g. buttons, textboxes or Code View e.g. editting codes etc. anything... and use the debugger, the objects and changes dont show up. It still stays the same as before, and i cant see any changes to my program. When I start a new project, everything is back to normal! Has anyone got an idea as to what has happened I'm using Visual Basic 2005 Express Edition thanks ...Show All
Smart Device Development How to use multiline button text?
I see that in vs 2005, writing in vb, that it can now apparently handle multiline button text. On the IDE, in the box that asks for my text, I can click on the drop down, and it opens a window where I can type in something like: Main Menu (having pressed my Enter key after the word 'Main') and it shows exactly like I want it on the IDE. (Actually, I did not have a blank line between the two words--it's just doing that in this text edito ...Show All
.NET Development Waiting and Waiting and Waiting on email to publish
I used this example from a previous thread and the code is still not operating correctly. If you publish the email and close the app, the email is sent pronto. If you keep the app open then the email is published in the next 5 minutes (painful). Thanks in advance! Imports System.Net Imports System.Net.Mail Using mailMessage As New MailMessage() With mailMessage .To.Add( "yourname@domain.com&q ...Show All
Visual Studio Express Editions NC messages oddity UPDATE
I'm using VC++ Express to create a DLL for a global hook system I'm writing. The unusual thing is that as I'm trying to catch the non-client messages I can't seem to get the to trigger properly. For example I'm trying to catch the WM_NCRBUTTONUP message anywhere on the non-client area and it doesn't trigger unless I click the tiny little border around the non-client buttons. If I click directly on the minimize button ... nothing happens except f ...Show All
Visual Basic Datagridview Row selection Style
Hi Is there any way to change the selection curser I have to use a full row selection in my application and now its a blue line and i would like to have something a bit more discret.. I dont know if cursor is the best word.. In vb6 i think it was called the selection fill style. A simple example which I think should show you how to chnage the cell formating. Public Class Form1 Private Sub DataGridV ...Show All
Visual Basic accidentally uninstalled Framework 1.1 first "valid ordering"
I get the error when I try to uninstall VS.Net 2003. Setup is unable to determine a valid ordering for installation. See the error log for further details. I have the disks and tried reinstalling/ repairing it and that did not work. And I cannot get to the error log as it says. I only used VS.net for school and would like to uninstall it from my computer. Does anyone know what to do after you tried to uninstall it out of order, and remov ...Show All
Visual Studio 2008 (Pre-release) Uninstall troubles
I installed the C# 3.0 Tech Preview over a normal VS2005 beta 2. While the uninstall from "add/remove programs" appeared to succeed, the IDE is still reporting C# 3.0 as being in use. The ReadMe gives a link to http://www.bellware.net/Bin for a tool to eliminate the IDE support, but this link appears to have no relevant information. Thanks for any help you can provide. You should be able to open a command ...Show All
SQL Server Unable to send MAil Alert using DatabaseMail
Our configuration : SQL Server 2005 June CTP Enterprise Edition version : 9.00.1187.07 OS : Windows 2003 The Problem: After configuring Database Mail account and profile, maintenance plan or job generated with the maintenance plan Wizard is unable to send mail. The SQL Agent error log contains those messages pointing on a bad profile name. Error Messages [264] An attempt was made to send an email when no email session has be ...Show All
Visual Studio Installing the VS 2005 Setup through Unattended installation
Hi I installed the prerequisites(MS Dotnet Framework 2.0, XML Parser 6.0,J# redistributable 2.0)ON XP SP2 Machine before the VS Installation. I created the ini file as per the adminreadme.htm file and followed the instructions. for creating it the command used is path to setup.exe /createunattend path to ini file . I just removed SQL Server feature from the setup and then run through command line arguments. The comma ...Show All
Visual Studio 2008 (Pre-release) Canvas Performance
I have an ItemsControl bound to 500 items. As Panel I use a Canvas (each item has a coordinates and size where it should be positioned). As DataTemplate for Items I have Button containing a StackPanel with some TextBlocks. When I'm trying to show this, it takes about 5-10 seconds. Is this normal How can I speed it up Can you elaborate further It'd help if you could post your code, or at least pseudo-code, s ...Show All
Windows Forms System.CodeDom.Compiler.GeneratedCodeAttribute error
I downloaded a sample from MSDN for VS 2005, and tried to build it (using VS2005) as described in the documentation. I obtain 7 errors in the NorthwindCustomerOrders.XSD (NorthwindCustomerOrders.designer.vb file) saying that Type System.CodeDom.Compiler.GeneratedCodeAttribute is not defined. In the documentation there is a link to HOW TO: Set sample settings but unfortunately it is incomplete. It says I have to open the .Net framework SDK 2.0 co ...Show All
SQL Server Can`t access Report Manager
Hi to u all, I have installed RS 2005 B2 on Win Server 2000+Sp4, and the installation seems to be OK (I have checked both the Db and the IIS), BUT No matter what I do, I can`t access the Report Manager. When I type http://localhost/reports it opens a dialog box in which I have to enter a user+password+domain. It does not accept any user what so ever (including administrators). In addition, I tried to change the Security configs @ the iis, but it ...Show All
