Kitsok's Q&A profile
Windows Forms ToolStripMenu
Hi, quick question: Is there a way to remove the image margin for ToolStripMenu items like you can with ContextMenu items Yeah, you can also use it's DropDown as a ToolStripDropDownMenu.. Dim tsi As New ToolStripMenuItem( "HELLO" ) Me .MenuStrip1.Items.Add(tsi) CType (tsi.DropDown, ToolStripDropDownMenu).ShowImageMargin = False tsi.DropDownItems.Add( "HELLO" ) This makes all child items (of "tsi") not have an image margin. ...Show All
Visual Studio Team System In a custom rule can you find out if a parameter passed was boxed?
Hi I've been trying to create a custom rule to detect whether parameters pased to a method have been boxed or not and I'm struggling to work out how to determine if a local was boxed. Essentially i need to determine if the parameter passed to a method is a boxed version of a local value type or if it really is an object type. Therefore the code: object o = new object; Method(o); should pass the rule while int a = 4; Method((object)a); should fail the rule. Does anyone know of a way to do this Thanks very much for any assistance Tollo Tollo, Sorry for the late reply. Unfortunately, what you trying to achieve does not have an ...Show All
SQL Server Problem in Mail Sending through Windows Application
Hi, I have made one SP(A) for mail sending which called within another SP(B). If i am executing that SP(B) in query analyzer then SP(A) ia also executed , while i am executing SP(B) through some WIndows Application although SP(A) is geeting allthe parameter but not executing. SP(B) is being used for inserting some values in a table.And i want to mail few of those inserted value to be mailed by SP(A). I have tried it by making "insert trigger " . But same thing when i executing SP(B) in Query analyzer the mail is going means SP(A) is running. But when i am inserting values through windows applicaton.Values are inserting but mail is not going. Thanks in advance. Sanjay Tiwari ...Show All
Gadgets Permissions in appdata\local\microsoft\windows sidebar
my gadget calls a bat file which in turn calls an exe. i get permission denied and the bat will not run when my gadget it located in 'C:\Users\%username%\AppData\Local\Microsoft\Windows Sidebar\Gadgets'. It however works perfectly when my gadget is placed in 'program files\windows sidebar\gadgets' directory. My account has full permissions to the folder in appdata and i can run the bat file manually, but the gadget will not allow it to run. I assume this is by design, but is there any way to bypass this Or a way to change the default path my gadget installs to (program files, instead of appdata) Thanks Sidebar runs in protected mode, so you're probably causing UAC to fire when it tries to run ...Show All
SQL Server To sum a field which already contains an aggregate function
Hi, I am using a "Previous" an aggregate function in Table Detail Section, i want to total that field at the end i.e in Table Footer. when i use "SUM" function, its says aggregate functions cannot be nested inside an aggregate function thanks in advance ...Show All
Visual C# creating an object associated to a form and implementing a collection of forms of the same type
Hi, 1/When we have an faccount form for example, but the account has an accountEntity object (unique). Do we declare the accountEntity as a property of the form faccount or are we supposed to do it the other way:accountEntity has a form property : faccount 2/ Another question pls: If the MDI allows us to show several account forms. how do we declare those accounts within the MDI so we can keep track of them and show them according the user's selection. Do we declare an accounts collection object within the MDI or an araylist of type faccount or how do we implement that exactly. Thank you Thanks a lot Michael . Can you give me a small implementation for those 2 cases. Or tell me if this is right: 1/ in the form class, do i do this: ...Show All
Visual Studio Express Editions Help listing price from ListBox into txtbox
I'm trying to figure out how to choose a item from the listbox and display the price in the textbox Thanks see i hv given the code for listbox items from database..try this.. Imports System.Data.OleDb Public Class Form1 Inherits System.Windows.Forms.Form # Region " Windows Form Designer generated code " Public Sub New () MyBase .New() 'This call is required by the Windows Form Designer. InitializeComponent() 'Add any initialization after the InitializeComponent() call End Sub 'Form overrides dispose to clean up the component list. Protected Overloads Overrides Sub Dispose( ByVal disposing As Boolean ) If ...Show All
SharePoint Products and Technologies Unrecognized tag prefix or device filter 'SharePoint'.
I have this erro: Error 3 Unrecognized tag prefix or device filter 'SharePoint'. C:\Projectos AS\Projectos 2005\DocumentPage\DocumentPage.aspx 13 53 C:\...\DocumentPage\ Can anybody help me Thank's! Hi, Can you describe the scenario in details, just an error doesn't give us anything to go on. ...Show All
Windows Live Developer Forums DEP blockin Live Messenger 8.1
Why does DEP keep block my Live Messenger how do i overcome this problem I'm having the same problem with all versions of msn. I upgraded to Flash 9,0,28,0 - no change. I tried the 'run as administrator' workaround mentioned above and the box is grayed out, so I cannot use this solution. I tried going into system>advanced>performance>settings>DEP and manually adding the msn executable to the allow list but vista tells me that this program must be run with DEP enabled. Running vista home premium. I'm sorry, but this is just funny. Why would microsoft release vista when its own programs don't work on it. This is a clean install too - straight out of the box. ...Show All
Windows Forms Bind datagridview to generic list?
Hello, I want to create a gridview that is bound to the object where I have the insert,update,delete and select methods. but I havent find a way to do it. public class Participante { #region Constructor public Participante() { this ._objCiudad = new Ciudad (); } #endregion #region Declaracion de variables private string _strIdentificacion; private string _strNombre; private string _strdireccion; private string _strTelefono; private string _strCelular; private string _strEmail; private Ciudad _objCiudad; private string _strDireccionEnvio; private string _strTrato; private int _idCiudad; private int _idDepartamento; ...Show All
Visual Studio Controlling what is installed using Tools.InstallCommunityControls
I have been struggling with the VS toolbox now for quite some time whitout really finding any solution. This is what I want to do: Create two tabs in the toolbox Add selected controls to the tabs Exclude controls that are base classes. I know how to create tabs and got it working using the ToolboxTabs.Add api. But then I have found that adding individual managed controls using the ToolboxTab.Add(string, data, format) api has been deprecated in favour of the InstallCommunityControls command. With the InstallCommunityControls, I can not find any support for specifying what classes in an assembly should appear in the toolbox and on which tab. Is it possible to control this at all using this command Plan B is to have a ...Show All
Visual Studio Express Editions What is the Best Method?
What is the best method to get file names from a directory in order to rename them ahh....thanks Renee!! Okay so having spent some time trying some different methods or techinques I am not sure what I should do. I was sure that I could use a If InStr method in order to read the filenames in order to stop the renaming of the whole file and just rename the filename UPTO an @ symbol or even "."...but alas no avail. So my question is how do you read an array, 1 file at a time in order to stop the renaming of a file at a specific point. I am not even sure how to formulate that question in the HOW TO: part of the MSDN. When I tried the If InStr (TheFiles, "@") > 0 t ...Show All
Visual Studio 2008 (Pre-release) Freezable changes in June CTP
In the June CTP, what became of FreezableCollection.SetFreezableContextCore(bool) and Freezable.SetFreezableContext() These methods are no longer available, and I can't find anything on this topic. Have they been replaced with something new, or removed completely Thanks in advance. I think I know what's causing your problems now, and interestingly enough, it doesn't seem to have anything to do with the SetFreezableContextCore()... things. The issue has to do with the default value that is being returned for the TriggerCollection. The reason why you're getting the error message "Cannot add element to 'Triggers'; the property is null" is because the property metadata for that trigger collection is by default returning n ...Show All
Visual C++ PLEASE SOMEONE TELL ME HOW TO GET THIS TO WORK
This is a program for class that needs to have type string for the item number and description, and type int for item quantity, and price. I need to multiply PartPrice * PartQuantity giving "Total".......i can not get type int to work and have no idea what is wrong i need to have the programs separated as is in a Invoice.cpp and a InvoiceTest1.cpp. so far i have: ( Invoice.cpp ) #include "stdafx.h" #include <iostream> using std::cout; using std::endl; #include <string> using std::string; class Invoice { public: Invoice( string name, int amount ) { setPartNumber( name ); setPartDescription( name ); setPartQuantity( amount ); setPartPrice( amount ); } void setPartNumber ...Show All
Visual Studio 2008 (Pre-release) How to desing data manipulation services?
My question is not a new one. This problem appeared long ago about web services. Assume, that I have a WCF service to manipulate some data. I have the data layer as well, and a business logic layer with huge number of business objects in separated assembly. The business objects know some logic, so they have lot of methods impelmented about validation, manipulation and so on. I want to share these business objects with the clients allowing them to validate user input. I use the WCF service as a facade layer therefore the interface methods has the shared business objects as parameters or return values. I can use the business objects both at server and client side by adding a reference. When I want the client proxy to be generated the svcuti ...Show All
