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

Software Development Network >> Robert.Altland's Q&A profile

Robert.Altland

Member List

Kur Lan
Nikhil Doshi
ytandeta
philknight
bennett1016
PaulVSTO
Fabio Scagliola
takuma sato
Sooraj Kesav
kmcclung
Cale Hoopes
mackenzie 2480
Tryst
Richard Bourgeois
MagedSalah
BillyDvd
Ewild
zoomer
pjwhams
SteffoS
Only Title

Robert.Altland's Q&A profile

  • Windows Forms Setup file creattion using c# and outlook Add-in

    I have created two projects, i developed one project using c#,and another one i created in outlook Add-in using VSTO. Now i created the setup files for c# project and the outlook adding individually. But i want to create only one setup file. it should include both means the c# setup and the outlook setup file. how to create hi Thank u very much for u timing help. my setup file is working fine. i had put outlook express setup file into my c# project setup file. First i created my outlook express setup then i had include my project setup file. ...Show All

  • Visual Studio 2008 (Pre-release) DataBinding vs Static classes

    Working on May CTP... I'm trying to bind to a static class : public static class MyCommands { public static RoutedCommand ClearAll; static MyCommands () { InputGestureCollection ic = new InputGestureCollection(); ic.Add(new KeyGesture(Key.P,ModifierKeys.Control)); ClearAll = new RoutedUICommand("ClearAll", "clear", typeof(Window1),ic); } public static string Name { get { return "ok"; } } } And trying to use it on a Menuitem <MenuItem Name="mi1" Command="c:MyCommands.ClearAll"" Header="x:Static c:MyCommands.Name}" /> Everything works fine if i remove static operator on classe definition, any idea why Currently I am usingMay CTP, it obviously that you can ...Show All

  • Visual C++ Help! problem with CFile class

    This is code void func(CString string) { pFile.Open( m_FilePath, CFile::modeWrite | CFile::modeCreate); pFile.Seek( 0, CFile::end ); if ( pFile.GetLength() > (m_iFileSize) * 1024 * 1024 )//when file have some size { pFile.Close(); //close a file DeleteFile( m_FilePath + CString(".old") );//delete old file MoveFile( m_FilePath, m_FilePath + CString(".old"));//move information from main file to old if(!pFile.Open( m_ FilePath, CFile::modeWrite | CFile::modeCreate))return;//open file again and write from begin } //here i write some information in file pFile.Close();//close file //end function } in this code MSVS always thow CFileExeption error i can`t understa ...Show All

  • Visual Studio Edit and Delete functionality in ReportViewer Control

    Is there any way I can add Edit and Delete functionality at the record level in Reportviewer control Something similar to Datagrid Edit, Delete functionality. Any help would be highly appreciated. Regards No, ReportViewer does not support editing or deleting items within a rendered report. You can add interactive sort, collapsible sections etc, but you cannot modify the data and write it back. ...Show All

  • Windows Forms Controlling one form to another

    Hi, Is there any way to control parent form from child without using showdialog(). I am not using MDI form. suppose I opened Form2 from Form1. Now I want to change some property of Form1 from Form2 then how is it possible Hi, Simply make a public property in form2 which it's type is form1 then set this property of form 2 to "this" in form1 before opening the form2. here is what you need to have in form2: //Don't forget that It's better to use accessors for property members of a class public Form1 CallerForm; and have this in caller form: Form2 form2 = new Form2(); form2.CallerForm = this; form2.Show(); then you can change any property of form1 in form2, for example: this.CallerForm.T ...Show All

  • Visual Studio Express Editions treeview for main application menu / navigation

    im seriously considering using this control for the main menu and navigation for my small application. The top level will contain static options (i.e customers, system maintenance, reports etc) and i'll dynamically populate each option with data at runtime. i would like to know if you have used this control for this purpose, and what are the avantages or pitfalls you have found especially any appearance / look and feel issues. i would like and icon next to my top level options, and to change the font for child nodes etc.. thanks thanks for the replies so far. what still eludes me is why the asp treeview control allows you to specfiy a default background color for the selected node, but the windows t ...Show All

  • Smart Device Development Issue with Device Emulator screen buffer limit set to 1 MB

    Hello All, I need to run 800x600x32 color depth which won't fit in the current device emulator settings. Any thoughts on how I can fix this Thanks in advance for any help :) Bob Hanson You may also want to take a look at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=549008&SiteID=1 ...Show All

  • Visual C# Passing values into EventArgs when a button is clicked

    I am currently building a shopping cart application using C # in VS2005 where there are 10 items to select from. There are 10 "Add to Cart" buttons, when clicked, will trigger a single method. That single method will either add a row (new item), or update the quantity (old item). In my existing code, i loop through each row in the DataSet to determine whether i should add a row or update a row. Is there a way to store the item information (name, description and price) in EventArgs so that when the "Add to Cart" button is clicked, the item information is passed to the single method using EventArgs I am aware that i can create my own EventArgs class that inherits the EventArgs class but is there any way to store my it ...Show All

  • Visual Studio Team System how to check for interface implementation?

    In my fxCop project, I am required to check if a particular class implements interface IDisposable and can call Close() method. How to check for an interface implementation And how to check whether a class supports the close() method Please help me out... VS2005, Type doesn't have IsAssignableTo(), am I looking at the wrong kind of Type object ...Show All

  • .NET Development Calling Remote Stored Procedure in C#

    I am trying to call a remote stored procdure in c# but am receiving the following error message in my ASP.NET application when trying to call the appropriate method: System.InvalidOperationException: Internal connection fatal error. Calls to local stored procedures on the SQL server the ASP.NET application is connected to are run fine. I have logged into the SQL server using the same user as the ASP.NET application and called the remote proc manually (using EXEC [SQL Server Ip Address].databasename.dbo.storedprocedurename) and it works fine I am using the followinng code to call the remote proc: SqlConnection cnDefault = new SqlConnection ( this .DbConnectString); SqlCommand cmdCommand = new SqlCommand ( " ...Show All

  • Audio and Video Development “containing block“definition

    Now I am researching “containing block”, but I found there are some difference between CSS2 and performance of Microsoft HD DVD Interactivity Jumpstart. CSS2 definition: Definition of "containing block": If the element has ’position: absolute’, the containing block is established by the nearest ancestor with a ’position’ of ’absolute’, ’relative’ or ’fixed’, in the following way: ......(ignore) 2. Otherwise, the containing block is formed by the padding edge of the ancestor. If there is no such ancestor, the containing block is the initial containing block. My markup file: <root xml:lang="en" xmlns="http://www.dvdforum.org/2005/ihd" ...Show All

  • Architecture Localication - Numbers/dates - Responsibility of UI Tier or Business Tier?

    Hi forum I'm developing a business tier/layer for a web based UI. I would like the UI to be able to run in any culture but I'm guessing that I need to store dates and numbers one way. My business tier can be located on another server. (via remoting). I understand that it is the CurrentCulture on the thread that affects for formatting of dates and numbers. I would like to make it possible for both dates and numbers to be formatted when displayed in the browser - based on the browser language setting. How do I store these numbers and dates Should the UI do some handling before sending the dates or numbers to the business tier or is it the responsability of the business tier Should I just make sure that the thread on the b ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. MDX 2.0 lost devices? (can't find beta website)

    I know this is a beta question.  Don't bother referring me to the "beta" site--there's no entry over there for directx beta.  Is it moved   anyway. Has anyone managed to successfully Reset() a device once it was lost under MDX2.0 I see how the samples do it, but it only seems to work for 1.1.  When I run similar code under 2.0, a call to device.Reset() only triggers my "lost" handler to get run (not "lost" then "reset" as it should be). In the Simple2D_2005 sample, a call to device.Reset() triggers the "lost" handler followed by "reset" handler.  But using similar code/logic under 2.0, this doesn't happen. Anyone have it _really_ working under 2.0 ...Show All

  • Windows Forms Temporary Behavior, Need Help

    I am creating a control with a custom designer that should allow a data object to be dropped onto it, setting some properties. This object will be coming from another application. I've already been able to implement this by overriding the OnDrag events of the control's designer, but I'd like to do it "more correctly" by attaching a behavior to the control's body glyph and overriding those drag events. The idea being I could just add another behavior if I needed to support another drop source, as well as reuse them for other objects. This behavior/glyph should only be active during a drag operation, and more specifically during a drag from outside the process. Is there a clean way to do this Thanks ...Show All

  • Visual Studio Express Editions why imagelist errors with this?

    i keep getting compile errors with this code but why pb.Image = ImageList1.Images(0) Label1.Text = "Gettin ready for the ball...pretty isn't she! " If pb.Image Is ImageList1.Images(0) Then pb.Image = ImageList1.Images(1) Label1.Text = "Bad Gyal forward!" ElseIf pb.Image Is ImageList1.Images(1) Then pb.Image = ImageList1.Images(2) Label1.Text = "Nathan's fave..." ElseIf pb.Image Is ImageList1.Images(2) Then pb.Image = ImageList1.Images(3) ElseIf pb.Image Is ImageList1.Images(3) Then MsgBox("This boi luvs u girl!.x.x.x.") Else Label1.Text = "" End If ive tried everything including with no imagelist: If pb.Image Is ...Show All

©2008 Software Development Network