Software Development Network Logo
  • Visual Basic
  • VS Team System
  • Architecture
  • Microsoft ISV
  • Visual J#
  • SQL Server
  • Windows Live
  • Windows Forms
  • Visual Studio
  • VS Express Editions
  • Visual C#
  • Visual C++
  • .NET Development
  • Windows Vista
  • Visual FoxPro

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

dhurwitz

Member List

Abdul Khaliq Oomatia
lucho16209
rjwelte
Darla
Aryan Patel
Fredrik Wassberg
auhe
BlazingFox
meenakshi sundaram
Laurence Melloul
Ed Casey
Ravenet
Fei Xu
Susan2
freddyboy
ShowMethodHang
Noli San Jose
Rick Penner
ploxis
bhargavpatel
Only Title

dhurwitz's Q&A profile

  • Visual C# how can i add items to the contextMenu without removing the default items?

    hi, adding context menu to my textbox is simple, but once i add that contextmenu to the textbox, the default items that used to be there when 'none' was chosen disappear. how do i add items to the contextmenu of the textbox without removing items like 'cut', 'paste', 'copy' and other options thanks, Yes it's possible, because TextBox, have the methods, Cut, Copy, Paste, Delete, SelectAll and Undo, and you can call the methods from the ContexMenu. public class DefaultContexMenu : ContextMenu { private TextBoxBase t; public DefaultContexMenu( TextBoxBase textBox) { this .t = t ...Show All

  • Windows Forms how to bind when the number of parameters will vary

    I have a contact management app with a checkedlistbox. I want the user to be able to check from one to however many items are on the list to produce a dataset where the contacts match any of the checked items.  I know how to code the program and my sproc when the number of parameters is known, however I don't know how to do it& ...Show All

  • Visual C++ error 2664 conversion error

    <Karthik.T@discussions.microsoft.com> wrote in message news:b06b0b0e-738c-40e6-84f4-6fdf64966f60@discussions.microsoft.com > I am trying to convert the following > > The Code > > std::string* ChkName; > > GlobalInterfacePtr->MethodA(po­sition, bstr, ChkName); > > error C2664: 'MethodA' : cannot convert parameter 3 from 'class > std::basic_string<char,struct std::char_traits<char>,class > std::allocator<char> > ** ' to 'unsigned short ** ' MethodA clearly expects a BSTR* as the last parameter, not std::string*. As in   BSTR&nbs ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Billboard Question

    I try to create a Billboard with a texture plus a written text. Everything works fine and see both, the texture and the text. When I move (transalte / rotate) my world the following happens: The texture remains more or less stable. If I rotate the world to the back, the billboard flips, so that I can see it from the back. The problem is, that the text moves out of the billboard. So, two questions: 1. What is wrong with the text Here is the render code: Dim sprflag As Integer sprflag = SpriteFlags.Billboard Or SpriteFlags.AlphaBlend Or SpriteFlags.SortDepthBackToFront ' use the matrixstack to position within the world drawArgs.matrix ...Show All

  • Visual Studio 2008 (Pre-release) not able to create xps form xaml file

    hi, i am trying to create a xps file from xaml file, i am able to create the file but nothing is in there. <TextBlock xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Height="20" Canvas.Top="20" FontSize="18"> This is a photo from my recent vacation. </TextBlock> here are the contents of the xaml file. one more question, can we save anyhting in xps doc, like application data, xml data, etc. thanks prasanth ...Show All

  • Smart Device Development Updated images for Windows Mobile 5?

    Does anyone know when or if the Windows Mobile 5 images included in the Pocket PC or Smartphone SDKs will be updated I suspect the versions in the SDKs are not the same as the versions included with WM5 devices. Thanks, Frank The SDK has Magneto AKU0.0 version and the most recent AKU is 2.1. Is there something in particular that you need out of a later AKU There are currently no plans to release 2.1 (the volume of changes is not high between the two versions), but that can change if there is customer demand. Thanks, Vladimir ...Show All

  • Windows Forms UserControl redraws incorrectly when control was covered

    Hi, I have a user control, and overwrite OnPaint to do some custom painting. However, when something is moved over this control, it redraws incorrectly and looks "jagged". How do I know when this happens so I can invalidate it or is there another way to get around this Thanks, Tom Also, make sure you're not treating e.ClipRectangle as the control's area, especially if you're drawing an image or creating a gradient brush.  For instance Brush brush = Brushes .Red; private void Form1_Paint( object sender, PaintEventArgs e) {    e.Graphics.FillRectangle(brush, e.ClipRectangle); // ...Show All

  • SQL Server Committing a Stored Procedure

    hi there, I am connecting to a sql server express 2005 database which is located on another developers machine in the company. he has given me the username and password and i can read and write to this db using vs2005 no problems. i can also added new tables and everything through the management studio, but when i add stored procedures, it does not seem to commit to the database, when i click save it asks for a local destination but i want it to save onto the sql server. i can add stored procedures through vs 2005 no problems! this does not make sense Hi, yes it sure does. You don’t have to save the procs you have to execute ...Show All

  • Visual Studio Team System Running Tests in Team Build

    My TeamBuild, builds 2 solutions (one asp.net and one class library), therefore I also define two build configurations ('Debug|.NET' and 'Debug|Any CPU'). I have defined a test on each solution (a web test for the asp.net solution and a unit test for my Class Library solution). When I run these tests in team build, as well as compiling against both build configurations, it appears that both tests are run under both build configurations. Whilst the web test works under both build config's, the unit test only works under 1 - unfortunately the build log doesn't say config is being used to run the tests. The error mesasge also says that the unit ...Show All

  • Windows Forms Hide certain standard control's properties from designer

    Hi, I created a custom control which inherited from Forms.Button. There's no problems to create & expose custom properties but... I cant find anyway to hide the standard Button's properties... Note that I'm using J# Thanks override the property, apply the Browsable(false) attribute. . . call the base property to access it. this is c#, but the approach should be the same: public partial class MyTextBox : System.Windows.Forms. TextBox { [System.ComponentModel. Browsable ( false )] public override string Text { get { return base .Text; } se ...Show All

  • Smart Device Development Unable to connect to the remote server

    i have a simple webservice which i am using in my pocketpc app. and i am calling webservice from pocketpc app. but being error : Error is: An unhandled exception of type 'System.Net.WebException' occurred in System.Web.Services.dll Additional Information: Unable to connect to the remote server i am not calling webservice on pocketpc app..... can i do Received this error in VS2005 after creating a "Web Reference" to a web service that was auto generate by another open source tool. The problem was caused by the tool used to create the "test" Web Service. It defaulted the URL in the WSDL XML to htt ...Show All

  • Visual Studio Express Editions tabcontrol align with visual effect problem

    i have encountered the tabcontrol align problem. with the visual effect set to true, the tab text stay horizontal no matter how i aligned the tab to left, right or bottom. how can i fix it i hv encounter the same problem when using VS.net 2003 with the manifest file attached to enable the visual effect. any advices/guides are welcomed. thanks cgraus, thanks for the code. it seem it is written in C#. i will try to translate it to VB cos im not familiar with C#. ...Show All

  • Visual Studio Express Editions Making a call to a shared Shared Method

    Hi, Can not workout answer to this problem: I have, for example, a MDI form (Form1) a child form (Accounts) and a Class (Add_Account) Within Form1 I have a shared method as follows: Shared Sub testshare() MsgBox( "testshare" ) Form1.Text = ( "Test Share" ) End Sub I call this shared method from the Add_Account class like this: Form1.testshare() '\\Calls shared method in form1(MDI form) This all works fine. What I cannot understand is this: I have aslo created a shared method within the Accounts form as follows: Shared Sub stat() MsgBox( "status bar" ) ...Show All

  • Windows Forms trimming a value in a datagridView

    hiya, I've bound a DGV to an sqlServer table. Can i somehow trim the value that's displayed in the DGV I want to get rid of all the leading and trailing spaces..I was hoping that the columns designer would allow me to do this, but i can't see anything. many thanks, yogi ...Show All

  • Visual Studio 2008 (Pre-release) CommunicationObjectAbortedException

    This is an error I receive while returning an object over a service (net.Tcp binding). The object is an LLBLGenPro EntityCollection. The EntityCollection contains EmployeeEntities. I can successfully return such a collection if the size of the collection is smaller than about 20 entries. But if it is any bigger I get the following error: An error occurred while transmitting data. System.IO.IOException: The read operation failed, see inner exception. ---> System.ServiceModel.CommunicationObjectAbortedException: The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded b ...Show All

©2008 Software Development Network