Alex-MyRpg's Q&A profile
Internet Explorer Development Message asking if allow or block IE7 to use clipboard
A message appears asking if I want to allow or block clipboard. How can this message be disabled and always allow use of clipboard Hi Deepak I have the same problem with my main site, I don't know what it cause it but here is a work around: Go to Tools : Internet Options : Security : Custom level : Scripting : Allow programmatic clipboard access from Prompt to Enable. Too bad it is not enable by default. Cheers, Alex ...Show All
Visual Studio 2008 (Pre-release) Accessing events of items rendered by HierarchicalDataTemplate?
I'm using HierarchicalDataTemplates to render a data structure into a TreeView: <HierarchicalDataTemplate DataType="{x:Type CS:ShaimContactGroup}" ItemsSource="{Binding Path=Contacts, Converter={StaticResource OfflineItems}}"> <TextBlock Style="{DynamicResource ContactListGroupName}" Text="{Binding Converter={StaticResource GroupNamer}}" /> </HierarchicalDataTemplate> I know that the rendered items will be TreeViewItems since the objects are always being inserted into a TreeView object. My question: I want to capture TreeViewItem events like Collapsed and Expanded. How can I accomplish this That works great to get the event ...Show All
Visual Studio PLK
I requested a PLK and got one using an old package guid. I really need to have the PLK regenerated for my new package, but I cannot do that on the VSIP site. I tried copying the original guid over into the new package, but the Load key fails with "invalid key authentication" . What do I need to do to get this working i will try the /log option and let you know. also wouldn't fusion report a problem w/o /novsip switch as well. all my referenced assemblies are in the gac. i will re-look at allens suggestions and let you know ...Show All
Windows Forms Sql Native Client as Prerequisite
Hi, I am about to deploy (clickonce) an application that makes use of the SQL Native Client to connect to SQL Server 2005 Express. What are my options here, is prerequisites the only (best) way to make sure the driver gets installed properly and prior to the application If so is the case, is there any material somewhere to read about on how to create a prereq. for SQL Native Client Kind Regards, Robert I don't know the particulars (like command line, exit codes, how to detect if it's installed already)... But, I do have a tool you can use to create the package called Bootstrapper Manifest Generator at: http://www.gotdotnet.com/workspaces/workspace.aspx id=ddb4f08c-7d7c-4f44-a009-ea19fc812545 ...Show All
Windows Forms Clickonce updates
Hello, I wonder if anyone would be kind enough to help me I have published my application with Clickonce and specified an update location. How do I save or publish the update files necessary for updating the application after I have mad changes to it Is the .NET 2 SDK required for this Many thanks CPS Publish it again with an updated publish version :) http://msdn2.microsoft.com/en-us/library/e6y518tc.aspx Best regards, Johan Stenberg ...Show All
Visual Basic ImageLooper Control
I am working on a VB tutorial, and at the same time trying to create my first control called ImageLooper. This is pretty straightforward, a control box with a picturebox1 inside, a left arrow button and a right arrow button (button1 and button1 respectively). The idea is, with each click in either direction, the next or previous in line image will display, depending on which arrow is clicked. Each button works individually ok, but when I switch from the left arrow button to the right or visa versa, instead of going to the next image down or up, on the first click, it takes one step in the opposite direction, displays that (wrong) image, then, with subsequent clicks, starts moving through the images correctly. The language is below: ...Show All
SQL Server Show all days
I am pretty much brand new to reporting services so I apologize for any simple questions I may ask. I have created a call report that shows data broken down by day and grouped by week. Everything works great. However, if there is no data on a certain day is does not show me that day on the report. Is there a way I can make it display the day even if there is not data for that day and just give me 0 values Or do I need to modify my query Thanks in advance. The query should return the complete set that you would like to see. You can perform this with a date table or numbers table and a left outer join. cheers, Andrew ...Show All
Visual C# What's with the ? after a type identifier?
I'm reading the "Breaking Changes" doc and I am seeing examples like this: // [C#] int x = null; int y = 10; int z = 10; // False; x is boxed as null, null is always false. bool b1 = (x is int ); There is also this description of a change: The C# compiler no longer allows the use of a bool instance in if , while , or for structures. This change avoids accidental use of two-valued logic ( true / false ) for a three-valued variable. So, the questions are: What does the after the int or bool statement mean What does it do Why would I want to use it Hi, the after an value datatype is an language extension of the .Net Framework 2.0 and you can ...Show All
SQL Server Database connection problem
Hi I have installed a named instance of SQL Server 2005 Express (.\SQLEXPRESS) and successfully restored a database that is running on SQL 2000 on another machine. I am trying to connect via ADO to the database and have used a DSNless connection and a system DSN to connect to the database and get the error "Data source name not found and no default driver specified". However, when testing the system DSN connection, the test completes successfully. The SQL express service is running under the Local System account, SQL Express is configured to use Windows authentication and the user connecting to the database is a local administrator. Any assistance would be appreciated. Alex Mike, Yes you are ...Show All
Visual C# How can I define Global variables, functions in VC#?
I have used VB.net for a while & try to use VC# to improve my skills. When I open 2 forms (2 .cs) in VC#, I try to use a variable from the first (ie: LogIn panel to get Name) to the 2nd (Main panel, to verify that valid user) ... and I can not find the way how to do that Also I will use some global functions (ie: Header.h that all *.cs can use it) ... and the same problem happen to me Thanks for any help Hi Frank, Thanks it works. ...Show All
Software Development for Windows Vista Detect when being run as admin via Visual Basic code?
Does anyone have Visual Basic sample code to detect when an EXE file is being "Run As Administator" or in XP compatibility mode And is there a way to determine if the elevated level is due to "Installer Detection", due to the user right-clicking and choosing "Run as admin", or due to the EXE's preference or manifest saying so Thanks! Nevermind, I think I found what I needed here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=805394&SiteID=1 ...Show All
Visual Studio 2008 (Pre-release) XAML pad download
I am interested to download the XAML pad to try out the technology... so may I know where to download it since i cant found any download sites from search engines... Moreover, what are the basic requirements to run XAML pad I have installed .Net framework 3.0, is that sufficient enough to run XAML pad thankyou Hi CosmicX, Lester has posted a version of Xaml Pad on his blog. The download is available from this post: http://blogs.msdn.com/llobo/archive/2006/12/30/xamlpadx-v2.aspx I believe having the .NET framework is all you need. Please correct me if I'm wrong (I'm a little fuzzy as it has been a while since I've used the XamlPad). If this answers your question, please select "Mark as Answer", otherwise, please p ...Show All
.NET Development Debugging a windows service in VS 2005
HI All, I am having problems when debugging a windows in VS 2005 . Basically i created a simple widows service by adding a timer control to the service designer setting enabled to true and interval to 10 secs. On the timer tick event it just intializes variables etc. Added an installer , and altered the settings of the ServiceProcessInstaller1 to localsytem. Complied the .vbproj and through the VS 2005 Command prompt inserting the command installutil "path of windows service.exe" to install the service. Started the service from the server explorer and placed a breakpoint at the the timer1_tick event. The problem is that the event is never triggered. I also created a windows service in VS 2003 and all worked fi ...Show All
SQL Server The data types varchar and uniqueidentifier are incompatible in the add operator.
hi, i want to know how to do that: table: costtypes fields : typecode values: amount, vat, duty, table bills: fields: billid, costtype, amount value bi1 amount 1000 bi1 vat 10 bi2 amount 200 i need to create a view that will display amount, vat, duty as fields. note that these are values in the table. so that i will have billid amount vat duty bi1 ...Show All
Windows Forms Please help to convert
Help me please!!! My name Andre, I am from Ukraine. I have a grand problem. How I can convert DataGridView*** ell (for example DataGridViewComboBoxCell ) to Control class but NOT use dataGridView.EditingControlShowing event I have: dataGridView1.Rows[0].Cells[0] - DataGridViewComboBoxCell How to: dataGridView1.Rows[0].Cells[0] - Control Give me please example! Sorry for my English. If you want to do the convertion, you have to handle the EditingControlShowing event. The DataGridViewCell is NOT inherited from Control class,it inherited from DataGridViewElement class, and the DataGridViewElement class is inherited from Object class ,so you cannot convert it to control type. ...Show All
