Software Development Network Logo
  • Visual Studio
  • Windows Vista
  • SQL Server
  • .NET Development
  • Visual FoxPro
  • Visual Basic
  • Audio and Video
  • SharePoint Products
  • Windows Forms
  • Microsoft ISV
  • Smart Devicet
  • Visual C#
  • VS Team System
  • IE Development
  • Game Technologies

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

MosheDeutsch

Member List

Neno
Enix591
2006
johnx
dax_kun
ron nash
XBTester
stswordman
ducmis
cbeasle1
Fiddel
Thomas Greenleaf
Bastiaan Molsbeck
dickP
artsai
Siddhu
NeederOfVBHelp
chadmv
UK_2006
Bill Reiss
Only Title

MosheDeutsch's Q&A profile

  • Visual C# Help with PadRight Method

    I am trying to learn the new way of printing (as opposed to the "old" VB 6.0 way).  Everywhere I've looked so far shows nice even columns of data printed out.  All of the examples assume that the data fields are going to be equal in length.  I have been unable to find anything (even MSDN/Microsoft) that explains how to code for variable length print fields. Can anyone please either show me how to print variable length fields so that the report prints aligned columns, or are there any web sites/books available This is the resulting report, my feeble attempt at coding the print routine is below (I've listed only the pertinate lines):  NOTE:  All of the data is on one line, there are no ...Show All

  • .NET Development Error when calling an Async WebService method multiple times

    Hey folks, I've run into an interesting problem. I'm calling a web service method asynchronously multiple times simultaneously and an error is being thrown despite my calling of the method with unique state objects. The error is: "There was an error during asynchronous processing. Unique state object is required for multiple asynchronous simultaneous operations to be outstanding." In order to make simultaneous asynchronous calls to a web service, one must use a UserState object. In my case, I use Guid.NewGuid.ToString() in each of my asynchronous method calls. After about about 100 - 200 calls, the completion delegate is called, but there is an error. The "AsyncCompletedEventArgs e" argument contains ...Show All

  • Visual C++ activeX control

    hello all, it's my first post here , and i think i'll start to visit here. anyway, i wrote an activeX control with some property page. in the prop pages, there are edit boxes. if the edit box is empty, and i click on the tab (property sheet), my activex is crashing. how can i catch this and prevent the crash thank you, c'ya no, there are two scenarios. 1. when the activex is compiled in Debug - then i got the "Debug assertion failed" window. 2. when the activex is compiled in Release - i got a blank msgbox, with the MB_ICONEXCLAMATION, and the software continue to work. again, it happens when one of the edit box in the control property page is left blank (this value of the editbox ...Show All

  • Visual Studio Team System Set returning value from MSBuild task to a property

    Hi, I'm trying to write MSBuild task that returning String and set him to a property for later use. For example: public class RetMyString : Task { [ Required ] public ITaskItem SetString { get { return MyString; } set { MyString = value ; } } [ Output ] public ITaskItem OurputString { get { return MyString; } } private ITaskItem MyString; public override bool Execute() { return true ; } } Can any one pass an example of how to set the retur ...Show All

  • Visual Studio Express Editions C# and Web Page Properties

    Hi I'm writing a C# application which takes a list of web page urls and compares a stored version of each page with the current online version. If the online version is different to the stored page then the stored page is updated and flags are set indicating to the user that a page has changed. My main problem is how do i access the modified and page size of web pages I'm thinking that the best way to do this is to compare the page size in bytes and the last modified date with each stored page. If this isn't the best way to do things, please could you advise what would be a better way. Thanks in advance Kev Hi, The following code will retrieve the requested page only when it was modified mo ...Show All

  • Gadgets addImageObject rotation causes corruption if Margin isn't 0

    In the following example, the aliased surround around the image is not placed correctly. Sidebar doesn't take account of the body Margin's. blank.png is a 100% transparent image test.png is a solid white image 300x400 <BODY style="position:absolute; width:500px; height:500px;" > <g:background id="bodyBackground" src="blank.png" style="width:100%; height:100%" /> </BODY> Then add an image to it in code and rotate it: bodyImageSurround = bodyBackground.addImageObject("test.png", 50, 50); bodyImageSurround.rotation = 30; You now have a rotated image, with the aliased surround in completely the wrong place! If you add "margin:0px;" to the body style, the aliased surround is placed correctly. ...Show All

  • SQL Server Some questions about indices

    Hi all, we're planing to create a simple database with will work like a cache for a slow legacy system. The main work of this DB is to give results for search-queries. Each table will have up to 15 columns of different Datatypes and could contain up to 1.000.000 records. example columns of a Table: ID(int), guid (Uniqueidentifier), Subject(varchar(max)), Body(varchar(MAX)), IsComplet(bit), Startdate(DateTime), EndDate(DateTime) and so on... Typical searchqueries may be ("give me all items of a specific StartDate wich are complete" or "Give the item with the guid 'xxx-xxx...'. But also other combination are possible. Currently there are indices for the ID and guid columns. What is now the best practice to configure performan ...Show All

  • Windows Forms ListView images overlay

    Hello, I have the folowing problem. In my application I have two kinds of items to display. First is an Object and the second one is ObjectLink (like file and shortcut). I display them in the ListView control. I have an ImageList control with some images which corresponds to the Objects. But I would like to display also the ObjectLinks using the same ImageList (to overlay an image). I can create copy of my ImageList with the same pictures, but with some extra info. But this is a solution which I want to avoid. Is it possible Please help me. ...Show All

  • Visual Studio Tools for Office vsto contextmenu can't be closed automaticlly?

    Hi, everyone I placed a contextmenu on usercontrol, and placed a listview in this usercontrol, the special the contextmenu then placed the usercontrol in a actionpane but after the contextmenu be shown, I clicked anywhere, the menu can't be hidden, I don't know the reson. I have set the autoclose property true. help me thanks. thanks for your reply. In my action pane, More context menu be placed, some controls have no focus attribute , like lable. if I have to handle all the controls' context menu ,I think it's very tired . do you have more sugestion , thanks. ...Show All

  • Visual Studio Express Editions Someone please help me!!!

    I need help making a .cpp program that returns the factorial for a non negative integer. I honestly don't know what to do! I'm new to this whole Visual Studios thing so can someone who knows what they are talking about help me out please thank you very much. ...Show All

  • Windows Forms ComboBox hides mouse cursor when typing in text area.

    There is an incorrect behavior with the winform combobox. When I write on the text area of the combobox the cursor disappear, but if a move the mouse, it appear immediately. This is not a big problem, but, when I write and the cursor disappear and then I press F4 to dropdown the list, then if a move de mouse, the cursor doesn't appear until I close the dropdown list. I need a workaround to this. I hope I was clear enought, english is not my first languaje. Thanks in advance. I've tried to make the example the simpler than I could. I tested it with frw 1.0 and 2.0 using System; using System.Drawing; using System.Windows.Forms; namespace WindowsApplication1 { /// <summary> /// Summary description for Form1. /// </summary> ...Show All

  • Windows Live Developer Forums NEW API AND MAP CONTROL

    Hi all- I'm happy to announce that the latest VE map control went live last night! You'll notice we rolled up some of your suggestions and bug reports into this latest release, and added a couple of really nice new features. Here's a quick summary: 1. Custom tile layers: use MapCruncher or some other tool to create map tiles, and now you can easily add them to your mashup! I've got an example on the interactive SDK that adds a LIDAR image over the map; it took me 10 minutes in MapCruncher and 5 minutes with the APIs. 2. Polygons. We added a VEPolygon object that's a lot like the VEPolyline object except that it also supports polygon filling. 3. Address disabmiguation. We've added a VESearchResult object that returns when you do ...Show All

  • Windows Forms How to customize File open/save dialog box

    Hi I want to add some controls like check box,text box,labels etc.., to the file open/save dialog box.So please help me how to start to achieve the task using c# language(preferable). Thanks in Advance Chandu.Sanka Hello, You may use some unmanaged code to hook up onto the dialog and modify the window (also there are components for that - see http://www.donationcoder.com/Reviews/Archive/DialogExtenders/index.html ). But that's surely doable. Cheers, Eugene MCAD .NET, MCSD .NET, MCPD .NET ...Show All

  • SQL Server Strange SQL CLR error

    Hello, I am running the code below that simply adds a row with two values to a Table. When it is run, it gives me the following error: A .NET Framework error occurred during execution of user defined routine or aggregate 'InsertCurrency': System.Data.SqlClient.SqlException: Violation of PRIMARY KEY constraint 'PK_Sales.Currency'. Cannot insert duplicate key in object 'dbo.SalesCurrency'. This seems to indicate I am adding a duplicate key, however I have confirmed several times that I am not adding a duplicate key. Here is the code. Thanks for any suggestions about why this error is occuring. <SqlProcedure()> _ Public Shared Sub InsertCurrency( ByVal currencyCode As SqlString, ByVal name As SqlSt ...Show All

  • Windows Forms Combining ClickOnce and MSI Installer

    Hi, I have been surprised by the gap there is between ClickOnce and MSI. And I need to solve this. The scenario is this: Install a windows form application on a client (registry values, files, folder creation) and use ClickOnce to just update the application. Any GOOD documents about it Thanks!!! OK. Let me try to explain: 1.- You will need to create an Installation project (MSI) and finally get your app.msi file. 2.- Need to download the Bootstrapper SDK which contains the Bootstrapper Manifest Generator ( http://www.gotdotnet.com/workspaces/workspace.aspx id=ddb4f08c-7d7c-4f44-a009-ea19fc812545 ) 3.- Now you need to create a Package Manifest. 3.1 – need to add the MSI you just generated. 3.2 – Follow ...Show All

©2008 Software Development Network