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

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

drummstick

Member List

Trish
bw12117
Vaish
ved_30
Joe Dawson
yxrkt
Corrado Cavalli
kayers
Robert Barnes
sobo1
CharlieRussell
Pure Krome
dzs
Can-Ann
VBAddict
Sorcerer14
astrocrep
geliser131
leovernazza
Steve Harding
Only Title

drummstick's Q&A profile

  • Visual C# Changing the icon of EXE files programatically

    Can anyone show me an example of how to change the icon of an EXE programatically with C# (I am not too familiar with the other .net languages) For example, how could I get the icon of calc.exe and set that as the icon of notepad.exe I don't know if C# has any built in classes that address this, probably not because I have searched all day. In that case, I guess I could read calc.exe byte by byte, save the parts that describe the embedded icon, and write that to notepad.exe byte by byte in the correct places. Is anyone familiar with the structure of a windows EXE and how/where exactly the icon information is stored in the file Thanks in advance Cooool, that looks intuitive enough I'll give it a try when I ...Show All

  • SQL Server RS 2005 Email scheduling not working

    I'm trying to do my first ever scheduled report (with email delivery) To test the schedule I set its delivery to a be 5 mins in the future, clicked OK and waited. Nothing much happened (I didnt see anything happen anyway). The log file ReportServerWebApp__(date).log did not change, nor did ReportServer__(date).log I have the smtp server set to localhost, and nothing appeared in any of the smtp folders (eg \badmail) How can I troubleshoot this when I dont see any log messages or etc Thanks, JK ...Show All

  • Visual Basic Setting properties differently in child Class.

    How can i Set() properties differently in my base class. Cos i want to validate the values parsed in differently. I felt that overriding the Get() is not very good, its copy and paste. any better way to do this Ok. u may have remembered answering my past questions, I am doing a IP class. So, the base class is IPv4Base(Parent). Then the child classes are IPv4 & SubnetMask. So in my IPv4base class my properties FirstOct, SecOct, ... are Bytes, In the child class still bytes but i want the Set() to be different. I wanted to validate it differently. So i need to override it but by overidding it, it means i also repeat the code in the get(), not a very good practice is it Public Class IPv4Base Private _ ...Show All

  • Visual Studio 2008 (Pre-release) TabControl focus problems.

    I'm having a generally miserable time with focus issues. What I'd like to do: use a TabControl to provide an Mutiple-document interface (since WPF doesn't support MDI). The issue: my undo engine needs to switch windows in the TabControl in order to show the object affected by an undo or redo. But I can't figure out how to switch tabs without sending focus to the Header content of the TabItem, instead of leaving it in the Content. I coopted the BringIntoView()/RequestBringIntoViewEvent mechanism, which seemed reasonable, but may be the cause of the problem. But the behaviour is strange. In the code that follows, GetTabContainer() returns the TabItem that contains the target object. In this case e.TargetObject is actually a Scr ...Show All

  • Windows Forms How do you make a Favourites Menu

    hi, Iwas just wondering if anyone could tell me how to make a favourites menu from scratch and how to program it in C#. Thanks, Zulbaric If you are talking something abuot Faveourites like in Internet explorer i.e open Some website and add it to favourites. You have to place a button on your GUI which opens up a Windows similar to Internet explorer, with a Save button and a TextBox with Title of Favourite, Put a title for the favourite and internally save the path of opened file along with the title in some text file, xml file, Registry or application settings.... Then on the GUi create a menu which loads its item from those saved favourites and put their event handlers respectivley to open up thos ...Show All

  • SQL Server Extending BI studio

    Hi,   I need to add a custom menu option say under the Tools menu in the BI studio for SSIS projects. Is it possible to extend BU studio using Visual studio addins, or Visual Studio SDK (VSIP).    The Visual studio addin works fine; however I want my custom menu option to show up only when I have a SSIS project open so that I can perfom my custom step whenever the user selects the menu option Thanks, -Suri You can extend BIDS with standard Visual Studio 2005 add-ins, because it is Visual Studio 2005. If you look at the Help menu, About, you will see it is the full VS IDE. The "Installed Products" list just shows different items depending on if you have installed through SQL Ser ...Show All

  • Windows Forms custom shaped forms

    Hi I want to use an image as a mask to shape the forms. I have found some methods but they are not usable because they are slow. Does anyone know some faster methods Check out the property Form.TransparencyKey , you can use that to make skinnable forms. This property informs the form not to paint any colors that match the transparency key. Use your skin bitmap and set the key to a specific base color, then that color found on the form will not be drawn. ...Show All

  • SQL Server rank Ordering

    Hey guys, this is a repost of an old question, but with a different idea. I have created a rank measure to rank customers in terms of their sales. This has worked. Now, i have a reporting requirment, which says i must show YTD, MTD and Prior YTD figures in the one report, along with the customer rank. I have built the report with my time calculations as columns, and customers as rows. I have put sales amount and customer rank in the data section. Is there a way in the MDX Rank function to say Order it by the YTD Sales Amount value. and not the MTD value. At the moment, i cannot sort on anything. As if i choose YTD, it just sorts the headings and not the data. same if i say Sort the Customer based on the Sales Amount, it just do ...Show All

  • Visual C++ When "It just works!" doesn't. :(

    Hi, To test out "C++ Interop", I created a static library in VC++ 6.0: Here is the contents of the header file (staticLibrary.h): #ifndef STATICLIBTEST_H #define STATICLIBTEST_H #include <string> using std::string; int add352(int value); string sayHello(string name); #endif Here is the implementation (staticLibrary.cpp): #include "staticLibrary.h" int add352(int value) { return value + 352; } string sayHello(string name) { string s1("Hello, you are the greatest, "); return (s1 + name + "!\n"); } This code compiles fine in VC++ 6.0 and it produces an object called "staticLibrary.lib ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. SetChannelVolume

    I read in another post here that SetChannelVolume is not supported on Windows. Is this still the case with June SDK The method always returns S_OK. Sorry - we'll be sure to document this issue and make the API return an error. You might want to look into the IXACTCue::SetMatrixCoefficients call instead - perhaps it will do what you need. Dugan Porter - Game Audio Team - Microsoft This posting is provided "as is" with no warranties, and confers no rights ...Show All

  • Visual Studio 2008 (Pre-release) Change style/dependencyproperties on children of usercontrols.

    If i have a usercontrol that looks like this: <Canvas x:Class="MyNamespace.MyControl" xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x=" http://schemas.microsoft.com/winfx/2006/xaml " > <TextBlock x:Name="textblock" /> <Image x:Name="img" /> </Canvas> Is it possible to change the style of the textblock in a resourcedictionary like this: <ResourceDictionary xmlns:mns="clr-namespace:MyNamespace;assembly=MyAssembly" xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x=" http://schemas.microsoft.com/winfx/2006/xaml " > <Style x:Key="styleee ...Show All

  • Visual Studio Tools for Office Issue with MS Project localization.

    Hello! I am writing a little add-in for MS Project with C++/ATL and I can not resolve one issue. MS Project "Application" object has FilterEdit method which accepts lexical keywords for "Test" parameter. This is short piece from sdk: [code] Test Required String . The type of comparison made between FieldName and Value that acts as selection criteria for the filter. Can be one of the following comparison strings: Comparison String Description "equals" The value of FieldName equals Value . "does not equal" The value of FieldName does not equal Value . etc... [/code] But if I write code like applicationPtr->FilterEdit( ...Show All

  • Visual Basic ClickOnce doesnt work on vista

    Hello, I got Windows Vista Ultimate and developed a small winform application, when I click publish it doesnt work it says that I dont have frontpage extensions installed, but I dont know how to install them. Thanks you are welcome. is your IIS running http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/b0c14479-83e3-435d-a935-819fe396e7d2.mspx mfr=true ...Show All

  • Visual Studio Team System Already exisiting object

    If you drop an object from your project, e.g. a table, then import it as from a script, you won’t be able to build the database, because the project is mourning that the "Obejct already exists in the database" not matter what settings your use in the Build pane in the properties dialog. -Jens. --- http://www.slqserver2005.de --- Once we release the next CTP, this issue should be resolved. We initially saw this internally and have fixed this but I would like you to test this again against CTP 6 once it becomes availible . mairead PM, TS Data ...Show All

  • Visual C# Passing parameters in C#

    Hello Members, I am trying to call a sql function in C# ,it work fine when I call for SqlCommand cmd = new SqlCommand("SELECT dbo.Calc(1, 18, 4) as totalCost ",cnn); But when I try to so the same with calling parameters it doesn't show the result. e.g SqlCommand cmd = new SqlCommand("SELECT dbo.Calc(Par1,Par2,Par3) as totalCost ",cnn); Any answers Two options: 1.- SqlCommand cmd = new SqlCommand ( "SELECT dbo.Calc(" + par1 + "," + par2 + "," + par3 + ") AS TotalCost" , cnn); 2.- SqlCommand cmd = new SqlCommand ( "SELECT dbo.Calc(@par1, @par2, @par3) AS TotalCost" , cnn); cmd.Parameters.Add( "@par ...Show All

©2008 Software Development Network