Rekire's Q&A profile
Visual Basic Timer Help?
How do I make a timmer that will run code every 5 min drag and drop timer on form in designer view Set the timer interval property to 5 minutes (1 second = 1000 and the interval is calculated in milliseconds) in code, whereever you are going to start running the timer: Me.theTimer.Start() whenever you are going to stop the timer from running: Me.theTimer.Stop() then in the timer tick event (double click the timer control), place your code there - it will run when the time interval has elapsed ...Show All
Windows Forms Prevent Control Button Draw
Hi, I was wondering what is the best way to stop a button control redraw as the mouse cursor enters or leaves the button. It is a good thing to avoid the owner draw style as I am not sure how well it is supported by the managed code, and likely by intercepting the WM_DRAWITEM message, in order to be selective for the instances that a draw is desired. Any comments/ideas Best Regards, Reza Bemanian If you override the following methods and not call the base method versions of them, that will do: OnEnter(), OnMouseEnter(), OnGotFocus(), OnLostFocus(), OnLeave(), OnMouseLeave(), OnMouseMove() Each one you override and do not call the base version of it, will stop painting the control on ...Show All
Windows Forms VB Font Selector Toolbar
Hello, Is anyone aware of an easy way to add a Font Style and Size selector to an application toolbar Right now It would seem that I need to actually loop through all the system fonts and write them to the drop down via a loop. This seems over complex for something that is likely used in just about all text input applications. Any time saving tricks would be appreciated. For say, the FontFamilies, you can just databind them to a combobox for example for them to select from or however your control "binds" the items...the down side is that it has the strings displayed like: [FontFamily: Name=Courier New] this was using: Me.theComboBox.DataSource = FontFamily.Families as ...Show All
Visual Studio Team System SQL Server Version(s) Support
It appears that for CTP6 only the Enterprise and Developer editions of SQL Server 2005 are supported. The Standard edition is not supported. When DB Pro is released, will it support the Standard Edition as well Thanks - Amos. The reason is that the VSTS4DBP project has to be able to serve all target databases with all their abilities. I can not develop a SQL 2005 database project with partitioning or parallel index operations (which I don't anyway - but others do) if the validation database is not able to cope with the terminoligy / validation of my objects. Wouldn't you scream if you had a project all finished and then determined that it only used part of the capabilities of the target system be ...Show All
.NET Development Performance Counters for Http.sys ?
Hi friends, As per this article, I can have a look at HTTP.SYS performance counters - http://www.microsoft.com/technet/network/evaluate/new_network.mspx I need to see "HTTP Service URL Groups" and "HTTP Service Request Queues" but I don't see them anywhere in the categories of objects (.NET CLR Networking does not have them). I started a log and added counters in .NET CLR Networking. Ran my server and the request generator. But I can't see any data being captured using the MMC snap-in. I'm concerned about the performance of my server vis-a-vis the no. of connections it is servicing per second, dropped or refused connections, connections waiting in queue, alive connections etc. So I need to see all this da ...Show All
Visual Studio 2008 (Pre-release) Filtering in a master detail situation
I have a listbox which is used to filter a listview. I would like to add two items manually after the listbox is databound. One to show ALL items (the attatched listview is not filtered at all), and one to show all items that are not in any of the items listed in the listview. How could i do that using the supported databinding features if the items in the list are just strings, you could probably add them before you bind. if they are some kind of objects then probably you can look at ' CompositeCollection', that way you can style them differently ...Show All
SQL Server Notification services not installed
We are upgrading a Windows 2003 system with SQL Server 2000 and we've been seeing the notification services .net dll fail to install. The error that is displayed has a internet lookup to Microsoft. When we lookup the error it mentions that MS DTC needs to be started for the notification services to be installed. We re-imaged the box and verified it was running prior to the install of SQL 2005. Anyone have any ideas why this error is occurring The first place to check for a failed install would be the SQL setup logs (in %ProgramFiles%\Microsoft SQL Server\90\Setup Bootstrap\LOG). The notification services installation log should be one of *NS.log. ...Show All
Visual C# Allocating memory throws exception when trieng to use native code dll
Hi, I need to use a native code dll in my application. I am working on .NET2 env, written in c#. When I try to use the Init method in the native dll, it throws the following exception: "Attempted to read or write protected memory. This is often an indication that other memory is corrupt." I know this method supposed to open a com port and allocate a block of memory. I wrote a .NET wrapper for this dll. The h. file of this native dll includes 2 structures: 1. typedef struct ALARMREC { int Flag; int AlarmType; int AlarmUnitNum; int AlarmUnitWing; int AlarmLocation; int AlarmDelayFlag; char AlarmTime[20]; }alarmRec; 2. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Struggling with 3D sound - Anyone got this working?
I'm getting IndexOutOfRange exception on the " engine.Calculate3DAudio(listener, emitter)" line below. Anyone managed to do anything like this I want my sound to come from a particular point. I understand with my code below that as theplayer moves, the listener isn't updating position (so sounds already started will be wrong), but I need to get the sound playing first! public class Sound { private static AudioEngine engine; private static WaveBank wavebank; private static SoundBank soundbank; private static Audio3DEmitter emitter; private static Audio3DListener listener; public static Cue Play( string name, Vector3 playerLocation, Vector3 soundLocation) ...Show All
Visual Studio Tools for Office Outlook 2003, VSTO 2005, and multiple email attachments
I'm working on an Outlook 2003 VSTO application to generate an email in a specified Air Force format. I need the resulting rtf email to be reviewable before it is sent. The problem: I'm unable to get multiple attachments to attach where I need them to be. If there is only one attachment, I have no problem - nor is there a problem with the "final" attachment in a series. What I need is this: 3 Tabs: 1. first attached file 2. Second attached file 3. third attached file -----------------------------------------------------Tab - HB2083_int First file icon ----------------------------------------------------Tab - testMemo second file icon ----------------------------------------------------Tab - afman33-326 Third file icon What ...Show All
Visual Studio 2008 (Pre-release) MenuItem DataTrigger error trying to change Header
Hello, I am trying to toggle the header text of a menu item based on bound data, but the following code will not compile due to the error below. Why is it treating MenuItem as a gerneralized ContentPresenter and how can I implement the intended behavior if this is not correct < MenuItem Header = " Signed In " > < MenuItem.Triggers > < DataTrigger Binding = " {Binding XPath=Presence} " Value = " SignedIn " > < Setter Property = " Header " Value = " Sign Out " /> </ DataTrigger > </ MenuItem.Triggers > </ MenuItem > error MC3011: Cannot find the static member 'HeaderProperty' on the type 'ContentPre ...Show All
SQL Server What is CUBE ?
Can any body help me to know about cube in dataminig How is the cube represented in database How to querry the cube Hiya, The following books online link about SQL Server 2005 Analysis Services will give you details for your questions. http://msdn2.microsoft.com/en-us/library/ms175367.aspx # Hope it helps. Regards, ...Show All
.NET Development Client found response content type of 'text/plain', but expected 'text/xml'.
Hi friends am call a 3rd party web service and when i call one of their methods i get above error any ideas how to resolve this please Thanks for ur help full error text Client found response content type of 'text/plain', but expected 'text/xml'. The request failed with the error message: -- < xml version="1.0" encoding="UTF-8" > <wsdl:definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="urn:submissionGateway/wsdl" xmlns:intf="urn:submissionGateway/wsdl" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:sg="urn:submissionGateway" xmlns:wsdl="http://schemas.xmlsoap.org/wsd ...Show All
SQL Server Turning a stored proc into SQL
Hi, I would apreciate some help on this problem. I have this stored Proc that some of you on this forum helped me out with: CREATE PROCEDURE Initials_sp @IDclient int , @Initials NCHAR ( 2 ) OUTPUT AS SET @Initials =( SELECT ( substring ( firstname , 1 , 1 ) + substring ( lastname , 1 , 1 )) as initials from tbl_ress where IDresscreatedby = ( select idRessCreatedBy from TBL_quotation where idClient = @IDclient )) Return It's not working, can anyone help me turn that StoredProc into just regular SQL so I can just use SQL in my php code instead of a stored Proc What error are you receiving What does the stored procedure return From looking at the code (NOT know ...Show All
Visual Studio Team System Unmodified files are asked to be checked out when checking in changes.
I found this post which seems to be a similar if not identical issue: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1115155&SiteID=1 The solution contains multiple projects. I started out from a clean state (get latest) and checked out one file, edited it, saved it. Then when I tried to check it in, a dialog pops up asking me to save changes to the solution and a host of other projects which I know are not dependent on the file I edited at all. This seems like an issue that is happening across multiple users of this product. I understand that it may not be a TFS specific issue but rather VS 2005 that is modifying these solution/project files - btw, diff tells me nothing has changed, so it might be that the ide is inappropriatel ...Show All
