Davidjr1's Q&A profile
Visual Studio 2008 (Pre-release) TabControl Two level
Hello all I have a TabControl with two levels, meaning some of the TabHeaders are in level one and some in level 2. The bottom level is closest to the content area. This is a default behavior. Now the default behavior also cause the upper level to switch places with the bottom level whenever an upper level tab header is selected. Tab 4 | Tab5 Tab1 | Tab 2 | Tab3* Tab 3 selected and when clicking on Tab 5 we get this: Tab1 | Tab 2 | Tab3 Tab 4 | Tab5* What I want is the upper level to stay upper and lower to stay lower, meaning each level keeps its initial state, like that: Tab 4 | Tab5* Tab1 | Tab 2 | Tab3 Is this possible Itzik here is the code from sdk for custom panel sa ...Show All
Visual Studio Team System Ruls breaking build
This is in reference to one of the existing threads http://www.gotdotnet.com/Community/MessageBoard/Thread.aspx id=327668 Custom rules breaking build Posted on: 09/08/2005 06:11:05 Hi Mike, If we have a script that figures out whether any rules were broken, though, one can not differentiate between the output log entries on the per-rule basis (well, its possible if one keeps information about each rule being used in the script). That is a bit inconvenient and breaks nice encapsulation. Am I wrong or missing something We are trying to make our continuous build fail on some warnings/critical warnings/errors of specific rules available with FXCop. Also, do you know if it ever will be ...Show All
Visual FoxPro my SQL passthrough problem
Good day to all, could i ask where i got wrong with this code , because when i run the .prg for this code, at first try it won't work, then the second time around it works, as if no error. Like when you open VFP, then at the command window you execute the do command, it won't work, but at the second or 3rd try it works. Please help...thanks in advance LOCAL lcConnect STORE 0 TO lcConnect STORE SQLCONNECT ('My SQL Server Connection','' ) TO lcConnect && to determine if u r connected to the proper server. IF lcConnect <= 0 && if you can't connect to the specified server then exit. = MESSAGEBOX ('Cannot make a connection to the server!', 16, 'SQL Connection Error') RELEASE lcConnec ...Show All
SQL Server Large number of rows issue
Hi , There is a table with the following structure __________________________________________________________________________________ Date-Time of Operation | Message | details | Reason | Username | IP | MAC-Address __________________________________________________________________________________ A user can fire query based on some condition on columns. The maximum no of rows that should be returned are 1 billion. By default the data returned to the view is sorted on Date-Time. Further user can sort the data in the view on Message, details , reason , username , IP , Mac-Address. Suppose i have a scenerio where the user first gets the 1 billion records, then some records are inserted in the database.Then user sort on IP colu ...Show All
Smart Device Development How to Prevent a Disabled Button From Asynchronously Invoking?
Hi all, In my application, i frequently have codes like this: CmdMyButton_Click(object sender, System.EventArgs e) { CmdMyButton.Enabled = false; DoProcessing(); CmdMyButton.Enabled = true; } What i want to achieve is, if i click on MyButton, it should be disabled (so that i can't click on it again) until processing is complete. But what actually happened is that, when i clicked on MyButton while it is disabled, the action of clicking on it seems to be "deferred" (or "queued") until after it is enabled again, as if i have clicked on it immediately upon it being re-enabled. It seems like while the button is disabled, it doesn't consume (and discard) the event of clicking, but rather, consume it only afte ...Show All
Visual Basic Catching and recovering from database exceptions
Is this a reasonable scheme for handling datbase exceptions when the program must keep running and must perform the update If not whats the recommended method Dim Done AS Boolean While Not Done Try updatedata Done=True Catch ex AS OdbcException logwriter(ex.ToString) Thread.Sleep(250) End Try "' Without the Finally you need to either code the connection close ' in all catch blocks or your app will likely ' handle connection close, and object(s) disposal" Or your app is exposed to unclosed connections and may have continued problems, basically the exception is not handled correctly. Rgds, Martin. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Matrix Interpolation and gameTime
I made a simple cube and created two translation matrices: start = Matrix .CreateTranslation(-20, 0, 0); finish = Matrix .CreateTranslation(20, 0, 0); Then, I figured I could create this simple animation using linear interpolation and the game time, by using the general formula inside a game component: effect.World = Matrix .Lerp(start, finish, (currentTime - startTime) / (endTime - startTime)); I tried all four permutations of updating the time (ElapsedGameTime in update/draw and ElapsedRealTime in update/draw), although I would think that updating in the draw method with ElapsedRealTime would provide the smoothest interpolation. The problem is that the animation is not completely smooth. It has some ...Show All
Visual Studio Team System Click Once how to not use Certificate and PFK
Hi , Im wanting to automate the publishing of one of our solutions. It state is requires a Certificate and PFK. I dont need one thru the IDE when I manually do a publish. How can I simulate that in the Build Type I tried by commenting out the SignFile Tasks, but that caused me problems when I tried to deploy it from the website, stating that the manifest was corrupt or missing keys. This is what I have in the Build Type proj file now: < MSBuild Condition = " '@(SolutionToBuild)'!='' " Projects = " $(SolutionRoot)\daily build\MARS_Platform\Tools\MarsServerAdmin\SysAdminTools.sln " Properties = " Configuration=%(ConfigurationToBuild.FlavorToBuild);Platform=%(ConfigurationToBuild.Platf ...Show All
Visual Studio Team System Can't Branch a large project
When I try to branch a folder in the source control explorer it gives me the dialog with "contacting server to perfrom branch..." for 30 to 60 minutes and then I get the message "TF30041: Team Foundation Server could not connect to the database." I thought maybe Sql server was timing out, so I set the remote query timeout to 0 for no timeout but that did not make any difference. This folder has 9 sub folders and close to 500 files total, all source and project files. I branched a couple of folders approx half this size and tho it took a very long time, it completed. I'm guessing something somewhere is timing out and giving up. Is there way around this problem The problem occurrs whe ...Show All
Visual Studio 2008 (Pre-release) Black Window on WPF RTM
I just came back from TechEd Europe and installed Fx 3.0 on my production machine where I never installed any beta release before. As I open a WPF application, the screen become black. The only way to stop this is to shut down the WPF application (XAMLpad or VS.NET or other) via RDP on another PC (killing the process). Furthermore if I open a terminal service window on the same local machine, I see the window flashing and the ystem become unstable. I read this post ( http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=226400&SiteID=1 ) but I could not find any help or registry hack to solve. OS: Win2K3 R2 (all updates) - US language M/B: Asus P5WD2 Premium CPU: Pentium D Graphic Card: Nvidia GeForce 6600 Any help for this T ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DDS : 360, PC
Will DDS files that are created for PC work with the 360 is there not some subtle difference between the two or is this something that will be patched up via the XNA runtimes on the 360 upon asset loading From what I've seen there's will be no problem with the same file being used for both PC and 360 games. The only changes you may have to make between the two projects is if you're using namespaces that don't exist on the 360 version of the .NET Compact Framework. ...Show All
.NET Development ReadOuterXml - Pretty Print Problem
Hi, I seem to have a problem wih ReadOuterXml, cause I need it to create a petty printed XML. The file is well-formatted and Valid. ************Snip*********************** Public Sub WriteXML( ByVal BoersenID As Integer , ByVal Boersenname As String ) Dim conn1 As SqlConnection = New SqlConnection() conn1.ConnectionString = "Data Source=localhost;Initial Catalog=openimmo;Integrated Security=True" Dim da As SqlDataAdapter = New SqlDataAdapter() Dim cmd As SqlCommand = New SqlCommand() cmd.CommandText = "Execute prcExportOpenImmo " & BoersenID cmd.CommandType = CommandType.Text cmd.Connection = conn1 conn1.Open() Dim xrdr As Xml.XmlReader = cmd ...Show All
Internet Explorer Development Has IE7 improved support for XSLT?
Has IE7 improved support for XSLT ...Show All
Windows Forms Type 'MailMessage' is not defined
Type 'MailMessage' is not defined in windows application i am getting the following error Type 'MailMessage' is not defined even if i declare Imports System Imports System.Web.Mail can any one hepl me plz ...Show All
Visual Basic Date time
I need to pull the filecreation date and have it in a format of mm-dd-yyyy. I can use creationtime to get mm/dd/yy hh:mm:ss and then a toShortDate to get mm/dd/yy How to replace the / with - Thanks! OK. Well the scope changed NOW instead of MM-dd-yyy they want yyyymmdd I tried to change this Dim mystr As String = fcd.ToString("MM-dd-yyyy") to Dim mystr As String = fcd.ToString("yyyymmdd") And it did not work corectly. ...Show All
