Harald Köstinger's Q&A profile
Visual C++ Property Overloading
I want to overload a property so that its type can be either 'ProgressBar' or 'ToolStripProgressBar' is there a way I can do this well I think it would be nice if the toolstrip progress bar inherited from the progress bar and a toolstripcontrol interface, but that is just me. as for "Write your own class that wraps both controls (i.e. both are private members) with a property that selects the context. Provide public methods/properties that forwards to one of these controls based on the context (or fires an exception if that operation is not applicable). " I don't think that would elimate needing two seperate properties (the class I'm making is a development tool, and there for are not acti ...Show All
Silverlight (formerly WPF/E) What's The best way to communicate "bugs"
I've got an access violation showing up in IE when I shut my WPF/E based 'app' down. I fired up WinDbg, to capture the stack frames, etc, but without symbols, there's not much more I can do. The AV is in agCtrl.dll. I doubt this is the forum for this kind of reporting. MSFT, please let me know how I can help or what to do. Kevgor Thanks to Michael Schwarz for info - and when it's something that I can provide reasonable artifacts for - I most definitely will. But in this case the only thing I have is a process dump from IE7; with no symbol resolution ... ...Show All
SQL Server HELP WITH DATABASE SAVE FOR MINING PROGRAM
I use the code following to insert new data to my database. I have two tables in my database DEMOGRAFICS AND VISIT, related each other one to many START OF CODE Dim s trSQL As String 'Check for sql problems Select Case StateFlag Try ' Build Insert statement to insert new demografics into the demografics table strSQL = "INSERT INTO VISIT (CODE, CODE_VISIT, DATE_VISIT, STAFF_YES, STAFF_NO, STAFF_NOT_SURE, OZOS_NUM_ONE, OZOS_NUM_MANY, OZOS_POS, OZOS_TYPE_CYST, OZOS_TYPE_COMP," & _ "OZOS_VOL, OZOS_COLOR, OZOS_RESULT, D_G_OZODIS_IPER, D_G_HASHI," & _ "D_G_OXI, D_G_ST_THYRO, D_G_IPOXI, D_G_EIDIKI, D_G_NO_TAKSI, D_G_AYTO," & _ "D_B_THILO, D_B ...Show All
.NET Development Basic XSLT issue...
I have an ASP.NET app making two very basic XSL transforms. The first of which works perfectly, and the following XML result is stored into a database. Subsequently that XML is retrieved and put through another transform to be displayed as HTML. This does not work so well, and the issue is very strange... The node names by themselves are NEVER identified by any 'select,' 'test,' or 'match' attribute. Some simplified XML code and XSL findings are below: < xml version="1.0" encoding="utf-8" > <notesCollection xmlns=" http://my.fake.namespace.com/generalNote.xsd "> <note> <title>some title</title> <body>some text</body> </note> </notesCollection> ...Show All
Visual Studio Team System Opening a database project is taking a very long time
Hello everybody, I have a little problem. I created a database project that represents a Microsft SQl Server 2005 database schema. When importing the schema (the database size is 1.7 Gb) it took 6 hours. After creating the project , when i want to open the project it takes 2 hours. How is this possible Can anybody help me on this one Thanks a lot, Oana. I have the same issue. My project takes several hours to open. When will the fix be available and how will we get it. Our project is unusable. Even after the project opens, if i delete a stored proc that is wrong, the system goes out into lala land for about 10-15 minuets. Thanks ...Show All
Game Technologies: DirectX, XNA, XACT, etc. ClickOnce support?
Is it possible to create XNA apps and distribute them via ClickOnce This would be ideal for online distibution of PC games, especially small ones like hobbyist games. I like being able to build the stand alone MSI's. This is one reason why I would like the express plugin available for the retail versions of Visual Studio. I've not had much reason to experiment with ClickOnce yet, however I have read a few articles on it. ...Show All
Visual C# Some questions about working with dynamic linked dlls
Well, I have some questions. My executible file (code was written on C# as a Windows Application), while running, should search some directory for *.dll files which have some special properties. That dlls must be written on C# as a UserControl library and they also must implement special class. The questions are: How can I check files or their properties to find out - are that files are dlls of that special type or not and how can I use classes from them ( I want to place that controls on the main Form in executible file) What should I do or what materials should I read to solve my problem Thanks for help. Use the reflection API. You can try use Assembly.LoadFile() to attempt to load each dll. S ...Show All
Visual Studio 2008 (Pre-release) Export to XAML
I made a drawing in a Canvas using code (I mean I used C# methods to draw lines, polygons, etc.) I wonder if it is possible to export this drawing into a reusable XAML file. (Something similar to Bitmap.Save() in Windows Forms is what I need). Homam Dear Homam, Have you tried your hands on Microsoft's Graphic designer ( http://www.microsoft.com/products/expression/en/graphic_designer/default.aspx ) - it’s in beta, so you can download it for free and try it out. Its cool with a lot of stuff like this. HTH, Suprotim Agarwal ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Is Boo a viable option for Scripting for both PC and XBox360?
I'm just wondering if anyone has tried getting Boo to work for scripting on the XBox360, or is there some feature that Boo takes advantage of on the PC that isn't available on the console I've been reading that IronPython isn't an option, and LuaInterface wouldn't work either, since P/Invoke doesn't seem to be supported for security reasons. Can anyone shed some light It would be greatly appreciated. Thanks, Kevin Some Random Fellah wrote: Boo's core is P/Invoke free (but you can put a P/Invoke in your Boo-based library if you want). Boo is System.Reflection.* free as long as you do not use duck-typing. Note: System.Reflection works fine on Xbox. It is only the System.Reflection.Emit names ...Show All
SQL Server Cannot shut down VS after using report designer
Routinely when I use BIDS to work on a report design, I cannot close BIDS because I get a message box that says: Microsoft Visual Studio cannot shut down because a modal dialog is active. Close the active dialog and try again. Of course, there is no visible dialog open. I actually have to terminate the process from task manager. I do not get this problem when using SSIS or SSAS. Only SSRS. Any Ideas Thanks! BobP I know I have experienced slowness in VS when I have multiple projects running in the background. Especially if one of the other projects is connected to a server. However I can't reproduce these either. I'll pass along your comments to the folks that work on Report Designer. -Lukasz ...Show All
Visual Basic Getting current selected index of a datagrid
I have beed reading for a few hours and trying different things and got hung. I am trying to get the current selected index name in a datagrid what I have found so far throws an error of "not a member" below is a partial of my code Private Sub DataGridView1_CellClick( ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellDoubleClick Dim EDFRow As 102ADataSet.EDFRow Dim a As String Dim b As String Dim c As String Dim d As String d = DataGridView1. <<<<<here is where I am having problems EDFRow = 102ADataSet.EDF.FindByEName(d) a = EDFRow.EES1 b = EDFRow.EES2 c = EDFRow.EE ...Show All
Visual C# xml comment customization
I'm currently trying to set up a comment template for our developers. I've seen some information on creating a template for a file, but I would like to edit what is displayed when a user enters '///' There is a thread on how to add a developer tag in the VB template at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=321766&SiteID=1 but I'm trying to figure out how to add this for c#. I've tried changing the name of the file to be CSXMLDoc.xml, but that doesn't affect the contents. I'd love to be able to get the appropriate copyright fields in all my files without using a macro. Essentially I want this information forced into my developers files. We could add it in code review, but I'd rather take out that extra step if poss ...Show All
Visual Studio Visual Studio & SQL Server Reporting Services
We are in the process of deploying a SQL2005 Enterprise server. We have also purchased Visual Studio Pro. My question is the proper method to set up our developer's workstations. Should both VSPro and the Reporting Services designer be installed or will VSPro do the trick If both are needed which should be installed first Any guidence is appreciated. ...Show All
Visual Studio Express Editions How I can check with vb6 is some dll in windows registry ?
How can I check in VB, is some dll registered. It helps me little but... one more question.. if I register dll like that regsvr32.exe c:\mydll\Card.dll what is the parameters value in this Function => GetRegKey(" "," "," "," ") ...Show All
SQL Server Parameters via a web service
Hy, I have to build a report. this report has to be call by a web service. My method to call this report is : I do this in VB. This writes the report out to a disk after you get the byte array. This code is from inside a class that I wrap the process in so I havent't looked at it in awhile but it has been working without errors. Public Sub RenderWriter () Dim parameters () As MyReportService . ParameterValue parameters = GetParameters () Dim encoding As String Dim mimeType As String Dim parametersUsed () As MyReportService . ParameterValue Dim warnings () As MyReportService . Warning Dim streamIds () As String 'render the report Dim data () A ...Show All
