creaturita's Q&A profile
Visual Studio 2008 (Pre-release) how to do a TemplateBinding in code?
Just wondering, how would this part of a ControlTemplate look in c# code < Border BorderBrush = " {TemplateBinding Border.BorderBrush} " My guess would be to instanciate a TemplateBindingExtension and somehow attach it to the borderbrush of my ControlTemplate and the Border.BorderBrush, but how would this look like Thanks, Sam Imainge if you want to create make Button's ControlTemplate in code: ControlTemplate template = new ControlTemplate ( typeof ( Button )); template.VisualTree = borderFEF ; FrameworkElementFactory borderFEF = new FrameworkElementFactory ( typeof ( Border )); borderFEF.SetValue( Border .BorderBrushProperty, new TemplateBindingExtensio ...Show All
Windows Forms Why is a cell ALWAYS selected in my DataGridView
I just dont get this one. No matter what I do, whenever I load my form with a DataGridView, which has two DataGridViewComboBoxColumns inserted, the first cell is always selected by default. I tried setting the focus() for one of my buttons but that did not change anything. I even tried cycling through the selectedCells property of the DataGrid and setting the Selected property to false. NO WHERE in my code, as far as Im aware, do I tell the DataGrid to have a selected cell. Is there some special way I have to do this because of the ComboBoxes If someone can help and needs to see the code, let me know.. thanks... That did not work either. No matter what I do, the first ComboBox Cell of the first COmboboxcolu ...Show All
.NET Development Executing query with parameters in VB
I appologize in advance if this question seems simplistic, but I'm fairly new to the whole data access thing. I have an access database witha query that requires a text parameter. I put it as a query into the tabel adapter for the table it went with and it gave me the error "unable to parse query text." The query work just fine in access, but for some reason VB does not like the PARAMETERS section. I want a query that requires a paramater (the name of a person) and retireves an integer value for that person in the database so I can store it in a variable. Basically how do I do this: PARAMETERS [Person] Text ( 255 ); SELECT [Table].Value FROM [Table] WHERE [Table].Person=[Person]; In Visual Basic ...Show All
Visual Studio Need help on help
I just upgraded from VB2005 Express to VS2005 Pro & now I have a little problem. When working on a program in Express, I could put the cursor on a word & hit F1 & get help on that method or namespace. When I do it in VS Pro it always says Information Not Found. Does the Pro version include built-in help or do I have to install MSDN I am still learning VB so I rely on this help feature a lot. If anyone can help me get this working again I would really appreciate it. Thanks... You'll need to install "MSDN Library for Visual Studio 2005" for this feature to work. Careful, the regular MSDN subscription edition won't work. ...Show All
Windows Forms Graphic artifacts when horizontally scrolling DataGridView
Hi, I have a C# forms app I'm using to learn this .NET stuff. It has a main form and a custom form I made. The custom form has one data grid view control in it and I bind it to a DataSet object that I stuff full of test data. The data set is not bound to a table or database or anything its just some local memory I am manually stuffing with info. Everything works fine except I have noticed when there are many columns of data and I scroll the data grid view horizontally, the column headers are picking up some artifacts and sometimes the text is not rendering perfectly due to the scrolling. For example, I saw the letter 'n' in one of my headers was drawn about 1-1/2 times wider than normal such that the left 3/4 of the letter was drawn ...Show All
Visual C# Toolbars for Windows Taskbar in C#
Hi all. Does anyone know how to make a Toolbar that would be located at Windows Taskbar (like language bar etc) Is there any tools for this in .NET, or do i have to take a deep dive in Win API I'd like to do a simple battery meter or something like that. I could of course use NotifyButtons, but a larger toolbar object would be cool looking. Thanks for any advice, AK I tried to look from codeproject but I had no idea that I had to look for "Desk Band". So thank you very much for info :) ...Show All
Visual Basic How to query by 1 Button_event several TextBox's Text
Several TextBoxes (First, LastName, DOB etc)are bound to a Database . 1. How to query any of these TextBoxes with 1 Button The query for one of the TextBoxes: SELECT IDP, First, LastName, DOB, SocialSecurityNumber FROM Table12 WHERE (First = @TextBox1) 2. Furthermore, how would be a query look like if the user just type the first letter of the LastName Thats pretty easy, depending on the complexitiy you want to implement, I would suggest a stored procedure which will accept parameters. CREATE PROCEDURE SearchSomething ( @FirstName VARCHAR(50) = NULL, @Lastname ...Show All
Visual Studio Express Editions Visual Basic - MAPI
I am trying to use VB 6 to send emails using MAPI. I created a form and added the MAPI Active X controls then tried using the following code. With MAPISession1 .UserName = "kirkb" .Password = "" .SessionID = 0 .DownLoadMail = False .LogonUI = True .SignOn .NewSession = True End With and I am getting a "Runtime error 424 - object required" How do I solve this Barham, Check the spelling of you ...Show All
SQL Server Need help on a query
I join with 2 tables, one table (table_A) has 5 records and the other (table_B) has 7 records. 5 records in table_A match 5 records in table_B. There are 2 records in Table_B not in Table_A, How to write a query to get only the unmatched records out select s . EMPLID , s . EMPL_RCD , s . EFFDT , s . EFFSEQ , t . EMPLID , t . EMPL_RCD , t . EFFDT , t . EFFSEQ from table_A s right JOIN Table_B t on s . EMPLID = t . EMPLID and s . EMPL_RCD = t . EMPL_RCD and s . EFFDT = t . EFFDT this query give me all the rows from both table, but I only want the unmatched rows. Thanks in advance U will get unmatched rows from Table_B in this query. SELECT B.* ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Selling Games on Xbox Live Arcade
Hello, I am currently putting a team together to create new Xbox Live Arcade games. They will be using the XNA development tool and the projects will be financed by myself. How long will it be untill Indy developers can sell their games online in order to re-coup some of the money and produce additional games Any help is appreciated. Regards Ian Your first step is to get hooked up with a publisher that already has an agreement with Microsoft to publish Xbox-based games, or you can build your prototype game (if you haven't already) and contact people at arcade@microsoft.com . Do NOT attempt to contact them before you have something ready to demonstrate. The Xbox Live Arcade team does not function as an investor nor as a publisher. ...Show All
Visual C# Build .net 1.1 solution
I am trying to build a .net 1.1 solution using the command line only and not VS IDE. I have build box with only the .net 1.1 framework installed. How can I build from the command line Is there an equivalent of the VS .net 2003 command prompt that will recognize the "devenv" command when I try to use it. My Reason for building on a box without VS installed is to follow best practices so that the applicaion has no dependencies on VS IDE, as the production server will not have VS IDE. Is this possible with NAnt for a project that has multiple libraries in different locations. Does NAnt have an include command or do I have to build the libraries first I.E. build the dependancies then build the solution; rather than just addi ...Show All
Windows Forms lost disk
I work for a small business. We sent a server (2003 standard edition) to out Mexico facility and the disk was lost in transit. What are my options We have the CD key but no disk, how do we get a new one ...Show All
Commerce Server Feedback: reorder CatalogCreate.sql
Just a bit of feedback here. When i execute \Program Files\Microsoft Commerce Server 2007\CatalogCreate.sql it throws a bunch of warnings along the lines of "Cannot add rows to sysdepends for the current object becuase it depends on the missing object 'dbo.ctlg_GrantPermissionIfExists'. The object will still be created." When I check the db after the script has completed, the missing object is there, it just needs to be moved to an early position in the script so these warnings aren't thrown. Michael. Max, This was on creating a new DB from scratch. The only command executed before this was CREATE DATABASE XYZ_productcatalog; Should I execute CatalogDrop.sql on a blank DB Michael. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Recommended Graphics Format?
These are primarily questions for the XNA developers... 1) What is the recommended graphics format for textures, bitmapped fonts, etc. I'm currently using BMP files but most of the examples appear to use TGA . 2) Also, should I restrict my graphics files to widths and heights of powers of 2 (eg, 128x32, 64x64, etc.) Please be verbose. I would like to know *WHY* I should use one format over another, so please don't just respond with "bitmap" or "targa". Thanks! :) 1) I would recommend using anything other than BMP. Bitmaps are an uncompressed file type and that will bloat the size of your game project quickly. My personal choice is to use PNG files. They support transparency ...Show All
SQL Server change chart color
Hello, Is it possible to specify color in more detail in the switch statement not "yellow" or "red" but I want to determine the colors by "RGB-values"... hope everyone understands my problem regards, Rhapsy hello, thank you for your answers. they are both helpful and that exactly what i'm loking for ... thanks, rhapsy ...Show All
