StuartGM's Q&A profile
Visual C# this.close() confusion - I may be doing something wrong?
I've been doing this for awhile now and it has occurred to me that I should not be In my try/catch statements, if the exception is serious, I've been displaying the message to the user then the catch issues "this.close();" to shut the app down. Is there another (safer ) way of stopping the app if a severe exception occurs for example: try { sw_dohDeathWriter = new StreamWriter ( m_strOutputPath , true ); } catch ( IOException iox ) { MessageBox . Show ( "End Of File reached. " + "\nRecords Processed...: \n\n" + iox . Message , "File Conversion Error" , MessageBoxButtons . OK , MessageBoxIcon . ...Show All
SQL Server Database Attachment Security!
Hello I'm using sql server 2005 express edition. I had so security problems that i got helps from this forum. Now i have another one : In my system i'm using a database with sa password, it means to login and work with database structure and data user should enter sa password. But when i deAttach db and transfer it to another computer, I can easily attach db to customers sql server without knowing sa password. I want to say : Everybody can attach my db to their system without knowing sa password and without need to create user, I need security in customer side not at mine. Please help me what's wrong I know there is a solution that i don't know! Thank you for helping me. Hello i confu ...Show All
Visual C# VB to VC# translation
the code in VB AddHandler wb.DocumentCompleted, AddressOf WebBrowser1_DocumentCompleted what's the equivalent in VC# this .wb.DocumentCompleted += new System.Windows.Forms. WebBrowserDocumentCompletedEventHandler ( this .wb_DocumentCompleted); this sintax is by default. You can also use something like this: this .webBrowser.DocumentCompleted += new System. EventHandler< WebBrowserDocumentCompletedEventArgs > ( this .webBrowser_DocumentCompleted); ...Show All
Visual C# how to delete a row in both listbox and database
Hi every body I have a table in sql server2000 database with 2 field table1(id integer primary key, name char(10)); then I load this table into dataset and show it by a listbox ( the list box has only field " name" ) My problem now that I dont know how to delete a record in database when I click a row in my listbox and click button "Delete"; Could you give me an advice in this problem thank you very much. DongMT Thank Shivam I know about ADO.net but it is not my problem my problem is how to delete a record in databse with a list box ( not contain key field) and a Delete button thank for reply ...Show All
Audio and Video Development How clockDivisor works?
Hi, Can anyone explain how clockDivisor works in HDiSim Frankly speaking I cannot catch the idea :) Simple sample below is to display "OK" on the screen after 1s. timeBase is 60fps, clockDivisor is 120. When "OK" should appear After 1s, after 2s, after 5s... And why Thanks in advance < head > < timing clock =" page " clockDivisor =" 120 "> < cue begin =" 1s " select =" id('ok') " dur =" 5s "> < set style:visibility =" visible "/> </ cue > </ timing > < styling /> </ head > < body style:font =" file:///dvddisc/ADV_OBJ/font.ttf " > < p id =" ...Show All
SQL Server dimension design
In my telco cube, I want to analyze usage. Eg how much sms's a subscriber has sent. The fact table is completely denormalized and has lots of columns with different types of usage. For example, following columns occur: MO_VOI_PEAK MO_VOI_OFFPEAK MO_VOI_WEEK MO_VOI_WEEKEND Now the sum of these fields overlap. Evenings during the week are also offpeak... This is only an example. Different categories occur for different products, like voice, sms, mms and so on. And not all categories apply to all products. Eg, mms does not have the peak and offpeak distinction. Is it possible to put this into one dimension, without aggregating double I have already normalised the fact table, meaning tha ...Show All
SQL Server SQL server 2005 express and MS Project 2003 server
Does anyone know how to install MS Project 2003 along with SQL Express 2005. Looking at the Req ( http://www.microsoft.com/office/project/prodinfo/serverreq.mspx ) for project server I do not think that it will work with Express, You will need SQL Server analysis services for some of the functions, and from memory you might also need the full text options. You really need to talk to the Project Server guys about what you are tring to do as it looks like the functions that are in Project Server and SQL Express do not match up. Also on the Min Req SQL Express or for that fact the older MSDE are not listed. ...Show All
Visual Studio Team System Delete label by Id, TFS API
Hi there. Is there a way to delete a Label or find a Label by LabelId The ways I found they all require the label Name and Scope --> VersionControlServer versionControl = tfsServerConnection.VersionControl; LabelResult [] results = versionControl.DeleteLabel(labelName, labelScope); or labelList.AddRange(versionControl.QueryLabels( null , null , null , false , item.ServerItem, VersionSpec .Latest)); But I found my self in a situation where I only have the LabelId or The ChangeSetNumber for that label. Thans! Alan D. Scheinkman Do you mean that VersionControlLabel LabelId Property is useless The issue was that VersionControlServer.DeleteLabel expects labelName and label ...Show All
SQL Server Regular Expressions in SQL 2005 using C#
Hi all, i wrote a little function that is basically supposed to give me a match of a regular expression in C#. i tested it out in VS05 and it seems to work fine. It hits the fan when i try it on SQL Query analyzer once deployed. Anyone have any idea why here is the C# class that I deploy to a db using VS05. using System; using System.Data; using System.Data.SqlClient; using System.Data.SqlTypes; using Microsoft.SqlServer.Server; using System.Text.RegularExpressions; public partial class RegExTest { [Microsoft.SqlServer.Server. SqlFunction (IsDeterministic = true , IsPrecise = true )] public static string RegExMatch( string pattern, string matchString) { Regex r1 = ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Xbox live vision libraries
i was reading on the gesturetek website that they are releasing the libraries for the xbox live vision camera to registered xdk developers. will they release it to members of the xna creators club too, or is it just for the big shot developers i would be really interested in making a game using the camera. Access to xbox live vision camera has been available in the XDK since August. Wouldn't be surprised if access was already available for it, but they're probably waiting until there are drivers for Windows before they release given most people here will be beta testing on Windows over their Xbox360 itself for a while. ...Show All
.NET Development .NET encourages poor coding?
The more I look at .NET error handling, and how to deal with it, the more frustrating it gets. Take this class for example. It has a single boolean property. You have to know on which side of the call an error will be raised… by the caller or the callee… well here’s a prime example. Say you have to read data from somewhere like a text file and you cannot ensure the format of the data is proper. Well, you cannot depend on a property to check that data for you if you strongly type the property. Read the orange comment to see what I mean, and please let me know how you deal with this situation since to me it appears to require horrible program design. Public Class ...Show All
SQL Server Unhandled Exception
After I installed Sql Sever 2005 and open SQL Server Management Studio, I get this error just after connecting to any server (DB / AS / IS).. Also, during the installationm, I had ignored an error that was raised while SSIS was being configured. The error said, that thr is already a 32 bit registry on the target Com + Application. You must remove the registry from that app. I have done the installation of SS2005 X64 edition. Attaching the exception :- See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.TypeLoadException: Method 'GetMenuItems' in type 'Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.Default ...Show All
Smart Device Development Change font in ListBox
I want to have different style of font in ListBox like italic, bold and normal. How do I do that in .net CF Try looking at the MSDN docs for Listbox. The font property can be found here: http://msdn2.microsoft.com/en-us/library/system.windows.forms.listbox.font.aspx You can use this with the same code as above except with a listbox. Also if you press F1 while you are in Visual Studio a world of knowledge will appear ...Show All
Visual Basic time and date
Thanks for putting up with my questions. Does anyone know how to access the computer's date and time so that I can assign it to a variable I'm not sure how to do them individually but Dim MyDate as Date = Date.Now this will assign the current date and Time to MyDate. hope this helps tattoo ...Show All
Visual Studio Properties window in Visual Studio for long string domain properties
How can I do for a domain property that I need a big description with tabs and line returns =========================================================== For example on dslDefinition window properties -> Documentation->Notes. =========================================================== Is it possible this behavior for a domain property on a Domain class Hi David, You can find in this thread http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=196030&SiteID=1 how you can specify a 'custom' editor for a domain property. Fortunately there are a number of predefined editors: http://msdn2.microsoft.com/en-us/library/bfc7teys.aspx For your domain property you can use the MultilineStringEditor. On your d ...Show All
