Software Development Network Logo
  • Architecture
  • SQL Server
  • Microsoft ISV
  • Windows Forms
  • Visual Basic
  • VS Express Editions
  • Visual C#
  • Visual J#
  • Visual FoxPro
  • Windows Vista
  • Smart Device
  • Windows Live
  • Visual Studio
  • Game Technologies
  • Visual C++

Software Development Network >> Alexander75's Q&A profile

Alexander75

Member List

AtulA
Alan M. Carroll
Cesar Ronchese
Simon Sprott
ntodorovic
-Ray-
Sashidhar Kokku
MainSoft
Gary Mason
coldie
Thomas Holmgren
MattontheNet
DegreeZ
Chris_Jose
LukeMouthbreather
Philipp Schmid
Bondforever
SimDim
mGreenway
sassabrassa
Only Title

Alexander75's Q&A profile

  • Smart Device Development problem loading gifs from resouce..

    Hi, I am getting a problem when debugging an application to my pocketpc device on VS2005, every time there is a call to get a recource below: base.Image = (Bitmap)global::MyApp.Properties.Resources.ResourceManager. GetObject("imageName"); I get the following error(s) in output.. A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll A first chance exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll I have read a post which was about a similar problem but it wasnt helpful, th ...Show All

  • Visual Studio 2008 (Pre-release) WCF Custom Channel for SQL Service Broker

    I want to ask if microsoft has provided a custom transport channel to utilize the SQL Server Service Broker Messaging Platform. Last summer at TechEd, the SQL Service Broker team announced that they plan to implementing a WCF transport channel for SSB. They have not yet announced their schedule. ...Show All

  • Visual J# Web Browser, HTML selection

    Hi, I have implemented a simple Web Browser using the inbuilt Web Browser component. I now need to be able to highlight some text on the web page and for this to then be selected by the J# program. This is possible in Java by using the getSelectionSrat and getSelectionEnd methods linked to the JEditorPane, and it is possible in C# by using IHTMLSelectionObject and IHTMLTxtRange, but now I need to find the J# version! Regards Richard Hi Richard, If you need the entire text within the current tag use the following code IHTMLDocument2 HTMLDocument1=( IHTMLDocument2 )axWebBr ...Show All

  • Windows Forms DataGridView Scroll

    Hi. When I scroll my DataGridView it is scrolled by steps of 3 (or any other number) of rows depending on what is set in Windows Mouse Properties. Is there a way to make it scroll row by row t.e. one notch = one scrolled row. Thanks! There isn't any built in property to change this. You would have to override the OnMouseWheel method and provide your own implementation (and not call base.OnMouseWheel) -mark DataGridView Program Manager Microsoft This post is provided "as-is" ...Show All

  • SQL Server How do deduplication on Fact Table

    Hi, everyone, l've a fact table DEVICE with following structure, DEVICE_NAME VARCHAR(50) DEVICE_DATE DATETIME DEVICE_NUMBER INT Where DEVICE_NAME and DEVICE_DATE form a PRIMARY KEY So l would like to import a text file with same information into this table. My problem is, text file contains records which will violate my primary key constraint. In that case, l would only insert the record with DEVICE_NUMER not equal to ZERO and discard and log the others. In case of the records violtae primary key constraints have DEVICE_NUMBER not equal to ZERO, discard both and log it. So anyone has good suggestion on this ...Show All

  • Visual C# How to list a remote directory?

    Hi there, How can I list the files in a directory on a server (I'd prefer .NET 1.1) Thanks, Finch82. U have two options I think. 1. I think WMI will work you just need to set the ConnectionOptions in the ManagementScope object. But this may be slow depending on the query filtering involved. 2. Write a .net remoting or older dhcp service that runs on the password protected server and have it run under an account wth rights to the folder you want and then make a client app that runs on your computer and calls functions on that remote service, I think you can set rights with config files and o ...Show All

  • Visual Studio Team System CA1804: Remove locals that are not used, but this local is getting used

    Hello, (I searched the forums for CA1804 but couldn't find anything similar) FxCop flags the variable intOldId with CA1804 --8<-- Dim intOldId As Integer = -1 For Each drOrder As DataRow In dtMulti.Rows     If intOldId = CInt(drOrder("OrderId")) Then         'Already processed this id, skip duplicate row          Log("Skipped row")     Else         'First time we see this id, do something         SomeThing()                 'Store ...Show All

  • .NET Development TCPClient timeout???

    I want my TCPClient to timeout for a second every two or three minutes run some stuff then come back and just listen again.  How do you set it to timeout.  I can get my networkstream to do this with one of it's properties but TCPClient doesn't seem to have that and the TCPServerIP can change so I definetly need it to jump out for a bit then come back in... or can you change my TCPServerIP on the fly while in the do while() the code is below (just a snippet).  I bolded where it's held up. try { String TCPServerIP = iputes.DBGetIPAddress(); // TCPListener IP int TCPServerPort = 8000; // TCPListener Port // Crea ...Show All

  • .NET Development Parameterized queries

    When using a parameterized query such as: SELECT LocationID, StreetNum, StreetName, rowguid FROM tblLocations WHERE (StreetNum = @StreetNum) AND (StreetName LIKE @StreetName) Is there a way to automatically add % to the beginning and ending of the parameter I've tried the following command: SELECT LocationID, StreetNum, StreetName, rowguid FROM tblLocations WHERE (StreetNum = @StreetNum) AND (StreetName LIKE '%' + @StreetName + '%') But I get a FormatException. I don't want the user to have to type % in the parameter field. Any suggestions Thanks, Lee Thanks Blair. You are awesome. VMazur & Fre ...Show All

  • .NET Development Convert XML to Excel spreadsheet using XSLT

    Hi all, Im very new to XSLT and I need to convert an XML document in the format of: < xml version="1.0" encoding="utf-8" > <AreasRoot>     <room name="Entrance Hall">         <item name="Doors">             <roomIndex>0</roomIndex>             <conditionBefore></conditionBefore>             <conditionAfter></conditionAfter>             <commentsBefore>< ...Show All

  • Visual C++ add DLL with lib-File to Projekt

    Hi, first, sorry but I donst speek wery well English ! I've add a DLL to my Projekt, but in the "tree_import.h"-File have I Errors: tree_import.h: error C2011: 'CNode' : 'class' type redefinition File: tree_import class __declspec ( dllimport ) CNode { ........... }; __declspec ( dllimport ) void treeLayout(CNode* root, int dir, int x, int y, int dist1, int dist2, int & width, int & height); I've import the lib-File in the Projekt, and That File Work on another Projekt. I try now to import that DLL on my Projekt Thanks for help Take a look at http://msdn.microsoft.com/library/default.asp url=/library/en- ...Show All

  • SQL Server A Problems after the install of the Hotfix

    After installing SP1 and then the hotfix: http://support.microsoft.com/Default.aspx id=918222 We now get the following error when trying to work with date parameters in Report Builder: Query (6, 117) The '[VBA].[DateSerial]' function does not exist. ---------------------------- Semantic query execution failed. ---------------------------- Query execution failed for data set 'dataSet'. ---------------------------- An error has occurred during report processing. Is this a known problem or is there some sort of something that I can reinstall Thanks! Sure thing. The problem comes with the prompted Transaction Date MDY. Without ...Show All

  • Software Development for Windows Vista Error when using SqlWorkflowPersistenceService

    Hi Can someone explain why I keep getting the following error when I use SqlWorkflowPersistenceService - "Could not find stored procedure 'RetrieveNonblockingInstanceStateIds'." Where can I get this Procedure and where is it exactly being called Please help!!! Hi, Has the SQL Persistence data been created (required Sql 2000 SP4 or SQL 2005 Express or higher If so, then check to be sure the connection strings are correct. If not, I was able to create the needed database from the Hands On Labs - download them from the main windowsworkflow.net site, extract the contents and you'll find C ...Show All

  • Visual Studio Express Editions Visual C# 2005 Express Beta 2 Debugger Fails to Start

    If I create a simple Windows application under beta 2 of Visual C# 2005 Express without adding any code and attempt to start debugging, I get the following error message: "Microsoft Visual C# has encountered a problem and needs to close'. If I start the program without debugging, it runs fine.  A blank windows form pops up.  Also, the "Add Connection" under beta 2 of Visual C# 2005 isn't working for me. When I attempt to connect to an existing database(*.mdf), I get the following error message: "Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance.  The ...Show All

  • Windows Forms How do I assign a .ico file to a ToolStripButton??

    I modify the filter (*.*) to list the .ico files when setting the Image property of the ToolStripButton , and select the .ico file, it doesn't modify the property and the image doesn't change. It seems I CAN'T set an .ico file to the Image property of a ToolStripButton Does anyone know a solution for this problem please let me know .... Thanks!!!! The reason is because an Icon is not a System.Drawing.Image as such. You will need to convert it first: toolStripButton1.Image = myIcon.ToBitmap();   This is not ideal as you will loose the alpha channel. So instead you can actually add it the ImageList property on the ToolStrip, a ...Show All

©2008 Software Development Network