Alan Adams's Q&A profile
Windows Forms Customize Toolbar...
Hi all, On most windows applications, when you right-click on the top menu/toolbar, you will see a context menu that has the item labelled 'Customize...'. How can I add this to my Windows Forms application Thank you, Stephen. Hi, you can add custom context menu strip to your toolbar through toolstrip's ContextMenuStrip property. Framework's toolstrips don't support this functionality out of the box. Andrej ...Show All
Commerce Server Discount Eligibility Not Working
I've setup a discount where a 20% discount is applied for items whose price exceeds $100.00 This works just fine. However, if I define an eligibility requirement (discount eligibility tab) for a specific user based on their email, and I log into the website as that user, the discount does NOT get applied. Am I missing something David, thanks for your input. Yes, I am using the Starter Site. Just in case, I added the code you supplied above. Again, the goal is to target a specified user via the discount eligibility tab. According to CS documentation, this is where target expressions can be used to define "who" the discount applies to. The following is an excerpt from the docume ...Show All
Community Chat JimmyWidgets
--- Original Post --- Hi everyone! My current project is JimmyWidgets, a widget program like Apple Dashboard, but for PC! You can even make new widgets in DLL format and post em on the online database! When I've made more widgets (I've only got 2 at the moment), I'll post it at www.jimmyware.co.uk . It's going to be open-source, so you can download the source from there too. Here's a screenshot: http://www.freewebs.com/robinjam/JimmyWidgets%5FScreenshot.jpg I await any comments/suggestions! (But please don't be too harsh about my efforts, it took me HOURS) P.S. A list of problems I need to fix: The online database currently lets you download the same widget twice, making startup time longer (because ...Show All
Smart Device Development Set System Date in Pocket PC in C#.NET
Hi All, How can I set Pocket PC's System Date using C#.NET How to use the P/Invoke OS API like SetLocalTime() Thanks in advance. Regards, Varun ...Show All
.NET Development Move File
how to rename and move file from one location to another. i m using rename(oldpath , newpath) function but it is giving an error "system.argumentException: Procedure call or argument is not valid can any buddy rectify Both the VB.NET Rename() function and System.IO.File.Move() use the MoveFile() API function. You got the generic "it didn't work" exception. Try using Marshal.GetLastWin32Error() to get an error code. Other than that, Rename will fail if you try to move a directory from one drive to another. ...Show All
SQL Server Missing SQL perfmon counters - Problem Solved
SQL perfmon counters are missing. Running SQL 2005 Workgroup (which is a 32 bit app) on a 64 bit OS. Could the counters be missing because of running a 32 bit app on a 64 bit OS Anyone know Thanks. ...Show All
Visual Studio Express Editions display data from sql in messagebox
hi,got a question regarding the messagebox what i'm doing currently is displaying data from a table in a listbox using data binding source and adapter what i want to do next is to enable myself to select a particular data from the listbox,press another button to view the rest of the info from database where the attribute = selected value in a messagebox i'll give an illustration if my explanation isnt clear.i have a listbox which displays only car number plates,and i want to be able to select a particular number plate,click on another button which opens up a messagebox that displays the rest of the details of the owner of that selected license plate number is it possible to do this hi ahmedily ...Show All
.NET Development Very Urgent - System.IO.IOException: There is not enough space on the disk.
Hi, We are facing a bug in which we are writing data to the excel file in the floppy and the floppy size is full it raise an “ IOException” (memory full) , in this case I am not able to close the StreamWriter object because StreamWriter Close () function internally call the Flush () method. But after sometimes or immediately ,i got another IOException of memory full and the call stack show that it raises when the Garbage Collector (GC) call Finalize() function. I do not wants this second exception , becuase i can not handle this second exception and sometime a process is also runing in the Task Manager after closing the application even i am using the Environment.Exit(0) function in Application for exiting the ...Show All
Visual Studio Team System Rules with multi-level picklist.
I have 3 fields which are all dependent on each other. Field-3 is dependent on field-2 and field-2 is dependent on field-1 Field-2 is set with a DEFAULT rule depending on the value of field-1 Field-3 is set with a DEFAULT rule depending on the value of field-2. When I select a value for field-1, field-2 is set to corresponding value, but field-3 is not set al all. Only when I change field-2 manualy, field-3 gets set. Or when I commit the work item, the UI also shows a value for field-3 Is this by design Thanks. Hi Paso, unfortunately our rules engine that is responsible for setting default values, tracking field dependencies, etc. has bugs, and you just hit one; we're working on improving tha ...Show All
SQL Server Limitation of RB?
If there is a need to add a new column to the table, how would you do it to add it to an EXISTING report using RB I don't want to create a new RB report. I want to add the new column to an existing RB report. p.s. Anybody knows how to replace a Report Model on the report server when re-deploying it Currently I manually delete the Report Model and re-deploy it onto the server. Otherwise, it gives me an error for duplicate IDs. Is there a switch that can be turned on Thanks. Am I missing something ! I have a table tblCustomer in the data source view, I changed the FriendlyName = Customer (also assigned appropriate FriendlyNames for columns too). Now I have added a new column and try to ...Show All
Game Technologies: DirectX, XNA, XACT, etc. using C++ libraries with C# and 360...
Hey Guys, Up until now, all of my projects have been written in cpp. I had a pretty descent game engine written based upon Ogre3D and several other libraries but I kinda abandond the project when xna was released. Anyway though, Im currently still in the process of learning c# however, as soon as I have the language down pretty well, I want to go ahead and start recreating my game engine using xna instead. The only problem is, well, honestly, I'm just not good enough with my 3D maths and physics yet to create my own C# physics engine so I was hoping I could use the Novodex physics engine with C# although it's written in C++. Is this possible Can you #include the headers into your c# code Does the compiler still support c++ And last but no ...Show All
SQL Server Replication Monitor reveals poor performance - but what to do to fix it?
The client production server CPU starts thrashing. Task manager indicates that SQL server is gobbling CPU cycles. Having a look at the replication monitor, it is obvious that indivual synchronisations to the mobile devices are taking significantly longer expected. Observing an indivual synchronisation attempt, the Upload changes to Publisher rows are very quickly resolved. The Download changes to Subscriber seems to take up a very long time. Along the way, the estimated completion does a few interesting things, like going from 100% complete with no estimated time to complete, back to seomthing like 77% with 2 minutes left to complete. This sort of behaviour occurs when there are only a hundred rows to download. Synchronisations for minima ...Show All
Visual Basic Drag & Drop icons from Desktop onto control
Hi all, I have written a menu app which I have to browse for files, to tell it the file name / path. I would like to Drag & Drop icons onto the form / control from the windows desktop. I have a basic understanding on how to drag/drop from 1 control to another (both on the form ofcourse), but when i try to drag an item from the desktop the mouse pointer changes to a circle with a line through it. I am assuming that Vb only lets you drag items from the form onto iteself. Is this correct Code sample would be appreciated. Thanks in advance. OK, here's full code in VB. Before you start, right-click the project and choose "Add reference". Click on the Browse tab and enter c:\windows\system32\shell32.dll ...Show All
Windows Live Developer Forums Searching for one way roads.
I'm trying to figure out how to search for one way streets in the current view and display them as either pushpins or highlighting the road. Any idea on how I'd go about doing this ...Show All
SQL Server Copy/Paste text into a field
I've encountered a strange problem with the Microsoft SQL Server Management Studio. When I manually edit a record in a table and want to insert text with more lines, only the first line is copied into the field. The field type I use is nvarchar(max) but it doesn't really matter what type it is. The problem only exists in the Management studio. When I perform the same task in the "old" Entreprise Manager it works fine. Am I doing something wrong or does anybody have a key to whats wrong Thanks! Ken I just did a quick search on Microsoft Connect for any bug that was reported by customers, but did not find anything. https://connect.microsoft.com/SQLServer/feedback/SearchResults ...Show All
