DilipK's Q&A profile
Visual C# How to make a method in a windows service.
I made one windows service and i can control the OnStart, OnStop. example protected overwrite void OnStop() { //DO something } my real question is, how to make an own method in windows service and how do i send a string to it.. i would like it like this public string getPass(string tempUser) { string tempPass = ""; //do something do something, return tempPass; } anyone who knows where i can read about this stuff please contact me.. Is this for something external to the windows service If so you can use remoting or use a socket to communicate with i ...Show All
Windows Forms Creating an Editable Label
Need to write a custom control to allow in-place editing, similar to that in a word processor, but user could edit ONLY those underlined (or similar specially marked) words in sentences -- not to allow editing the whole sentence or page. Appearance should look like a hyperlinked label, but not to function as a hyperlink. As the user enters longer text than the original, all the text on the right side of it should shift accrodingly as in a word processor. Expected functionalities are: - By double clicking the underlined (or specially marked) words, user is allowed to edit that particular text. Existing t ...Show All
SQL Server how to get the sum of a group and not the whole column?
example: Account Sales New John Doe 1,000,000 George Bush 2,000,000 Juan Luna 3,000,000 6,000,000 Old Michael Tell 5,000,000 Billy Banks 2,000,000 7,000,000 where Account and Sales are table columns, New and Old are group names. i want to display the total of the group. ...Show All
SQL Server Does anyone know how to fix this?
hi this is my problem : SELECT * INTO Sales FROM Sales1 WHERE 0=1 ON [MyFG1] the problem is in filegroup MyFG1, rest works fine So if anyone can help, i'd like it to work this way, to copy only first column names from Sales1 to Sales but in this filegroup. thanx ;) [select into] does not allow you to specify the filegroup for the new table. The new table will get created in the DEFAULT filegroup for the database. So, you have a few options: 1. run alter database and reset the default fg. 2. create a clustered index on the table on the desired fg. 3. create the table first on the desired fg then do insert/select. ...Show All
Visual Studio Express Editions I do not want SP2. I do not want SP2.
Hi. I run on Windows XP Professional SP1 and I really need Visual Basic .NET Express edition, as SharpDevelop2 is very buggy (atm). The thing is: I do not want SP2. Please do not flood me with comments such as "BUT OMFG SP2 PWNZZZ SP1 ! !" but tell me one good reason why to update into it. Not "security", not "more stable", but something real. Incase it comes with some updates needed by the Visual Studio's, why not make the user able to download them just like that, not some massive load of bugs Is there a way to override the SP2 check I'm sorry but Windows XP SP2 is a require ...Show All
Visual Studio Team System Team Foundation Server Object Model References
Hello, Can anyone tell me where I find the assemblies for the Team Foundation Server Object Model (e.g. for - using Microsoft.TeamFoundation...) I have both TeamClient as well as the Visual Studio SDK installed and the references do not show up in the reference list within VS 2005. Is there a certain location I need to browse to in order to find these assemblies --- Thanks, Jeff Chad, Thanks for the prompt reply. That will work fine (although it seems a bit elusive). --- Thanks, Jeff ...Show All
Windows Forms DataBind Combobox with "Select One" as first item
I have two comboboxes that are bound to datatables in a dataset. The datatables have a relationship so when the user selects and item from the first combobox the items in the second combobox are automatically filtered. What is the best way to add a "Select One" item to each combobox I know I can't modify the Items collection if ...Show All
Visual Studio Express Editions Problems creating projects in VBx2005.....Installed okay....
Hello all....I searched the forums first before posting this message, and found no other related messages. Here's my problem...I have just installed VB Express 2005, successfully. I try to create a new project, get the wizard, tried different choices, but always end up with the same... a message telling me invalid filenames, path....blah blah blah.. I have tried to correct the problem by relocating the template directory, changing project locations, uninstalling, and then reinstalling....but no avail...... I have VC Express 2005 loading and working correctly. I have even tried reinstalling just the SQL....but again, nothing.... I have tried ...Show All
Software Development for Windows Vista Porting own workflow engine to WWF
Hello, we have implemented our own (end-userfriendly) workflow engine, and now we want to migrate to the WWF. The main workflow elements of our old engine are: 3 different type of Activities: Human activity (with user interactions) Technical activity (without user interaction) Condition activity (if elseif else ....) Each activity can have every activity type as parent(s) and child(s) with following (main) constraints: Human/technical activities: 1..n input connections 1 output connection Conditions: 1..n input connections 1..n output connections (with conditions) Features: Reject to any executed human step (with some exce ...Show All
Visual FoxPro Foxpro, or Access, or Filemaker?
I was a professional foxpro programmer 9 years ago, and haven't used it since. I have written some fairly large programs, including my first, which was the tax collection system for Samoa. My last version was the first windows version. Unfortunately, that version, will no longer run on the current XP operating system. I now own a wedding photography business, and need to track leads, and send emails, write invoices, and keep track of services and products for the client. Which software would be better for my needs Foxpro, or Access, or Filemaker I need a relational system, and if I could program some of it myself, I wou ...Show All
Windows Forms Kiosk windows forms applications
I was wondering if anyone could point me to <i>anything</i> about creating windows forms kiosk apps. I am looking to develop a prototype system and this is the only way this can work, yet i can't find anything on it. anywhere... I would need to be able to capture alt-control-delete, ect but i know you can do that by attaching to the W ...Show All
Visual Studio 2008 (Pre-release) Strange behaviour with disabled toolbar
I have discovered a strange behaviour (bug ) in the chess application. Load the chess game, go to 2D page, navigate back to the main page and then navigate forward to the 2D page: the toolbar is disabled. This doesn't happen with the 3D page or if you navigate using the menus instead by clicking the arrows. I have no idea if it's a bug in my application or in WinFX runtime. Any thoughts Valentin, Would you mind sending the source code over so we could take a look at this If you could narrow it down to a smaller repro sample, that would help tremendously. Offhand, I don't know what is happening. Thanks, Lauren [M ...Show All
Visual C++ How to call a Dialog Box?
Hi! I'm new to VS and I need some help! I've made a main form and another (i'll use it as a dialog box). I have a Main Menu on the main form and I want to call dialog box (form 2) when I press menu item. I know where tu insert the call code but I dont know what code to use. Help!!! Another question: As for the cpp files included in the project....which one is the main one (is it the one with WinMain function ) Does this mean that I can't have main function in other cpps How does the linking work I want that main cpp does the printing on the main form and other cpps send data to main. How do I do that You might find these topi ...Show All
Visual C# Parallel execution of Functions
Hi ! I have 3 functions, which executes sequentially so take much time (about 10 minutes). i want to reduce time, by executing those by parallel. Those functions don't depend on each other. how can i do that, plz suggestion and code..... I don't know of any tools that will automatically tune your code. Can you post your code here, maybe there's something obvious... Spreading the load across the net can get quite complex, and is a type of architecture your whole program should be designed for. I wouldn't try and implement that before ruling out the easy solutions. ...Show All
Visual Basic FIleOpen Dialog - fileopendialog.showdialog() - Change default view from List to Details
In my app a user can mouse to File Menu - Open. The fileopendialog.showdialog() has default view of ListView. The user is alway going to have to sort the file list by Date in descending order in order to open the most recent file stored in the network location. How can I make the FileOpenDialog display in Detail View by default and not List View. Thanks, MIke Code Sample dlgOpenFile.InitialDirectory = sDefaultDir dlgOpenFile.FilterIndex = 0 dlgOpenFile.Filter = "All Files|*.*" dlgOpenFile.Title = "Open PO File" If dlgOpenFile.ShowDialog() = Windows.Forms.DialogResult.OK Then 'other ...Show All
