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

Software Development Network >> David Sadler's Q&A profile

David Sadler

Member List

dhanezep
Jason D. Camp
KDiv
adi151478
Leonard51607
Polina159216
ippological
yanyee
cka11
bilo_krewol
AlexanderJ
Yasir Imran
qpsk
Avishesh
Kennon2005
sl333
GregFarquhar
DM_Hawk
Leonard Lee
jaczura
Only Title

David Sadler's Q&A profile

  • Windows Forms UserControl - Hiding certain properties (design mode)

    Hi I have an UserControl , A . This control consists of a TextBox and a Button . A has several user-declared properties, p1 , p2 ... pn . When I add instances of A to a Form, I see all the properties including p1 - pn . If I make another UserControl , B , and add several instances of A to it, how do I get only certain properties of the instances of A visible in the properties window of B For instance, B contains: A a1, A a2, A a3 ; public A A1 { get { return a1; } set { a1 = value ; } } (and so the same for a2 and a3 ) In B 's properties window I only want p1 - pn to be the displayed properties for A1 - A3 . I hope my explanation is understandable :) Kind Regards Thanks, that hel ...Show All

  • Visual Studio Team System test driven programming problem

    Hi Folks I’m trying to switch from Nunit to visual studio 2005 native test tools, but ... My function to test opens an xml file as usually xmldoc.Load("file.xml") When i run the test, file not found exception is throwed, looking inside error object visual studio is looking for file.xml in TestResult directory not in bin/Debug, unfortunately copy file.xml to TestResult directory is not a valid choice because a new TestResult directory is created every time i run the test. Any help will be greatly appreciated Best regards Favio Yaniquez Hi you may try the following, make sure you do using System.Reflection XmlDocument myDoc = new XmlDocument (); Assembly myAssem = Assembly .GetExecutingAsse ...Show All

  • Windows Forms User interface forms programming

    Hey guys... i am programming a user interface on a windows mobile form with c#, and the problem is, i will have much layers ( with panels and stuff ) so sometimes it get's confusing programming with so much things in site... is there a way to make visible and invisible one part while i program another can u point me in any direction i was able to create a project for a control library, edited it with a label and a button.. then i created a windows mobile application and was hoping that in thje toolbox my usercontrol created would appear, but it didn't...what am i making wrong thanks ...Show All

  • SQL Server Parent Attribute Hierarchy

    Does anyone know how to create a parent-child hierarchy that can be expanded in reporting services as well as analysis services Currently, I have a dimension with three attributes: parent, child, and key. Everything seems to work fine in Analysis Services. However, reporting services doesn't seem to recognize the parent hierarchy as being a true hierarchy. Any help Thank you. There is only sinlge way to create parent-child hierarchy in Analysis Services. You dont have any choice here. Not sure about Reporting Services and how it is displaying parent-child hierachy. Moving thread to Reporting Services forum. Edward. -- This posting is provided "AS IS" with no warranties, and confers no r ...Show All

  • Visual Studio Express Editions Basic questions about connecting to a MSDN database via Visual Basic 2005 express

    Hi Fairly new to the VB solutions and I am not a pro programmer so some questions may seem basic. I have seen some articles on solutions that I cannot understand. I have a basic issue in that I can understand the VB Express code and am getting to be able to write applications with OOP. However I now need to do some real world work and connect to a database to extract live info. The system we run uses an MSDE 2000 Database. I do also have Visual Studio Express installed on my machine. I can connect to my database no problem with the MSDE Manager program and one other source which sees the server and creates the connection automatically. However my problem is:- * Add a data source in VB Express askes to attach the database ...Show All

  • .NET Development Enums make me E-Numb

    Is there any function to convert a letter format a number value Samples: 7 -> Seven. 5 -> Five. 20 -> Twelve...... I'm from Spain, so I'm interesd in spanish translation... Thanks. First of all thanks for the answers. I need print pay cheks, so the posible values are so much to save in a enum. I'm from Spain, and my English is very poor, I try to search in google but I can't form a phrase that defines that I need. Someone knows what is the name of the algoritm, or some phrase that is in relation with this, like 'literal representation of a number value'... ...Show All

  • SQL Server Execute Process Task using StandardInputVariable

    Greetings! I am using a Excute Process Task calling a selfwritten EXE and I'm trying to pass a command line argument to it. The code for the EXE is quit simple: Public Sub Main() Try Dim info As String = My.Application.CommandLineArgs.Item(0) MessageBox.Show("Info:" & info) Catch ex As Exception MessageBox.Show(ex.ToString) End Try End Sub According to the help files there are two ways to pass an argument, using the property Arguments, which I guess is for hard-coded stuff, and the StandardInputVariable for passing dynamic info. When I use the Arguments property everything works fine. I get the info messagebox with correct data. But when I leave that blank and instead use the StandardInputVariable proper ...Show All

  • Smart Device Development WebBrowser Control (VSN 2005 - C#.Net)

    Hi I have some .Html files having (only) pictures and texts. I need to display that .Html files in my windows form. So I rushed towards WebBrowser Control. Once I drop a WebBrowser control in my form, while running application, I got an error of ThreadStateException What should I do to avoid this So enlighten me about this. [Included Libraries : using System; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.Design; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Threading;] Suggestion I learned From Microsoft : The suggestion is to generate an ActiveX wrapper for shdocvw using the aximp tool. The comm ...Show All

  • Visual C# Stop Printing in C#

    Hi I'm a pour english man . I dont know how must be stop printing in code . I using crystal report for reporting and I have some difrent paper size that must be set but when I set thats paoper size that not be worked. How can stop printing or resize paper in c# Thanks ...Show All

  • .NET Development Certain characters cannot be passed to Web Service

    I have a simple web service where one of the web methods accepts a string parameter. I've found that if the client's string contains certain unicode characters, the web service infrastructure fails. I've narrowed it down to a simple example . string PageText = "AB\u0012C" ; This four character string -- with the third character being a 0x12 character -- causes there error. I'm enclosing a capture of the SOAP request and response. Is there anything I can do to pass this properly. I don't have a lot of control of the text on the client-side; it is the result of an OCR package (and I'm not sure why it produces this character, but that's besides the point). Request POST /OcrCoordinationService/PageControl.asmx HTTP/ ...Show All

  • Visual Studio Express Editions Intellisense 2 - 3 Second Delay

    I have searched high and low for this, and I can only find references to Intellisense's failing with large projects. This is quite different, as Intellisense never actually stops working, it's just delayed. The problem I'm having is a major annoyance for me. Basically what's happening, is I create a new empty Win32 project. I add a new cpp file to the project and type the following code: #include<windows.h> int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { return 0; } After this, above the WinMain line, I add a small declaration as follows: class SomeClass { public: void SomeMember(); }; Immediately after typing the last semicolon (;), I move the cursor (via the keyboard) int ...Show All

  • SQL Server Access functions to SQL Server

    I'm upsizing MS-Access to SQL Server 2005. I need to convert the following functions: TRANSFORM PIVOT FORMAT MID Are there any similar functions in SQL Server Also I have a query as follows: SELECT Mid$ ([AccountNumber], 3 , 8 ) AS [Account#], Format ([checkamount]* 100 , "000000000" ) AS Amount, IIf ( IsNull ([statusdate]), " " , Format ([statusdate], "yyyymmdd" )) AS [Date] FROM tblResult; How do I convert this in SQL Server query Please check out the following resources for migrating from Access to SQL Server. We also have a tool to help with that. http://www.microsoft.com/sql/solutions/migration/access/defaul ...Show All

  • Visual C++ Arrays of Strings

    Hi folks, I'm writing a .NET Winforms project in Managed C++ using Visual Studio 2003 and I'm wondering how I go about having multi-dimensional arrays for String objects I'm vaguely aware of the Array Class, but I'm not sure if this needs to be part of my solution. I've tried a few experiments using the classic C++ method of creating multidimensional arrays, but (of course) this does not work owing to the managed restrictions of the language. In any case, I just need a little direction here - do I need the Array class or is the syntax for this a bit different than what you might expect -Zero Hi again everyone, I managed to figure it out after I realized I was being a complete dunce - if I ha ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. The Content Pipeline and my Scene Graph

    I implemented a scene graph. Items in the graph are of type Entity. StaticVisual, a subclass of Entity, takes a Model as a constructor parameter. Using the content pipeline and contentManager.Load<Model>("assetName") things seem to be working smoothly. Now, I want to extend the content pipeline to have complete scenes be content. I'm not sure how to do this without writing a ton of redundant and error prone code... My idea is to write a Model Processor and look at the node's names in order to decide which types of Entities to instantiate. I'd modify my StaticVisual class to take a ModelMesh (or a ModelMeshPart ) as a parameter and in theory I could construct a whole scene graph. I'd like to write single generic pai ...Show All

  • SQL Server Problem with slowly delete many filtered rows in table.

    I use cursor for delete 20 milions rows from one table, but it's very slowly. I want use delete rows in a non-resource consuming manner. I don't need from transaction log, but don't know how turn off it. Please help me! 10x Why are you using a cursor for this Can't you form the DELETE statement into a SET-oriented operation Cursors are going to be much less efficient than a straight-DELETE DML operation. (FYI, TRUNCATE is the only logging-optimized DELETE operation available in the server.) Thanks, --R ...Show All

©2008 Software Development Network