Fwank79's Q&A profile
Visual Studio Express Editions display data from sql in messagebox
hi,got a question regarding the messagebox what i'm doing currently is displaying data from a table in a listbox using data binding source and adapter what i want to do next is to enable myself to select a particular data from the listbox,press another button to view the rest of the info from database where the attribute = selected value in a messagebox i'll give an illustration if my explanation isnt clear.i have a listbox which displays only car number plates,and i want to be able to select a particular number plate,click on another button which opens up a messagebox that displays the rest of the details of the owner of that selected license plate number is it possible to do this The Exec ...Show All
SQL Server NEED HELP for GRANT rights to views?
I want to grant rights (delete, select...) to all my views. the statement is eg.: grant delete on view1 to public I have more than 2000 views. Therefore I do not want to use the statement 2000 times. Is there a possibility to grant rights to all or a part of my views with one statement. thanks for help Elmar Hello Mr Davison thank you for your message. It was very helpfull. I have done this in a loop and have the following problem: set ANSI_NULLS ON set QUOTED_IDENTIFIER ON GO ALTER PROCEDURE [dbo] . [test] AS declare @sichtname char ( 60 ) declare cursor_sichten cursor for select name from sys.views set @sichtname = '' open cursor_sichten ...Show All
Game Technologies: DirectX, XNA, XACT, etc. End users shouldn't have to rewrite XNA math functions in order to improve performance.
The overhead of passing a 64 byte Matrix by value is significant. Most especially when you are comparing two matrices for equivalency (==), or performing a Vector*Matrix multiplication (Vector3.Transform(Matrix)). The following matrix comparison function performs 5-10 times better than your built in == comparison. If the matrices are equal, then it is about 5 times faster. If they are unequal then it fails fast, and is about 10 times faster. public static bool Equals(ref Matrix a, ref Matrix b) { // i check the diagonal first for quick fails return a.M11 == b.M11 && a.M22 == b.M22 && a.M33 == b.M33 && a.M44 == b.M44 && a.M12 == b.M12 && a.M13 == b.M13 && a.M1 ...Show All
Windows Forms Threading and NewRow
Hi there Just wanted to get something straight here. With all the talk of not accessing forms components from threads outside the one that created the component, I was wondering if its OK to create a new table row using NewRow or NewXYZRow (the strongly typed version) from another thread and then add it to the table with either the main IF thread or another thread. The table is hooked to a DataGridView so I'm not sure if that means its bad voodoo to do the different thread thing Just to make sure I don't confuse anyone, I'm not talking about multiple thread access to the table at the same time, I just have a thread that recieves info off a TCP port and want to create a new row, then pass the new row to the main thread using Be ...Show All
Visual Studio Brace Matching and User Types color in VC++
The new Fonts and Colors settings* in the code window in VS are great! For example red text for strings and a blueish color for User Types. (Brace Matching is invaluable!) But only some of the settings seems to apply to C++: User Types remains black whatever color I choose and Brace Matching won't work. * Tools/Options/Environment/Fonts and Colors/(Text Editor) I have the same problem. I'm using vc++ ee. And syntax coloring for user types dosn't work. You would think that: class A {}; //... A a; would make A color you've chosen, but no. It’s treated as normal text. In vc# ee it's working as it should but not in vc++ :/ . It's ignored no metter if you restart IDE or not :(. ...Show All
Visual Studio Team System Unable to connect to Team Foundation Server
I seem to be having an intermittent issue connecting to Team Foundation Server. At any one time, I may have a few systems that cannot connect, but others that connect ok. The error I see in Visual Studio is "TF31002: Unable to connect to this Team Foundation Server Url: http://vstfs:8080 ." The server is online. My password is not expired or incorrect. I tried connecting to http://vstfs:8080/services/v1.0/ServerStatus.asmx as I saw suggested on another topic related to this. On one of my systems this works, but on the other one I get the following response. The page cannot be displayed The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties ...Show All
SQL Server Leeson 8
I went over lesson 8 of sql express resourses with no problem, but when I copy it to online I get problem. Meaning it failed to add IP address to my database. Any help, please. My server is confiqured to accept asp files. Thanks Lesson 8: Connecting your Web Application to SQL Server 2005 Express Edition Lesson Hi Bonni, I'm guessing you're talking about the lessons on LearnVisualStuio.Net, these are not produced by Microsoft. I'd suggest that you ask this question on the forums at http://www.asp.net , which are focused on VWD and web development. I know the folks at LearnVisualStudio.net also have forums to help people with the lessons, but the forums require a paid membership. Mike ...Show All
Visual C# No Overload error help
I'm creating a TreeView at runtime. This tree loads, the app populates it from a database and the child nodes are updated correctly. However, I'm currently getting this error after adding a line of code that would handle any node selection: Error 1 No overload for 'OnTreeView_AfterSelect' matches delegate 'System.EventHandler' I've created an instance of the TreeView at the class level and added code to create it and add it to the form at run time. The error occurs when the build gets to the highlighted line in the code below. I have read thru the MS online help concerning this and I'm very confused because according to all of the samples I've come across, I'm doing everything right. I know there must be something I've missed. ...Show All
Windows Search Technologies Protocol Handler SDK? Need searchapi.h, srchprth.idl files.
Hi, All. I'm hoping someone can point me in the right direction. I have been doing research and I can't seem to find searchapi.h , srchprth.idl anywhere. I have installed the Windows Server 2001 SP1 SDK, Office 2007 SharePoint Server SDK and Windows Sharepoint Services V3 SDK, none of which have the required files. Unless I'm missing something, this shouldn't be this difficult. I've read through the limited devguide ( http://addins.msn.com/devguide.aspx#Interfaces ) but the SDK offered there is only the WDS Query API. Can someone please help Stephane Hello Stephane, After searhing through the Windows SDK a bit I found that the header and IDL files, searchapi.h and searchapi.id ...Show All
Visual Studio 2008 (Pre-release) Persisting XML data instead of binary from windows work flow foundation
I am using windows work flow foundation for my application. i want to store user state date in xml format as the default will be stored in binary. could any one help me to store state in xml instead of binary ...Show All
SQL Server Activation proc failed
Good day, I have send a msg successful,but the proc failed. I altered the proc to correct the problem in the proc. The msg are still in the queue. Is there a manual way to excute the proc again to process the msg in the q or do I wait for service broker to do it after a retry time (self recover) thank you in advance. If you are doing that within a transaction scope, the transaction should rollback and the message should be put back into the queue. ...Show All
Windows Forms Checkbox size
How do I change the size of a checkbox ( or radio button) I can make the text larger. I can make the whole control larger. My users need a BIG box to click on with a BIG tick in it. Simple answers please, I'm still learning ! Friend Class MyRadioButton Inherits RadioButton ' Methods Public Sub New() End Sub Protected Overrides Sub OnPaint( ByVal pevent As PaintEventArgs) If Me .AutoSize Then MyBase .OnPaint(pevent) Else pevent.Graphics.FillRectangle( New SolidBrush( Me .BackColor), MyBase .ClientRectangle) Dim contentHeight As Integer = ( MyBase .Height - ( MyBase .Padding.Top + MyBase .Padding.Bottom)) Dim radi ...Show All
SQL Server Comparison of different approaches in reporting OLAP data
I'm building reports over my OLAP datasource right now. Is there any good comparison charts between different approaches The following are the problems that I get with each approach. Reporting Services - I can't put data and chart into one page. I want something like the Page grouping found in Excel Pivot Table. (P.S. I've successfully put data and chart into one page by using an outer matrix to contain the data matrix and chart. However, page formating and positioning is extremely difficult in this way.) Excel Pivot Table - I can't put different aggregation in the same data area. I want to have a count and count percentage in the adjacent cell. This can be done in Reporting Services. XMLA - I haven't tried it yet as much more coding is ne ...Show All
Visual Studio Landscape print quality poor
I'm using Local processing mode on a Winforms app, and have a report that I'm printing in landscape (width 11in, height 8.5in). I am printing this report using the ReportViewer (not printing directly to the printer in code). When the report shows up in ReportViewer, it looks fine. If I adjust the report to print in portrait (set in the rdlc), and print the report, the fonts look fine. However, when I print this report in landscape (set in the rdlc), the font rendering is poor, w/ jagged edges on the fonts. I've reduced the report just down to a simple header w/ no other content and tried different fonts, sizes, and margins, but the quality is consistently poor in landscape mode. I've tried printing the same text in landscape using Word ...Show All
Visual Studio Express Editions Printing
I have made a web browser and I am using it right now. I have 5 problems. 1. Right now on this posting thing I can't right-click the text-box and paste code. HOW CAN I MAKE ME BE ABLE TO PASTE, CUT, AND COPY 2. I wnat to be able to print my webpage by pressing a button here's my code so far: PrintDialog1.ShowDialog() If Windows.Forms.DialogResult.Ok Then PrintDocument1.Print() END IF 3. I have a menu strip on the top of my form. one of the thing's says BOOKMARKS. I need some code to add a webpage to bookmarks and make code to get us to the web site when I click on it. 4. I have a progress bar and I need it to react to how muc ...Show All
