Josh Bernard's Q&A profile
Visual C# How to run a syntax inside a string?
Any advice on this string method1="DoCopy(stdArray, resultArray)" Is there anyway to run what is instructed in the string method1 Run[method1] Thanks if you want to run external application use Process.Start Method http://msdn2.microsoft.com/en-us/library/system.diagnostics.process.start.aspx If you want ot execute code in such way I highly recommend you to NOT use such approach as this will make application d ...Show All
Visual Studio Team System "Currituck WITs" failure whilst trying to create a new project...
I am getting a "Currituck WITs failed" when I try and create a new project, the exception has the following... System.Data.SqlClient.SqlException: Violation of PRIMARY KEY constraint 'PK__@members__24C087ED'. Cannot insert duplicate key in object 'dbo.@members'. The trouble is I can't seem to find which database or table this is refering too. Anyone any idea Cheers Simon All fixed. i did a complete removal of everything and r ...Show All
.NET Development ByVal or ByRef
Hi, I have a array of objects of a class (written by me) in my program. When i try to do some manupulation i make a function for that within the class and call the function with parameter as ByVal soemthing like private function NameofFunction(byval x as clsMyClass) as boolean ... End function Now, When I test my program it is giving error (logically) as it changes teh object of my array inspite of that I am just refering to it ...Show All
Windows Forms Moving images fluently
I am looking for technique which allows to fluently move several images over the form without using DirectX & Open GL. Several images should be moved simultaneously but with different speed. Also one more feature: I should be able to change their (moved images) opacity during moving. Does anybody know good algorithm (or may be article, example, link) to implement these features In the absence of DirectX, yo ...Show All
Visual Studio Reportviewer doesn't print first time I click print button
I use a WindowsForm Reportviewer. C# 2.0 I generate the report and all is OK but when the user try to print (print button in toolbar), the application open the printdialog, I select the printer and press Ok. But the application doesn't generate a document. When I try again, all work fine. If I close the application and restart, occurs the same (first doesn't works, second works, all time works). somebody have any idea Thanks form ...Show All
.NET Development parsing method byte codes
Can anyone give me some hints about my question below The following delegate returns the further following byte codes (read on): Func < TestClass , bool > function; function = delegate ( TestClass test) { return test.Name.Contains( "my" ); }; 0 2 111 1 0 0 6 114 91 0 0 112 111 33 0 0 10 10 43 0 6 42 I found that code 111 is a callvirt, fin ...Show All
.NET Development WndProc ..Constants as only Messages??
Hi all, In my Window app. i overrided the WndProc procdure to process my custom Messages ,which i created and registered using RegisterWindow. But now i couldnt able to process my Custom messages as WndProc only compares Msg parameter with constants...is there any way to make it to compare my custom messages.(im using .NEt FW 1.0). public Register() { long WM_CUSTOMMESSAGE = RegisterWindowMessage('Custom'); } pro ...Show All
Windows Forms Detect if a form is obscured by another form
Hi all, I am sure there is a simple way to find out if a form is fully visible, or if another form is over it, but it is not an easy topic to search for. What I want to do is detect if a form is obscured by another form in any way. For example, your application has form1 open and you also have another application open eg. notepad, calculator, whatever. How can I detect that when form1 is being ...Show All
Windows Forms How could i use the usercontrol to call the Window Form's Componet.
I create a user controls and added it on a Form. There are also an textBox on the same Form. But i can't assign an text string to the textBox on the Form by codding in the user control . How could i do it. duck123 wrote: I create a user controls and added it on a Form. There are also an textBox on the same Form. But i can't assign an text string to the textBox on the Form by codding in the user control . How could ...Show All
Visual Studio MSDN (or MS Document Explorer) crashing like crazy
does anybody know how to fix the following issue: Installed retail 2005 standard studio version on a machine which did have the beta version, yet it was removed with the tool provided my MS. The installed finished without issues, however as soon as I try to use the dynamic help's search button, the MS Document Explorer crashes. Hence MSDN library is halfway useless, because I can't search. If anybody has any ideas.... other than wiping my HD, pl ...Show All
SQL Server matrix subtotal
hi, If I use the matrix to dynamically show the columns,but at the last column,I hope to get the average data ,But the subtotal can not help in this case,how can i do thx for help! I think this thread can help you: http://forums.microsoft.com/MSDN/showpost.aspx postid=791849&siteid=1&message_id=524412¬ification_id=524412 ...Show All
Visual C# Overloaded methods with generics problem
I am trying to use some overloaded methods within a generic class method and have the parameter type choose the proper overloaded method. I feel like there must be a way to do this with reflection, but I have not stumbled across it yet. Here is a code example that should hopefully illustrate my problem: using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; class GenericExample { class Scalar&l ...Show All
SQL Server Null values in my measures - AS2005
Let me first preface my question with the fact that I am new to SQL Server applications in general. Therefore, any answer will probably require additional information as to where I need to make the changes within Analysis Services (AS). Thanks. My cube retrieves measures from multiple fact tables. It uses a simple time dimension which contains only Year. When I view my cube in the cube browser, one measure show nulls for certain Years. I w ...Show All
.NET Development SSLStream data out of order
I am upgrading my FTP server to use SSL. I can successfully negotiate an SSL command channel in response to AUTH. I do synchronous I/O here, and all is fine. When the data channel is protected it immediately begins life as SSL. I use the same asynchronous I/O model for both SSL and non SSL modes, casting either SSLStream to a Stream, or casting the NetworkStream to a Stream to do the I/O. But when the data channel is SSL the data is arrivin ...Show All
SQL Server Like in query
strSQL = "SELECT Naam FROM tblKlanten WHERE code LIKE '%" & str & "%'" it works in sql but doens't in sql mobile how do i solve this Thanks for replying. Everything is solved now. Cheers, Dave ...Show All
