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

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

vivekvishist

Member List

Andrew Zhou
orent
AKA13_Intrepid
Asim Patnaik
Mortsdeh
Andreas Kranister
Jakein2006
omniscientist
Nicolas Dupras
Jamie Thomson
rod_r
Sinnix
GeorgeOu
Enkht
Leef
AndyPham
Behrooz PB
RBecker
Noorul Ahmed
h1
Only Title

vivekvishist's Q&A profile

  • Visual Studio 2008 (Pre-release) MouseUp/MouseDown/MouseClick

    I've wrote a very simple WPF application , and put some Control Templates and Databinding based on EID sample data. The issue I want to solve is that, on my animating bubble buttons, I've put some trigger implementations right in the xaml code, which fire MouseEnter, MouseLeave, MouseUp, MouseDown and MouseClick. As if you check the executable, the events work fine for mouse right-click, but mouse left click has a problem, which doesn't fire MouseUp. Is there anything I should take care of Button "handles" the MouseUp event. You can either add a handler to the PreviewMouseUp event (so that you get it before Button does). There is also a way to register a class handler that gets the event even when it is marked ...Show All

  • SQL Server Dynamic Connection Strings in SSIS

    Possible or not --> I maybe lazy - but I want to achieve just specifiying 1 variable in SSIS package ("environment") - and all the connectionStrings should "poof" magically be adjusted to correct locations In DTS I created a SetDTSenvironmentVariables function for all my packages - so how wouldIi achieve this in SSIS Function SetDTSenvironmentVariables( environment ) Folder = "MyDtsPackageFolder" Select Case environment case "DEV" DTSGlobalVariables("WorkingDirectory").value = "C:\Packages" & Folder case "STAGING" DTSGlobalVariables("WorkingDirectory").value = "D:\Sql_working_directory\My_production\STAGING" & Folder case ...Show All

  • SQL Server Schema Owner and Name Resolution

    I am merging two databases and created two different schemas to contain the objects in the new DB. I would like the objects in both schemas to be visible to one user but I can't figure out how to make this happen. I thought I could just set the Owner of the schemas to the same User but that didn't work. At the moment, the User default schema is set to dbo. I would like the default to be both schemas but this isn't an option. Is there any way to have multiple schema objects visible to a single user Thanks! Hi, the schemas are visible to the user if he has access to the objects within. You will have to (and should preferable do this all the time ) use the schema prefix before the object names. the resolutio ...Show All

  • Visual Studio 2008 (Pre-release) Problem with Model3D as resource

    Hi all, I'm missing probably something very basic here in WPF 3D. I have derived a class from ModelVisual3D. In its constructor, the Content member needs to be assigned to one of three Model3DGroup instances. These are fairly complicated meshes to build in code, so I have these Model3DGroups defined in a XAML resourcedictionary. E.g.: Content = (Application.Current.FindResource("walkingman")) as Model3DGroup; This all seems to work (Content is successfully assigned, as far as I can examine its state in the debugger), yet somehow the 3D object is not rendered. When I put just the MeshGeometry3D definition in the resourcedictionary - and construct the Model3D object around that in code - everything is okay. Is ...Show All

  • Windows Forms PictureBox1.Image = PictureBox2.Image

    Hi, I am trying to copy PictureBox1.Image to PictureBox2.Image because I am streaming a webcam video. The webcam video is displayed on PictureBox1. In order to show the webcam video on other computer, I may copy the webcam video from PictureBox1. However, it can't be simplily achevied by making a button like private void button1_Click(object sender, EventArgs e) { pictureBox1.Image = picCapture.Image; } How can I copy the pictureBox1.Image to other pictureBox You could download my application at: http://www.yousendit.com/transfer.php action=download&ufid=CB1D2DAC74B050A3 Hi. I know I shouldn't be posting this here, but its a bit related. I use the following cod ...Show All

  • Visual Studio 2008 (Pre-release) Adorners: How to show stylable help and error texts?

    An user friendly program has to show error and help informations, so I want to display them on an AdornerLayer to adorn a specific control. What I don't want is to write code for every adorner i use, instead i want to write it once and define the content via markup. The definition of the adorner template is possible in Validation.ErrorTemplate, but how can i do something like this myself   For clarification, here is a mockup of what I am intending to build: CLICK The exclamation mark and the error information should be on an AdornerLayer but styled via markup... ...Show All

  • .NET Development Is is possible to Serialize/deserialize an object without knowing its type?

    I would like to make our front end developers able to store any object in the database. Like this: void Business.StoreObject(string key, object o) object Business.GetStoreObject(string key) I then want to serialize the object and store it as a varbinary in the database. The UI should then be able to retrieve it again and cast it to its specific type. I will need to serialize this general object without knowing what is in it and then deserialize it again. Is this even possible Usually I would use the type when duing this. Can I get some kind of type info on the object so I can do this without having the type on the business tier Hi Jesus Thanks for answering my post. I ca ...Show All

  • Visual Basic XML Creation

    Hi, Hopefully this is the correct place for this type of (probably quite basic) question.. apologies if it is not.. I have some html (that is xhtml compliant) and I want to add it to a xmldocument that represents a part of a web page (I know which node in the document I want to append the text to).. However I am not sure of the best way to do this.. I began by creating a xmlelement and setting the inner text to the html fragment, however when doing this I found that the html is automatically escaped (i.e. "<" becomes "&lt;" etc) I don’t know how long the incoming html will be and thought there must be a simpler way than writing a parser to parse the incoming string and add each node ( ...Show All

  • Gadgets Flash movies

    Hi all, is it possible to embedd a Flash movie in a Sidebar gadged It is, through an IFrame - but it will probably crash Sidebar. Flash suffers from a lot of buffer overruns, which cause DEP to close Sidebar. Sun Java suffers the same problem. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. XNA and future Microsoft Consoles

    Will future releases of XNA (v2.0, v3.0, ...) be able to deploy games into future XBox consoles I know this question is kind of too early, but just wondering before I forget. Carlos Perez wrote: Ok, thanks. Already got some friends at my university to use XNA and we'll be using it throughout the next semester to develop interesting game demos (not enough time in 1 semester to build a full game :D). Not enough time to build a full game Definitely start a bit smaller. Give yourselves a small 2D clone and one month. More than enough time to get a full game in. Look at how polished the XBox360Homebrew contest games turned out. They only had a couple months. You're not going to make World of Warcraft or Gears of War, but ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Starting work on my GUI system

    Well, I've hit a wall with my game's development, and since there was no GUI with XNA 1.0, I've decided to go ahead and make my own GUI system. I implemented a lot of mechanics for my game, but I need greater interaction to proceed development in a sane manner. So far I've just implemented the text drawing stuff from scratch. It uses only monospace fonts generated with BMFontGenerator without using the generated .xml file. It's decidedly minimal to use only monospace fonts, but keep in mind two things - 1) my particular game doesn't require anything more robust than monospace fonts and 2) a game's engine should be designed around the game's specifc requirements. Otherwise you're scope creepin. I remind myself constantly not to let cool ...Show All

  • Visual Studio Tools for Office CommandBarButton.Picture generates COMException

    Hi All, I'm trying to set the Picture property of CommandBarButton but it generates a COMException with error code -2147467259. Following is how i'm defining the button and adding icon to toolbar. Connect() { ......... object omissing = System.Reflection. Missing .Value; btnCmd = (OFFICE. CommandBarButton )oCommandBar.Controls.Add(1, omissing, omissing, omissing, true ); btnCmd.Caption = "Test Button" ; btnCmd.Style = OFFICE. MsoButtonStyle .msoButtonIconAndCaption; WordAddinAxHost axHost = new WordAddinAxHost (); Image image = Image .FromFile( "C:\\icons\\Image.bmp" ); IPictureDisp disp = axHost.IPicDisp(image); btnCmd.Picture = disp; (Exception generated here) .......... } public class W ...Show All

  • Visual Studio Express Editions Another Question

    Currently I'm making a media player which is using Windows Media player DLL. And I would like to get the length of the sound which is currently playing in Progress bar, How would I do that Please Help . One way to do this is to use a timer control to sample the Ctlcontrols.currentPosition property of the player. Send this to the Value property of the progressbar. Here is an example: namespace WindowsApplication1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click( object sender, EventArgs e) { if (openFileDialog1.ShowDialog()== DialogResult .OK) { ...Show All

  • Visual Studio 2008 (Pre-release) Thumbs up for type inference

    I'm finding var works a treat— outside of just LINQ. It's particularly good when you want to pass an object from one place to another "opaquely" without caring about its type. An example is ICryptoTransform or IAsyncResult. You still get type safety, but with less clutter. Joe ...Show All

  • Visual Studio Menu item in Debug menu?

    Hi, I've looked in all the ctc files of the inc folder but I cannot find the correct group id for the debug/window menu. Thanks for your help, Charles Hi "cverdon", You are correct that these are not defined in the current SDK, and this is, unfortunately, a bug. These files will be included in the November 2006 CTP of Visual Studio SDK V4 which will ship in about 1 month. In the meantime, if this is blocking you, please contact me via http://blogs.msdn.com/aaronmar and I'll see if it would be possible to privately ship you these files out of band. (It may not be though....I'll need to get approval from the right folks inside Microsoft). Thanks, Aaron Marten ...Show All

©2008 Software Development Network