tseiy's Q&A profile
Visual Studio 2008 (Pre-release) Please help with creating buttons!
I'm using Interactive Designer and need some help with the basic concept of making buttons. Also...I'm a designer (not a developer), so I need simple explanations and no XAML;) What I'm trying to do: Create a button with a blue background, white text, and an aqua highlight across the top. When clicked, the background turns yellow, the text turns black, and the aqua highlight stays the same. So...I can do everything mentioned above, except create the aqua background. Honestly, there seem to be a variety of ways to create buttons (Library > Button, draw a rectangle then Tools > Make Button, etc.) but I can't seem to find a way t ...Show All
Visual C++ Dual threaded bitmap creation
Hi there, I have a simple example below showing how I create a bitmap from a data array: void Form1::ImageUpD(array<double,2>^ image) { ImageBmp = gcnew Bitmap(image->GetLength(0),image->GetLength(1),PixelFormat::Format24bppRgb); BitmapData^ data = ImageBmp->LockBits(Drawing::Rectangle(0,0,image->GetLength(0),image->GetLength(1)),ImageLockMode::WriteOnly,PixelFormat::Format24bppRgb); unsigned char *bits = (unsigned char*)data->Scan0.ToPointer(); int bytesPerPixel = 3; // 3 bytes per pixel for 24 bpp rgb int val; for (int i = 0; i < data->Height; i++) { for (int j = 0; j < data->Width * bytesPerPixel; ...Show All
SQL Server Converting identity column to "not for replication"
Is there a good way in sql2k to change an identity column to "not for replication" without recreating the table and moving the data I'm thinking of setting syscolumns.colstat to (value) | 8, since that bit appears to be control "not for replication". But I've been a sql dba for 8 years and I can't remember when I've ever had to update a system table -- I'd rather not start now. Thanks, Mike I snagged the code portion quoted in the book from one of the replication stored procedures. It works only if the table on your subscriber is empty. In general you should not modify system table ...Show All
Visual Studio Team System Passing values from one web test to another
I realise that values can be passed from one WebTest to another using the Context. I have written a generic ValidationRule and I want people to be able to pass me an XPath to use as part iof the Validate evaluation. The XPath statement they are intertested in may be dynamic with parts of it changing based on test variables. For example, I could have a test that lets me buy from a shopping site and the item i buy is data driven. The test could be written to place the "item bought code" in a variable called "MyVar" in the test's Context. My generic validation rule knows nothing of this context variable of "MyVar" but does take an XPath. I ...Show All
Visual Basic Missing Smart Tag options
I am working with and new to Visual Studio 2005 Standard Edition and Visual Basic. I am reading a book titled "Introducing Visual Basic 2005 for Developers". In a section describing use of smart tags in developing a simple application, the book states a control's type can be changed using the smart tag. However, when I click on the smart tag for any of the controls, I am not given the option to change the type. Are some options only available in the Developer's Edition I am attempting to change a textbox to a label to prevent changes to data in that field (this follows the example in the book). Thanks for the help. ...Show All
Windows Forms Timer running in Taskbar project
I would like to create a little timer that sits in my taskbar and ticks away. I have an interface set up and working the way I want it to. The only thing left is to get the output to display in the taskbar, rather than on my form. Could anyone give me a shove in the direction that I need, please Any tips are appreciated. I suggest having a look at the NotifyIcon class ...Show All
Visual Studio 2008 (Pre-release) using OpacityMask with MediaElement
Hi when i try to use an OpacityMask with a Video its really slow and jerk I've tried using a VisualBrush (Visual = the MediaElement) in a Rectable with an OpacityMask and its slow too. I'm running a AMD 64 PC with 6600GT 128MB (Forceware 77.77 WHQL drivers) and 1GB RAM Any got any good hints :) Here's a snippet of the code < MediaElement HorizontalAlignment = " Left " VerticalAlignment = " Top " Height = " 240 " Width = " 320 " Opacity = " {Binding ElementName=alphaSilder, Path=Value} " Source = " d:/media/test.mpg " Name = " curMe " Stret ...Show All
Windows Forms ADO.Net Errors
I'm using the following code to load new users into the table with a stored procedure. When I click the button to add the user it chokes on the intNewNumber = Convert.ToInt32(cmd.ExecuteScalar()) line of code. I'm returning an identity column value back to my app from the following stored procedure. Could someone give me a push in the right dire ...Show All
Visual Studio Express Editions Opening Teacher Starter Kit for VB
I downloaded and am trying to run the Teacher Starter Kit for Visual Basic. When I try and open TeacherStarterKit(VB).vsi, it gives me this error: "One or more content items contained within the .vscontent file cannot be installed because the correct version of the content installer component cannot be found. Contact the author of the content file for information about which installers and versions are required." I have Visual Studio .NET 2003, and not Visual Studio Express. Could that be the problem Thank you, Jonathan I have the same problem. Im new, i just downloaded ...Show All
Visual Basic Filesystemaccessrule
I have a function which takes a selected object and returns the NTFS security rights of the object. I am returning the string value for the of filesystemrights.tostring to give me the friendly name for the acl. My Question is how do I return a friendly name for the inherited acls For example the function in my code returns: "Rule grants 268435456 (268435456) access to BUILTIN\Administrators inherited right, inheritance: ContainerInherit, ObjectInherit, propagation: InheritOnly Rule grants FullControl (2032127) access to BUILTIN\Administrators inherited right, inheritance: None, propagation: None Rule grants 268435456 (268435456) ...Show All
SQL Server Using MS Access 2003 Project with SQL Server 2005
I continue to receive an error that states "The version of Microsoft Access doesn't support design changes with the version of Microsoft SQL Server your Access project is connected to. See the Microsoft update website for the latest information." I'm using Access 2003 that I ran a database through the Upzinging Wizard with a copy of SQL Server 2005. I have searched the Office Update pages and can't locate anything that helps, although I'm sure I'm probably missing something. Any suggestions Thanks in advance, Mike Duke Bill, Mike , I have similar related problem. I am using MSSql Express 2005 (I uninstal ...Show All
SQL Server ReportViewer control
trying to build a test page with a single ReportViewer control < rsweb : ReportViewer ID ="ReportViewer1" ProcessingMode ="remote" runat ="server"> < ServerReport DisplayName ="VSTestReport" ReportPath ="MyReports/VSTestReport" ReportServerUrl ="http: //pugrs/reportserver"/> </ rsweb : ReportViewer > build fails with 401: Unauthorized. Not even sure where to begin troubleshooting this one. Any ideas Thanks! Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it ...Show All
Visual Basic Web Browser Object, i need help
i'm using a web browser obj (wbo) at my windows form. i need an item as textbox in this browser. how can i get a value at textbox in this html file. For example, there is a form in html and has a textbox. texbox has value as "1234" and name "dgr". how can i read this value at my windows application. i'll thank if u can write a sample code for this question. &n ...Show All
Visual C# buttons
how do i have it so a button when clicked goes to a website Hi, Do you mean mark as i declare If so: <datatype> <variablename>; eg int var = 0; myClass c = new myClass(); string myString = "Paul June A. Domag"; As you can see its pretty much similar to C++. cheers, Paul June A. Domag ...Show All
Visual Studio Start Page
Does anyone know if it is possible to refresh the start page Further, the Recent Projects list. I have written an add-in that allows a user to manage the list of recent projects(should of been in this version), but can not figure out how to make the start page refresh. Thanks, Brian If you mean that the start page loads a different RSS feed from the default one, then Yes :) In VS go to Tools.Options.Environment.Startup and then set the Start Page news channel to whatever RSS feed you want. Hope this helps. JP ...Show All
