CyK's Q&A profile
.NET Development Adding connection to SQL server 2005
Good morning, I am using VS 2005, and I ve installed SQL server 2005 (not the one given by VS2005). I ve establish connection to my data base. But the problem is when I try to use the Adminiter Web site for CreateUserWisard. I am not able to connect to my SQL dabase. (I am not using the SQL server 2005 of Visual Studio but mine (installed after VS2005.) I have executed the script asked: aspnet_regsql So I go to the administer web site and click on provider (using AspNetSqlMembershipProvider ). Then I click on Test and I get : Could not establish a connection to the database. If you have no ...Show All
SQL Server Merge Replication Updates on Initialise (SQLServer 2005)
I have a merge replication scenario where the technicians are filtered by their individual codes. Each technician has his own mobile device for collecting and synchronising data. On initialisation of the subscription, the user should only get the data that is relevant to their code. The client is staging the rollout to all of their technicians and as the system has grown, we have noticed that there are a number (getting larger every day) of updates that are creeping into the initialisation of each subscription. My understanding is that an initialisation will only ever apply the inserts necessary to create the subscriber database. Is my unde ...Show All
Visual Studio Express Editions How to Get Values from Datagridview row
I have a datagridview on a form which is bound to a dataset. When the user selects a row I want to get teh values from two of the columns in that row. I am able to use the following code to get a value a place it in the variable varTransID. varTransID = TransactionsDataGridView.CurrentRow.Cells(0).Value However, I am afraid that if the user rearranges the columns then the the column reference will pull fromt he wrong column. IS there any way to reference the column title so that I am sure I get teh right value. Perhaps something like this: varTransID = ClientsDataGridView.CurrentRow.Cells( "TransactionID" ).Value Unfortunately the program ...Show All
Software Development for Windows Vista Inspecting a State Machine Workflow
Hi there!. I'm developing a State Machine Workflow. First, please let me put you in context: It’s like a form approval, but the form in cuestion has states (ie: Pending, OnCourse, Rejected, WaitingApproval, Approved) and if the form is Reject, the next State it’s OnCourse again doing a new iteration. I'm using Lab04 as example and I've definied the workflow until this point without problems, but now, when I'm going to code the "test host" I have some questions. In Lab04 a lot for work is done in classes StateMachineInstance and StateMachineTrackingService. Reading these classes I understand that are inspecting the Workflow ...Show All
Windows Forms Implementing Cut, Copy, Paste, in a Menu
Here's my situation. I have a Form with a couple of TextBoxes and a MenuStrip that contains an "Edit" menu with cut, copy, paste, etc. If I simply have the "Edit" menu items using NO shortcut keys (i.e. Ctrl+X, Ctrl+X, etc) the that functionality works fine in the TextBoxes, for example I can select some text in a TextBox and and use Ctrl+X to cut it. BUT, if I add shortcut keys to my menu items that functionality goes away, obviously because it hasn't been implemented in my menu items. My questions is, is there a simple way to have the menu items hook up with/or disregard the textboxes so they still work with the ...Show All
Windows Forms Custom prerequisites?
Hi, I'd like to add custom prerequisites for ClickOnce deployment like WordViewer and ExcelViewer. Is that possible or would I have to do that on my own Thanks, Tom ah ok, that's strange ... I tried installing it from my laptop which has beta2 on it but for some reason it always failed. I just tried on my dev machine with RC on it and works indeed ;) thanks ...Show All
Windows Forms DataGridView Calendar And Scheduler
Hi, Can anyone help me with the following Using the new DataGridView in .NET 2.0, can the look be configured so that the days of the week are headers and the rows are subdivided into 30 min. time intervals much like Outlook allows you to schedule appointments. I'd like the same look and feel. As an option, I'd like to be able to add multiple "Customer" objects to any given cell and click on a single customer to bring up his history/appointments, etc... For example, cell at location 5,4 may contain 4 "Customer" objects, and clicking on one of the objects in that cell woul ...Show All
Visual Studio Express Editions deployment error
I have created a wonderful windows application with visual C# express, this is quite a feat since I new nothing of programming before I started. Thanks to lots of help from articles and forum entries. Thank you. My issue is I can "click once publish" and install on my production machince xppro and when I try to install on another machine xphome, I simply get the application has encountered a problem and wants to send an error report to microsoft. Any thoughts on how to get more information I am using MSAccess database, directx and interlop to word all installed on the other machine also. hmmmm. help ...Show All
SQL Server Strange bug with intellisense...
Hi all, I've got a strange bug with VS.NET and SSRS. Whenever I build my solution and it automatically deploys the SSRS reports to our report server, my intellisense stops working and I have to restart VS.NET to get it back. It only happens when the reports are automatically deployed. It doesn't happen if a solution has no report project. Any ideas as to what I can do to fix this Regards, Stephen. Still having this problem and its driving me nuts! Anyone know if there's anything that can be done to stop it Regards, Stephen. ...Show All
Visual Studio Team System Add Work Item menu still loading...
I just uninstalled/reinstalled TFS on my server. I uploaded my custom process template, and created a new team project from my template. However, when I try to right-click the Work Items folder, Add Work Item, it says "Add Work Item menu still loading...(try again in a moment)". It has been saying this for over an hour now. When I remote desktop into the TFS server and use team explorer on there, I can add work items just fine. What is going on here Everything else on my dev machine client appears to be working. I can upload and view documents just fine, and I can run work item queries and see the proper ...Show All
Windows Forms Stupid DataGrid Question
This is my first attempt at using a datagrid and I'm having MAJOR problems. I can't get the grid to show up on my webpage! Everything seems to be working fine but NO GRID! I've followed all the code examples I could find but to no avail! Everything is fine. The connection opens, the data is returned but the no grid where it should be on the page its just blank! PLEASE can someone point out what I'm doing wrong!!!! See code below I have the following code in my .apsx file asp:DataGrid id="dgridCustomers" style="Z-INDEX: 106; LEFT: 72px; POSITION: absolute; TOP: 240px" runat="server" and the following function is calle ...Show All
Visual C# Adding midi or wav files.
I am making a program to provide information, and I need to be able to someones voice to play automatically in the backround. Can someone tell me how to do that "/" is not a valid path separator (although most .Net file operations recognize them). The correct path separator is "\" and like Karen points out, you can use Verbatim string. Also, it appears that you are missing spaces in the directory name - perhaps it is "c:\Documents and Settings" instead of "c:/DocumentsandSettings" So, try this: player.SoundLocation = @"C:\Documents and Settings\Administrator.XXXXXX-.XXXX\My Documents\My Music\test.wav"; Or better still, ...Show All
Smart Device Development "ActiveSync cannot recognize this device" error....
When I connect to the emulator and cradle it,I get the following error: " Microsoft ActiveSync cannot recognize this device for one of two reasons: ... ... " It was ok before but doesnt work now...what is the reason Hello, Please try clear save state and then connect to device emulator again and then try cradling the emulator. Hope this helps. -Thanks, Mohit ...Show All
Windows Forms Drop-Down Properties
I know that by using enumerations I can create a simple list of things that will drop down from a box in a custom property, in a propertygrid. But what does one do if they want a string to drop down in the box the enum way works all well and good untill you need a space or a unique character. So how do we get around this Thank you a lot for the code!. Sincerlly works like a charm. The code was modified to adapt to my particular use: using System; using System.Collections.Generic; using System.Text; using System.ComponentModel; namespace YourNameSpace { partial class DropDownLis ...Show All
Visual Studio Express Editions Using Module
Hello, I am working on a program that uses a lot of subs and functions, so I wanted to bring those together in 1 single module file. Now I did this (see code), but I noticed that it compiles the module with my app, and it doesn't compile it to an dll as I want to. Anyone here knows how to solve this because it is important that I can 'update' the file just by replacing my module dll by a new one. Here is the code I'm using: Module modules Public Sub SetSettings() E nd Sub Public Sub GetSettings() End Sub Public Sub cfu( ByVal flag As Integer ) Select Case flag Case 0 Try My .Computer.Network.DownloadFile( ...Show All
