ponoy's Q&A profile
.NET Development DoEvents not working?
This code doesn't seem to be working right. What I need to do is watch for left and mouse downs, and when both are down at the same time, show a window. This class should do it, but isn't working. The processMessage variable tells the mousehook to send the message to the appropriate window or to consume it. Public Class mouseComboWatcher Private WithEvents mh As WickedOrange.MouseHook Public Event ComboPressed() Public Event ComboReleased() Sub New () Me .mh = New WickedOrange.MouseHook End Sub Private leftMouseDown As Boolean = False Private rightMouseDown As Boolean = False Private comboDown As Boolean = False Private Sub mh_Mouse ...Show All
Windows Forms Inject Querystring on server side
Hi Guys, I need to add a querystring parameter on the server side, does anyone has a clue Trying this won't work since it is readonly: Request.QueryString.Add("Template", templateProvidedName) and Response doesn't has a querstring property in it! Note: Application is ASP.NET 2.0 /* use reflection to achieve this problem instead of Request.QueryString.Add method because its property is readonly in run time */ using System.Reflection;// to use BindingFlags using System.Collections.Specialized;// to use NameValueCollection public void addQueryString( string paramName, string paramValue) { NameValueCollection myQueryString = Request.QueryString; // set query string to a ...Show All
Visual Studio Express Editions .dll help
hello. I will explain my problem I have an application, in that is a webbrowser and I want it to switch to an url on a user specifiet time. but now. I want the code (which I already made) in a remote .dll file (or another one, if you can recommend one) with all the url's it should go to. Example: Select Case timername Case 0 WebBrowser1.Navigate( "URL" ) timername = 1 Case 1 WebBrowser1.Navigate( "URL" ) timername = 2 End Select Why do I want it in a remote So the application can update it when I have an update for the url's and not have to update the whole application. So how do I do that (I don't want it in the resources but in a folder on the hardisk (C)) Note: this application has a use! Umm... y ...Show All
Windows Forms Redistribution of "standard" toolbar icons?
Are the "standard" toolbar icons (the "save" disk icon, cut, copy, paste icons, et cetera) that appear in just about every application installed somewhere with Visual Studio (I'm using standard edition, 2005) It seems like everybody's applications but mine get to use these standard icons; I can't find an obvious way to add them to my forms via the C# form designer. Does everybody else just rip them out of applications using Print Screen and MS Paint That strikes me as rather illegal unless they've been released for redistribution -- in which case I'd imagine they'd be a little easier to find... but I can't find them. Any ideas For Standard edition and above you should have an Image Lib ...Show All
SQL Server SQL 2000 : DROP TABLE : Logged fully
In SQL Server 2000, is DROP TABLE fully logged operation. I have a table with 1 million records. Do I Truncate before dropping to reduce T-log size Would it make significant difference in log size. Hi, drop table will be fully logged. If you do truncate table first you will lower down the transaction volume. But you will have to keep in mind that the TRUNCATE TABLE will only work for table which are not related to other one. You will either have to break the relationship with dropping the PK_FK relation first. HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Windows Search Technologies Strange Bug With Windows Desktop Search 3.0
I have a strange bug with windows desktop search 3.0 i am using windows XP Sp2 when i install windows desktop search that i downloaded form Microsoft site from here http://support.microsoft.com/kb/917013 windows desktop style looks as here u will notice this strange character before the word "Desktop" it seems like "n" How do i can Get rid of this bug thanks in advnace yes, u r correct this doesn't have aby impact on search but this is annoying and i wish to fix this in the next release and i want to know how to report this bug to be fixed in the next release thanks in advance ...Show All
Visual Studio Express Editions STD lib link error 2019
Why am I getting a LNK 2019 error for this code: #include <fstream> void INITIALIZE::loadSettings( bool loadDefaults) { std::ifstream *pStream = new std::ifstream; pStream->open( "./config.cfg" , ios::in); } Thanks in advance. M. B. Did not work, same error. Here is my project>properties>config>linker>input>additional dependencies. "kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comctl32.lib msvcprtd.lib opengl32.lib glu32.lib FileIO.lib LeanMath.lib Texture.lib ...Show All
Windows Forms Thread Pools
I'm using thread pools to update multiple windows forms. The question i have is that when i close a form the thread doesn't get disposed and eventually the app locks-up when i open and close to many forms and won't display any data unless the app is restarted. What happens is the threads are getting stuck trying to update the closed form and when it hits that section of code its stays there trying to find the form but can't. It won't get deleted or die it just stays there until all the available threads are used then i get no more updates. Is there a way to delete the threads as the forms are closed or are they supposed to stay and i just need to add more threads to support what i need to get done Thank Y ...Show All
Visual C# What are Generics? what do I get from them?
If anybody can provide a sample code, much better. Thanks, Omar a "Person" is just a class type :-) Like String or Int. You are creating a List generic of the type you specify and can only store that type of object, so if you had "Person" then you can only store in there objects of type person ...Show All
Visual Studio Team System Creating an OLTP datasource for writing reports
As suggested on: http://msdn2.microsoft.com/en-US/library/ms159161(SQL.90).aspx I created a new data source which I have called TfsOltpReportDS and which uses the Microsoft SQL Server connection type and the following connection string: data source="(local)";initial catalog=MyProject However I have login problems. If I enter the user and password which is used for TfsReportDS then I get failed login errors when I click Apply the first time or Generate Model . If I select the option " Credentials supplied by the user running the report " to diagnose this and try to generate a model I get this error: SQL Server Reporting Services Error Logon failed. (rsLogonFailed) Get Online Help Value does not fall within the expe ...Show All
Visual Basic windows control library
i developed my own control using windows control library Can I use this control in my asp.net pages when added reference to this control, but i cannot see this control in the toolbox help me You can use Ken's suggestion if you want to have rich client controls in the Web. I'm wondering if you really wanted to have Web controls in your Web page. If that's the case you'll need to create a custom Web control in a Web Control library. Thanks, Paul ...Show All
SQL Server using a datetime as dynamic filter... How?
Hi! Is there any way to use datetime value as dynamic filter in the Merge Replication (Yeah, I use HOST_NAME in order to pass datetime value) I used all possible approaches, but or I got the error Conversion failed when converting datetime from character string. (Microsoft SQL Server, Error: 241) or I got 0 rows on the subscriber after synchronization. Any ideas how it can be solved Thanks Paul If you want to filter based on date, you should really add a secondary column bit column to indicate what rows should be replicated, and have a nightly/weekly batch job that updates this column. Reason being is that replication is trigger based, changes are only replicated based on rows th ...Show All
.NET Development How to disable keepalives?
I keep getting the following error The underlying connection was closed: A connection that was expected to be kept alive was closed by the server I've scanned the net for a solution and came up with this public partial class Service : System.Web.Services.Protocols. SoapHttpClientProtocol { protected override System.Net. WebRequest GetWebRequest( Uri uri) { System.Net. HttpWebRequest webRequest = (System.Net. HttpWebRequest ) base .GetWebRequest(uri); webRequest.KeepAlive = false ; return webRequest; } } unforunatly, after implementing this I still get the error message. It seams like this function is never called! ...Show All
Visual Studio 2008 (Pre-release) Aplying DataTemplate to a Panel
I have a DataTemplate that works fine for a ListBox control (which derives from ItemsControl), but when I apply it to a Panel (which derives from a ItemsControl, too) it doesn't seem to do anything. The template is: <DataTemplate x:Key="ImagesTemplate"> <Grid Width="100" Height="100"> <Grid.RowDefinitions> <RowDefinition Height="2*" /> <RowDefinition /> </Grid.RowDefinitions> <Rectangle Grid.RowSpan="2" Stroke="Black" StrokeThickness="2" RadiusX="5" RadiusY="5" /> <Image Grid.Row="0" Width="90" Height="60" Source="{Binding Path=Source}& ...Show All
Software Development for Windows Vista Vista Development or Promo page
I've noticed new threads about software problems or technical issues that point to poor design or lack of concern for user are removed almost immediately. The threads that stay up though legitimate, would leave you to believe the only real issues are with older software or hardware. So, I wont waste time reporting the series of expensive fixes Vista took me through. ...Show All
