medel's Q&A profile
Windows Forms Trouble adding a ComboBox column to my datagridview.
Here is the deal guys. I have the following tables: tbStatus(idStatus,Name); tbUserAlbumJob(idJob,idAlbum,idUser,idStatus); idJob, idAlbum and idUser are FK to other tables: tbJob(idJob,Name); tbAlbum(idAlbum,name,etc...) tbUser(idUser,Name) I want to display the following columns at the datagriedview : tbAlbum.Name/tbJob.Name/tbStatus.Name But I want to add the Status column with the the rows at tbStatus as a ComboBox and the selected value to be the one at the tbUserAlbumJob column idStatus. I can add the first 2 information easily but when I try to add the idStatus collumns as an ComboBox or I get a default exception or it won't show the default selected value from the tbUserAlbumjob. The deal is I want to show this info ( tbAlb ...Show All
.NET Development Reading Excel worksheet
I'm trying to get the contents of a single cell in excel and display it in a textbox. How do I do this My excel sheet is not in a table format. In the example from the link, "SELECT SalesMonth, TotalSales, PercentageChange1Year FROM [Sheet1$A1:E24]" Does this statement read a single cell or a whole column or row that has those names How can I call cell "C14" for example, b/c the data that I need is scattered about the worksheet ...Show All
SQL Server unable to access "install windows components"
I didn’t know where to put this so sorry if this is not the appropriate place. I am running Windows XP pro sp2 with visual studio 2005, ms sql server 2005, and a number of other applications. My problem is that I am not allowed to install new windows components(I want to install IIS). When I try to access from either control panel, add/remove programs, Install new windows components or directly from the winXP cd I get the following error in a pop-up form and I can only press "OK": "Another copy of Setup is already running. Complete the other Setup or restart Windows." I am not running the instance more than once. I do this as the first thing after a restart with the same result. When looking at the processes in the task manager I cant see ...Show All
Windows Forms Disable Tree view checkbox
Hi, I have placed a tree view in windows form and made as disable. Now checkbox also disabled but still the checkbox shown as enabled. How to make tree view checkbox look like disabled as normal checkbox Thanks Balamurugan ...Show All
.NET Development How to make comunication between two different EXE (or DLL) projects by COM+?
Hi all, please does anybody knows how to create in VB.Net (or C#.Net) COM class which should make communication between two different projects I would like to have for example : App_A which will has something like : .... Dim objGate as object objGate = CreateObject("ComGate.GateOne") objGate.FoundError(err.description) ..... App_B which will has something like: Public Class AnalyseError private withevents objGate as ComGate.GateOne public sub Start() objGate = ("ComGate.GateOne") objGate.CatchAllError() 'After this row, will COM app start sending all errors which will found in App_A to App_B by OnErrorFound event end sub ...Show All
Visual Studio Tools for Office how to create a new Tools.Word.Document object?
Hi Cindy, Thank you for your repply. There is another question: If I already have a ThisDocument class in a project, can I get its instance by passing a IRuntimeServiceProvider object to its constructor in another project If it is possible, what the IRuntimeServiceProvider is How can I get it I wrote a new class which implemented the interface, and return null in the GetService() method, but it was no use... Thanks, -Noah Hi, Creating code-behind objects such as Microsoft.Office.Tools.Word.Document directly from code isn't supported. Moreover, these types aren't remotable so you could not pass instances between projects since they would be running in seperate AppDomains. If you are try ...Show All
SQL Server How to divide a row data to multiple row in one table by SSIS?
Hi, Experts, I have a data table from a old system. There are 10 data fields stored in one row at this table. How can I seperate those fields into another table to be 10 rows Any component in Data Flow can I use (I have tried several component...) by the way, the original table is a large table, contain 3,000,000 rows. Thanks for your all assistance. If the Unpivot and Multicast options do not work for you then you could probably just do this in a custom or script component. Not sure why you think 30 million rows is too large, if that is the number of rows you should have then why it ian issue I don't get what you are trying to do. If you are still struggling with this then could you write som ...Show All
Software Development for Windows Vista Changing default speaker configuration on Vista
i am preparing application to test sound at different speaker configuration for windows vista and windows XP. for doing this i am using API SetSpeakerConfig() to set the different configuration and API GetSpeakerConfig() for getting same configuration. this is working fine in Windows XP. but not in Windows Vista. The call to SetSpeakerConfig() succeeds, but doesn't actually change anything. Is there any way other than by using the Sound control panel. Hi Mitch, Okay, I found a way to set the speaker configuration. However, it's not that clean... Here is the step required... 1. Found the right DeviceTopology which corresponds to our wave device which contain the IAudioChann ...Show All
Windows Live Developer Forums Adding html control with onclick event
I have not been able to wire up an event to html controls that i have added to the map. i've simplified what I was attemptring to do to just adding a button and clicking on it. This will not launch the alert box when i click on the button added to the map. Are events not handled for added controls var vm = document.createElement( "INPUT" ); vm.onclick= alert('please work')" ; vm.id= "fre" ; vm.value= "Click" ; vm.type= "button" ; vm.name= "fre" ; vm.style.top = "400px" ; vm.style.left = "400px" ; map.AddControl(vm); I was recently trying to do the same thing and found you have to attachEvent t ...Show All
Visual Studio Express Editions Problem with Tabcontrol
Hello everybody! I ran into a problem using the .NET 2.0 Tabcontrol: I need to have the single tabs left-aligned instead of top-aligned, but when I set the alignment property in the visual designer to "left", something goes wrong with the control. Eg. the text displayed on the tab registers disappears and the whole control seems to look a little strange (can't point the finger on something specific though...). Without the text on the registers the thing becomes somewhat useless. So, is there a way to fix it or any kind of work-around Thanks a lot, Tobias Koerner Here's a C# port, unfortunately I have the same problems in the Designer. Perhaps OnHandleCreated() is not getting calle ...Show All
Visual Studio Express Editions Visual c++ 2005 Expression Edition ITA & MASM 8
Can I install MASM 8 with Visual C++ 2005 Expression Edition italian version Thanks. I've downloaded the setup file but this is the error that MASMSetup contiunes to notify me: "Microsoft Visual C++ Express Edition 2005 required!" P.S. I've got an original license and not a cracked version.... ...Show All
Visual Studio 2008 (Pre-release) DATA BINDING: Problems attaching a ValidationRules and Converter to a Binding - BLOCKING
I would expect this markup to invoke my validation object and in turn invoke my converter object. Any idea why its being ignored Actually, the converted is being called once for Convert, but never again. I do change the bindings for this control in code, so I'm wondering if the validation and converter mappings aren't updated by the binding. However, I do fire a PropertyChanged event on the original source property, so it should be picked up. Resources < src:ExposureConverter x:Key = " StringToNumConverter " /> < src:ExposureValidation x:Key = " ExposureValidation " /> Xaml page < TextBox HorizontalAlignment = " Center " Height = " 30 " Margin = " 10,10,10,10 " Name = " Exposu ...Show All
Windows Forms How can you tell if an object implements an interface through reflection?
Hi All, I have a master class that holds through a set of properties a series of other objects. Some of these objects implement an interface I defined. I want to be able to dynamicaly add a series of user controls to my form for each object accessed throogh the properties of my master object the implement my interface. The code below reuns throgh the properties of my master class (clsProject) and displays the object type in a message box. How can I go one step further to find if the object type is an implementation of my interface Dim P As clsProject = Me .Tag Dim ObjectType As Type = P.GetType Dim Properties() As PropertyInfo = ObjectType.GetProperties For Each PI As PropertyInfo In Properties MsgB ...Show All
.NET Development Problems receiving packets from socket
Hello! I'm new in this forum and in this awesome programming language. I came from Java and I'm actually doing a speed learning in C#. We actually have a single problem that it drives us crazy. We are connecting a serial old device in a TCP/IP terminal server (with a special RJ45-RS232 cable). In fact, the device receives the petitions from the client and sends them the requests to its sender. The device, I said, is and old device that sends the values of patient parameters that we ask it to send. We, then, create a Socket from our computer to the terminal server (is a Lantronix Multiport device server) and make the process of connect to the device, ask the parameters and configure which parameters we want to receive and it starts to send ...Show All
Visual Studio Team System Schema Compare - Plumbling for Transaction Support Bug?
When I do a schema compare, I have 'Include SQL plumbling for transactional synchronization scripts' unchecked. IOW, I do not want my scripts to contain any transaction support. However, I've noticed in some cases, DBPro adds transaction support anyway. It doesn't do it for the entire script but only in those cases where DBPro decides to rebuild a table (such as when column orders in a table between source and target are not the same). Below is an example. This was generated with the Plumbling option turned off. Is this a bug Thanks - Amos. --------------------------------------------------------------------------------------------------------- PRINT N 'Rebuilding [dbo].[ProjectBillingSchedule]' GO SET TRANSACTION ISOLATION ...Show All
