Mano Hernandez's Q&A profile
Visual C# Desktop shining through my buttons during loading
What happens is that my form is nicely displayed with its background, and then the buttons on my form are drawn - but during the drawing of the buttons, the desktop shines right through my form's background image. Is there any way to prevent this from happening My buttons have a background color, but not a background image. Regards, Guido It's not. The background is black, both for the buttons and the form ...Show All
.NET Development SQL to retrievedata
Hey Guys: I have seen this done in a program and at one time i did it but not exactly get it right. I have two tables in my data base. The first is a table with the PubID and a number that corresponds with the second table with a list of titles. table1---is PubID----and number of title is 10----so when i enter the number 10 in the column i want the title to appear in column 3. PubID TitleNum Title 1411 10 ...Show All
Visual Studio 2008 (Pre-release) Hosting a Visual in a Grid
I want to take a ContainerVisual and display it in my WPF window. All of the Panel classes have a Children property, but the Children property is a UIElementCollection not a VisualCollection so doing something like ContainerVisual contVis = new ContainerVisual(); Grid grid = new Grid(); grid.Children.Add( contVis ); results in a compiler error. Is there some other way to go about this Note that the above example is somewhat contrived, I ac ...Show All
Windows Forms Combobox data retrieval errror
The problem is with retrieving the data saved through combobo I have combox which contains names of employees but i am saving the equivalent empid in my database by seting the comboBox DataSource is as ds.Tables["TableName"]; and DiplayMember as "EmpName ...Show All
Visual Studio Tools for Office List WordML (ilfo and ilvl) getting lost when calling get_xml()
We have the following WordML inside our document (as viewed through Word XML Toolbox): <w:p> <w:pPr> <w:pStyle w:val="Section" /> <w:listPr> &n ...Show All
SQL Server Determining the number of Active users logged into a SQL Server Database
How does one Determine the number of Active users logged into a SQL Server Database I want to use the info to control concurrent licensing for my Application This query will give you a count grouped by DB, you can also use sp_who or sp_who2 select db_name(dbid),count(*) from master..sysprocesses where spid > 49 --everyting below 50 is SQL Server itself group by db_name(dbid) Denis the SQL Me ...Show All
Visual Studio 2008 (Pre-release) Rendering text along an elliptic curve or circular arc
I can't seem to find any information on this anywhere: Is it possible to have a piece of text (TextBlock or Label) rendered along an elliptic path or circular arc Perhaps even a Bezier spline -Oluf Thanks. I thought I had seen something at PDC05, but I guess I'm hallucinating. ...Show All
Visual Studio Team System FXCop addresses Security vulnerabilities?
I'm new to FxCop. Does FXCop addresses the following list of vulnerabilities Buffer Overflow Detection Access Control Analysis Format String Issues Detection Dangerous Function/Method Calls Detection Thread Safety Race Conditions Detection Encryption and RNG Misuse Detection Input Validation Analysis Cross Site Scripting Detection SQL Injection Detection ...Show All
Visual FoxPro Remove file acces
Situation: A program written in FoxPro tries to find a file on a remote computer. It does find it. Then a new file as added to that folder on the server. The client is trying to find the new file, but an error "File access is denied" is generated. The same file is being read from the server without problem. Any ideas "Does't find it". In your original message error was "Access is denied". I'm confused. Newly cre ...Show All
Visual Basic Can this be done with VB?
I am new to VB and wanted to ask if this task can be completed using VB. I have an Excel spreadsheet. The spreadsheet has a colum of "part number" values located in cells D5 through D12. Is there a way for VB to look in cell D5, take it's current value, add the line of text "as part number 1", look at the value in cell 2, add the line of text "as part number 2", etc The results in notepad would look like: 1 as part number 1 2 a ...Show All
Visual Studio Team System Invalid Build Type
I have a problem running build types through the IDE. I created our Team projects and added build types for each through the wizard. One project has no problem running the build type. Most of the others state "BuildTypeName is not a valid build type". And the last project states I need "update Build Permissions". None of my permissions changed in between creating any of these project, so I am not not sure why I get that last error. As far as the ...Show All
Visual C# PDF Print / Print Setting
Hi, Is it possible to create two buttons (btn1 and btn2) in my winform so that when I press btn1: A print dialogue appears and allows me to change the print settinng. btn2: Print the document according to the print setting I set in btn1. I have taken a look at the PrintDialog class, with PrintDialog I need to use PrintDocument. But seems with PrintDocument, I need to play with the Graphics object and now I want to print PDFs.... Any tutorials/li ...Show All
SQL Server 2 minutes after one datetime vs. another datetime
when I run the query now using and calldatetime >= dateadd(minute,2, a.stop1) , I am getting for example: calltime time2 2006-02-23 15:45:20.000 1899-12-30 21:00:00.000 this doesn't seem to be working, I want all r ...Show All
Visual Studio 2008 (Pre-release) Slider with variable Thumb width
I'm trying to make a control similar to Slider, but with possibility to chage Width of Thumb, and with 2 values (for left and right ending of Thumb). ------------ --------|_______|----------- ^ ^ value1 value2 I tryed to derive my class from Slider, but I can't find the way to change Width of Thumb. Any ideas how can this be done rather than derive from Slider, you should use styling t ...Show All
Visual Studio 2008 (Pre-release) How get click event from button embedded in each item of ListView?
I have a ListView control with a DataTemplate for displaying some of the columns. Inside of one DataTemplate, I have a button. When this button is clicked, how do I get the click event in the main window C# code Will this event also give me the list view item that was clicked, or will I have to figure that out somehow The button has a name, but that's going to be the same for each row. Thanks for any help... ...Show All
