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

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

Mathew1972

Member List

kalingo
bkallich
bobby_macnair
Kazoo
pdxJaxon
Steve from adzac
Mr_White
daytonboi
smogit
Nkomo
Kevin Dente
ChandraP
scottwnelson
noname2513788
Terence Lee
Dinis
bdot
E.Rios
Alex-MyRpg
kata.
Only Title

Mathew1972's Q&A profile

  • Visual Studio 2008 (Pre-release) ParserContext incorrectly turns relative paths into absolute

    If I understand well, ParserContext permits to resolve relative paths. For example I can specify an image using "Images\1.jpg" while the ParserContext specify the Base Uri to resolve this relative path. The problem is during save. If I use XamlWriter.Save the absolute path is saved so if the xaml is moved to another folder, the xaml resources cannot be reloaded anymore. So what is the trick to solve this Thanks, Raffaele This is a limitation of XAML serialization. See http://msdn2.microsoft.com/en-us/library/ms754193.aspx Best advice would be not to use it and implement your own method of serializing objects, which is what most xaml editors do by keeping a logical copy of the tree and implementing their own s ...Show All

  • Visual Studio check ProjectItem is read only or not

    Hi All, I am doing simple Addin project. In this, I am doing some File Operation with included Project solution. but I want to check ProjectItem is Readonly or not before doing any file operation. I can get it from Document also but if document is null(closed) then how i find that I check like if (projectItem.Document != null) projectItem.Document.Close(EnvDTE.vsSaveChanges.vsSaveChangesYes); System.IO.File.Copy(propDirPath + dest, sourceFullPath, true); Waiting for reply, Thanks, Nik The ProjectItem has the FileNames property to get its file names, or the Properties property which should include also the file names and paths. With a full file name you can check the attributes of the file ...Show All

  • Software Development for Windows Vista Cannot insert activities from the toolbox if CanModifyActivities=False

    I would like to have a workflow initialized with two activities in it and also be able to drag additional activities from the toolbox into the workflow. I have written the code shown below to achieve this goal. However, after setting CanModifyActivities to false, I cannot drag activities from the toolbox into the designer. The designer does not accept the activities anymore and does not throw an exception. How can I have a workflow initialized with 2 activities in it and still be able to add additional activities by dragging items from the toolbox (which seems not to be possible, if CanModifyActivities has been set to false) [ Designer ( typeof ( WorkflowActivityDesigner ), typeof ( IRootDesigner ...Show All

  • Visual C++ Project organization

    I find myself against the wall. I am at a place where I have never gotten beyond because I do not understand the organization of projects. In the past I have done top-down programming. I've gotten fairly proficient with it, even though I have never gotten deep into the system with it. An example of the type of coding I am familiar with is here . While I can understand the concept of classes and objects, the organization of object-based projects throws me. As example, the app I'm writing. Using windows forms I created this project. It has 2 header files (Form1.h and stdafx.h) and 3 c++ files (AssemblyInfo.cpp, ProLite.cpp and stdafx.cpp). So far,all of the code generated by the designer is going into Form1.h. All of it. I know that I am ...Show All

  • Visual Studio 2008 (Pre-release) Where is my dropshadow?

    Take a look and tell me what you think The dropshadow is not showing on the border bitmapeffect of the Popup. <Style x:Key="ComboBoxStyle" TargetType="ComboBox"> <Setter Property="SnapsToDevicePixels" Value="true"/> <Setter Property="OverridesDefaultStyle" Value="true"/> <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/> <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/> <Setter Property="ScrollViewer.CanContentScroll" Value="true"/> <Setter Property="MinWidth" Value="120"/> <Setter Proper ...Show All

  • Visual Studio Express Editions Set two methods to the same button_click

    I have a problem to set two methods to the same button_click: One method is called 'grabber' and grab a picture from a video stream and display it to a picture box. The other method simply save the picture from the picture box. They both work if i use two buttons. If a click to grab the picture and then click to save it...no problem . If I use 1 button to do both methods (first grab and then save) it doesnt work , and visual shuts the window form and a yellow arrow appears on line saving command line. If someone had this problem before or just know the answer to my problem, a little help would be great. Thank you. private void Detect_Edge_Click( object sender, EventArgs e) { grabber(); //saver ...Show All

  • SQL Server Data Conversion Error on Excel Destination

    I am inserting rows using OLEDBDestination and want to redirect all error rows to EXCEL Destination. I have used Data Conversion Transformation to Convert all strings to Unicode string fields before sending it to Excel Destination. But its gives the following error. [Data Conversion [16]] Error: Data conversion failed while converting column 'A' (53) to column "Copy of A" (95). The conversion returned status value 8 and status text "DBSTATUS_UNAVAILABLE". [Data Conversion [16]] Error: The "output column "Copy of A" (95)" failed because error code 0xC020908E occurred, and the error row disposition on "output column "Copy of A" (95)" specifies failure on error. An error ...Show All

  • Windows Forms DataGridViewImageColumn refresh issues

    Howdy ladies and gents, I was working on a .NET module today that creates a DataGridView at runtime, docked at the top of the parent form, and populates it with a mix of Image columns (containing Icons rather than Images), TextBox columns, and Link columns, and I noticed that when the form is redrawn, the icons aren't rendered properly. The masked space from the "transparent" portions of the Icons are being rendered with whatever data was present in the previous frame. I've set the background color of the cells individually, in addition to setting it in the template for new records. Possible tip: if I minimize and then restore the parent window, the "transparent" portions of the Icons are painted in the normal ...Show All

  • Visual Studio Some items in HoL don't match GAT

    I finally made HoL work with June 2006 version of GAT (don't ask me how, it just happened). However, I observe the following issues with HoL and it's documentation: 1. The XML snippets are not exactly right. for instance, XML namespaces are wrong ("igt-wizards" instead of "gax-wizards", or "igt-template" instead of "gax-template"); 2. "Exploring the GAT" document makes reference to ".t3" templates instead of ".t4"; 3. The template syntax in the document is wrong (for example <#= connectionSettings.Name #/> does not exist and ending slash is wrong, apparently - old syntax); 4. Getting a warning for this entry in the Recipe definition: < xi:include href = " TypeAlias.xml " xmlns:xi = " http://www.w3.org/2001/XInc ...Show All

  • Visual Studio 2008 (Pre-release) SSL in self-hosted service just doesn't want to work

    First, I'm fully aware of needing to use httpcfg to configure SSL for a self-hosted service. I've done the following steps successfully (several times): makecert -sr localmachine -ss my -a sha1 -n CN=localhost -sky exchange certmgr -add -r LocalMachine -s My -c -n localhost -r CurrentUser -s TrustedPeople httpcfg set ssl -i 0.0.0.0:13177 -h <my sha1 hash here> The service starts up just fine, but I still get the following exception when the client (running on the same machine) tries to make the first call to the service. An unhandled exception of type 'System.ServiceModel.CommunicationException' occurred in mscorlib.dll Additional information: An error occurred while making the HTTP request to ...Show All

  • Windows Search Technologies Desktop search for file names... how?

    Hallo everyone, I just installt MS Desktop search to my computer, and it is working just fine, exept fpr the fakt that it somehow can't search the ordenary file names. I can search inside the Dokuments, but as soon as only the file name contains the wanted result the search fails. Can anybody tell me what I'am doing wrong Thanks in advance. Hello Maeveana, You can search successfully on the above by doing the following: Instead of searching for file:voed, search for file:*voed This places a wild card at the beginning stating that voed could be part of a single "word" and that there could be additional letters/numbers before voed. You can also place a wild card at the beginning and end - telling WDS that t ...Show All

  • Smart Device Development Beta of Microsoft Certification Exam 70-540

    Microsoft Certification Exam 70-540 is available in Beta form right now! This is a Technology Specialist exam for application developers in the mobility space. The Preparation Guide is available for the Exam at: http://www.microsoft.com/learning/exams/70-540.mspx . To register visit one of our independent testing providers: * Thomson Prometric: http://www.prometric.com/ContactUs/T...rs/default.htm * Pearson VUE: http://www.vue.com/ms/ Please use the following promotional codes when registering: Exam 71-540: BTA540 Best of luck! Howard Dierking Product Planner Developer and Database Certifications Microsoft Corporation Tryst wrote: Isnt Sql 2005 Mobile Edition trhe same as SQL ...Show All

  • Windows Forms BUG: TabPage not resizing/repainting properly

    Steps to reproduce:    Open up a new WindowsApplication    Add a SplitContainer to the form (Dock should default to "Fill")    Add a TabControl inside each of the two SplitContainer panels    Set both TabControls Dock properties to fill so they fill up each panel Now run the app and move the splitter around.  You'll notice that the client area of the tab pages are not fully repainted to fill the gaps left by moving the splitter.  You will also notice that other events like changing the selected tab or minimizing/maximizing the form causes the tab control to be repainted properly.  Please fix!  Using .NET Forms runtime version v2.0.50727. TIA ...Show All

  • Architecture Efficient Image comparision and sending Image Difference

    Scenario: Client Program needs to send Screen shot after every 100 milli seconds. Now i want to compare 1st sent screen shot with the next captured screen shot. I want to calculate the image difference and send only the difference betwwen the two screenshots to the server. and then  the 2nd Screenshot will be genrated on the server. Conversion to byte array and then comparision is possible but that is very slow. I need an efficient method. Because speed is the concern overhere. regards   I'm not too sure about the code, but it seems ok. Anyway, you can try encode the difference by some algorithm such as run length encoding, since most of the time the screenshot wouldn't have much difference, which ...Show All

  • .NET Development delete row is not updating in dataAdapter

    Hi, I'm trying to delete a row and the changes can not be updated. --------------------------------------------------------------------- Dim propertyCommand As New SqlCommand Dim propertyAdapter As New SqlDataAdapter propertyCommand.Connection = Conn propertyCommand.CommandText = "SELECT tbl_property.propertyID, tbl_property.propertyName, tbl_property.propertyAddress, tbl_property.prAddline2, tbl_property.prAddline3, tbl_city.cityName, " & _ " tbl_property.postCode, tbl_localauth.lauthorityName, tbl_service.serviceDetails, tbl_agent.agentName, tbl_usergroup.description " & _ " FROM tbl_property INNER JOIN tbl_city ON tbl_property.cityID = tbl_city.cityID INNER JOIN " & _ ...Show All

©2008 Software Development Network