Alexey Rokhin's Q&A profile
Windows Forms DataTable
Several combo boxes on the UI winform are populated using a DataTable. ie. dtUsers dtUsers is a table in a dataset. Several combo boxes are populated using this datatable. Not sure why when an item in one of the combo boxes is selected, then all the other combo boxes get changed too. This is a sample of how the combo boxes are populated: dtUsers = dsUsers.Tables["Users"]; cbo1.DataSource = dtUsers; cbo1.DisplayMember = "Name"; cbo1.ValueMember = "UserID"; The froms currency manager will keep all controls bound to the same datasource in sync. I would create a new bindingsource or dataview to bind each combobox to. ...Show All
Visual Studio "Report is being generated"-- but no data
I have a web page that generates a report for everyone,I set up the web.config this way: < location path = " Reports/MyReport.rdlc " > < system.web > < authorization > < allow users = " * " /> </ authorization > </ system.web > </ location > < location path = " MyWebPage.aspx " > < system.web > < authorization > < allow users = " * " /> </ authorization > </ system.web > </ location > If I browse this page before signing in, I can see "Report is being generated", but this message will last forever, no data will be displayed. If I browse this page ...Show All
Visual C# Calling a windows API
How can i call windows API s inside a C# program Look up P/Invoke in MSDN. The following is also a good resource: http://www.pinvoke.net/ ...Show All
Windows Forms Have forms open in the upper right corner of the screen.
I have a VB .NET application in VS 2003. It has several different forms. When each form opens, especially the first one, I would like for it to open in the upper right hand corner of the screen. Is that possible Thanks, Steve I read about the start position, and found it in help. but when I type: form1. startPosition never comes up in the list like it shows in the help. ...Show All
SQL Server Install SQL 2005 to Cluster that has SQL 2000 installed
I have a Cluster environment that has SQL 2000 Enterprise installed. I would like to install SQL 2005 Enterprise as well. What should I watch out for. Do I need to specify a named instance for the 05 install, setup is giving me the option and does see the 2000 instance Is there a document that walks through this installation Regards Hello, I would like to know why SQL needs a separate IP addresses and shared physical disks. Can't we install a SQL 2000 and a SQL 2005 instance in the same cluster group ...Show All
Windows Live Developer Forums Import/Export functionality
Is it possible to import/export the formatted content of Live Writer I would like to import a text file, format it (including assigning categories, keywords, excerpts, etc) then export all of that data out (maybe in an XML format). Is this doable with the SDK Well, in a sense, publishing is an "export" operation. You could set up a local metaweblog server and configure Writer to publish to it. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Can't deploy to Xbox 360 from GSE
All Apologies but this is a repeat post from 31-Jan buried inside another thread that appears to have died. I can't push code to my Xbox 360 from GSE. This issue has been reported by other people and their problems boil down to either having entered the 25-digit code incorrectly or, in one case, that their router didn't properly support UPnP. I've regenerated, accepted and reconfigured the key *many* times, making sure I don't have any 0's, 1's, 5's or 8's in the generated key to avoid confusion. I understand this is a one-time key so I'm not reusing an old key. I am most definitely getting the key right and choosing accept, not cancel. I have downloaded and installed Windows Media Connect (I'm running Windows ...Show All
Windows Live Developer Forums Sandbox UI
Hello List, I have a question on the sandbox UI link found in the connect.microsoft.com page. Upon following the Microsoft adCenter Sandbox UI link, I must authenticate, it does not recognize my production user/pwd. The final page states that a $5.00 charge will be placed on my credit card for account set up. Is this correct Thanks for all your help. David Hello, Your sandbox account is different from your production account. Request sandbox credentials from the representative that provided your production credentials. The sandbox UI link that you listed is correct ( https://beta1.idss.msn.com/ ). Thank you. -- Walter Poupore - MSFT ...Show All
Visual Basic search string and return the following six characters.
How would I best click a button and display the six characters that follow a specific part in a string. i would like to display in a label. for example search the above state ment for "button and " then return "display" to a label in the form. Thanks in advance!! Does anyone know why I click the button and this works the first time but freezes the second time Private Sub Button3_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Dim myString As String = TextBox4.Text Dim CompanyName As String = myString.Substring(myString.IndexOf( "class=""ygtb""><b>" ...Show All
.NET Development .Net Remote File Transfer
Hello there, before asking my Questions it is neccessary to describe my situation and task. I have a project to finalize my master work for my university. I have to write a tool for a company. I have to transfer files between client and terminal server using the remote desktop protocol. Clients are running either on Win2K or XP (Vista in future) Terminal Servers are running either on Server 2000 or 2003 (Longhorn in future) If the old Versions win2k & server2000 make it too complicated it would be accepted to get it running on xp 2003 and future OS. The main idea behind the file transfer between the the Client and TerminalServer is that it will be possible to transfer files without drive mapping. It is not wished by the company to use ...Show All
Smart Device Development How to determine if program is running in Smart Device or in Windows
I have a program written for Smart Device 2003 in VB2005 that has menus that I want to run in WinXP. The different implementations of the menu system between the two creates a problem, because Smart Device menus are at the bottom, and are a different size from programs on the Win desktop. I need to resize the form when it opens on the win desktop. Can anyone tell me how I can determine in VB2005 code whether the program is running in Smart Device 2003 or Win desktop Thanks, Dennis Lackey ...Show All
.NET Development Unwanted Promotion with SQL Express 2005
I've read through a number of forum postings now, and don't think what I'm seeing should be happening. We are installing SQL Server Express 2005 on a tablet PC, copying the database file (if necessary, meaning that the file doesn't exist) to a Local Settings location, and then trying to open the file using code similar to the following: using (TransactionScope tr = new TransactionScope()) { using ( SqlConnection cn = new SqlConnection ( BusinessCommon .DBConnection)) { cn.Open(); // Work with SQLCommands here cn.Close(); } } I am using the following connection string: Data Source=.\SQLEXPRESS; AttachDbFilename="<db file location path here>" ;Integrated Security=True;User Instance=True;Connecti ...Show All
SQL Server issue with dts.taskresult from script task
have a script task that checks for existense of a file if found it sets Dts.TaskResult = Dts.Results.Success and moves to next task and if not found it sends an email then sets Dts.TaskResult = Dts.Results.Failure but when I run the job to test for failure I do get the email but the job continues to be in yellow state it never turns red. I have to terminate it myself manually. Is there anything else I need to set Thanks in advance I find that it is easier to set a boolean variable indicating success or otherwise. you can then check the value within a conditional precedence constraint. -Jamie ...Show All
Visual C# How can I wait till the file Closes and then Fire the FileSystemWatcher event?
Hi In my code I have a FileSystemWatcher that moniters file change. if the file is modified it gets uploaded to a certain directory but now I want the fileWatcher to wait till the file is closed before uploading it. How can I do this. Please help. PJ. van de Sande wrote: There is no other option then trying to open the file, when it succeeded; upload it, otherwise wait and retry. Write this is True!!! Try to open File in a write mode in Try/Catch if succeeds then its ok otherwise wait and try again. Cheers ;-) ...Show All
.NET Development Generating sql query using C# code
How do i generate sql query using my frontend windows application C# 2005. ie developer has to select table and columns from the list box. it should look like our add query in the sql express 2005. Thanks Arun Arun S wrote: Thanks Paul June A. Domag Exectly you are correct. but i want some sample code. could you pls help in this case. Thanks Arun Hi, A sample like that is quite complicated. Its like creating a full pledged program. Just try checking 3rd party controls that generates sql. Maybe if you get lucky you might get a hold on an open source in codeplex . cheers, Paul June A. Domag ...Show All
