Murthy Raju's Q&A profile
Visual C# Deleting objects
I'm using a treeview and it points to a Employee class so I can display info about the employee selected. Here are some code snips. Classes: public interface AbstractEmployee public class Employee : AbstractEmployee class EmpNode : TreeNode { private AbstractEmployee _emp; public EmpNode( AbstractEmployee aemp) : base (emp.getName()) { _emp = aemp; } public AbstractEmployee getEmployee(){ return ...Show All
Windows Forms DataGridViewComboBoxCell.Value is not the same type as was placed in DGVComboColumn.Items
Hello, Wow... another DataGridView + ComboBox post. :D My problem is that the value returned by the DGVComboBoxCell.Value property is not the same type as the objects I put into the DGVComboBoxColumn.Item collection. I have an unbound DataGridView with two columns set as DataGridViewComboBoxColumn. I am populating the DGVComboBoxColumns lists like this: ' The Lists are arrays of business objects. ' Items.AddRange() doesn't work. For Each bpart In BodyPartList form.BodyPartColumn.Items.Add(bpart) Next form.BodyPartColumn.DisplayMember = "Name" For Each injNature In InjuryNatureList form.InjuryNatureColumn.Items.Add(injNatu ...Show All
Visual Basic How you program an application to access hardware
I'm a beginning programmer and I've been looking everywhere for information on accessing hardware. I'm trying to create a program that can access my ethernet card and/or dial-up modem. See the System.Management namespace. In here you can work with classes that give you access to Windows Management Instrumentation and its hardware classes . ...Show All
Visual C++ error about"cannot be marshaled as an unmanaged structure"
i got a struct like: --------------------- public ref struct OutPacket{ int m_replyIndex; List<MainInfo^>^ m_mainInfos; }; --------------------- when i pass it to another process, i have to transfer it to intptr : --------------------- IntPtr pnt = Marshal::AllocCoTaskMem(Marshal::SizeOf(outPacket)); Marshal::StructureToPtr(outPacket,pnt,true); return pnt; --------------------- then i got a message: ********* err = {"Type 'CProcess.OutPacket' cannot be marshaled as an unmanaged structure; no meaningful size or offset can be computed."} ********* i think the trouble is that i have to process a "List<>&q ...Show All
SQL Server steps and design considerations for building a data warehouse
What are the steps and design considerations for building a data warehouse from the OLTP database Thanks. Joe. This is very open question. Here are couple of places you can start reading about this: http://www.kimballgroup.com/ http://www.tdwi.org/ There are quite a few books on the topic. The Microsoft Data Warehouse Toolkit : With SQL Server 2005 and the Microsoft Business Intelligence Toolset Edward. -- This posting is provided "AS IS" with no warranties, and confers no rights. ...Show All
Visual Studio ProxyGen tool on VS2005 STK Feb
Hi, I'm using the proxygen tool to generate a proxy for my host application. This is the first step to integrate with Visual Studio 2005 Tools for Applications. I'm executing the following command line: proxygen / i'm getting this errors: Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'ProxyGen, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A) File name: 'ProxyGen, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' ---> System.Security.SecurityException: ...Show All
Windows Forms Icon for my Program
Hi there, how can I set an Icon for my Program I know how to put an Icon on the form, but not how to set an Icon i can see on the desktop (or where ever the *.exe is). Thanks, Finch. Hi, look at this with the command line compiler, it should be possible to pass these arguments to the compiler in shardevelop, I hope. Otherwise you must use the csc.exe. Working with Resources Using csc.exe The next order of business is to examine how csc.exe can be used to embed resources (such as string tables or image files) into .NET assemblies. First up, the /win32Icon option can be used to specify the path to a Win3 ...Show All
Visual Studio Tools for Office Word application with cached data
I'm developing a word application with cached data. The application can modify the data with the cached attribute. When I save the document the data seems to be updated, but if i close and reopen the document I got an old version of the cached data. For example I create a VSTO Word Project with a string with the cached attribute. In the Startup event I save the document and in the BeforeSave event I increment the data and show it. Like the code shown below: Public Class ThisDocument <Cached()> Public TestString As String Private Sub ThisDocument_BeforeSave(ByVal sender As Object, ByVal e As Microsoft.Office.Tools.Word.SaveEventArgs) ...Show All
Visual Studio Express Editions How to fill this array?
Hello, I've the following sub: Sub fVulCombobox( ByVal objCombobox As ComboBox(), ByVal strKoppel As String , ByVal booCategorie As Boolean ) 'code, etc. End Sub I want to use the the sub. But objCombobox is an array: I want to fill it with 2: fVulCombobox({cmbLocatie1,cmbLocatie2}, "bla", False) {cmbLocatie1,cmbLocatie2} is wrong .... How to do Thanks. Hi, This is just a guess. Don't currently have a visual studio in front of me. fVulCombobox(new ComboBox(){cmbLocatie1,cmbLocatie2}, "bla", False) cheers, Paul June A. Domag ...Show All
Visual Basic control arrays
I have a project I converted from vb 6.0 which used a textbox control array. This converted very nicely and the code worked exactly as it had in vb 6. I need to add 5 textboxes or elements to the array so I copied one of the existing textboxes and cloned it, I hoped. Didn't work. The new textboxes are identical except for a property named "Index on Value", which contains the index value. The old textbox has it and the new ones don't. Does anyone know of a way I cad add this property to the new textboxes It would be so much easier than redoing the whole textbox structure. Thanks, Dick ...Show All
Software Development for Windows Vista RTM
We are currently working on WWF for for a prospect. Wanted to understand the scheme better: on windows 2003 (sp1) will Windows Workflow Foundation Visual Studio extensions cost anything, of course assuming that VS.net or VSTS license is already in place. Since it comes free with vista we have our doubts if its free with Win2k3 with VS. Thanks, -Phani that should require the same license (for the runtime components) on a valid/licensed copy of windows. There is not a licensing fee for using the designer in your application outside of that as far as I know. Matt ...Show All
Visual Studio Team System How to get the DISPLAY NAME rahter than the USER NAME in Assignments for Work Items
On TFS, the users are liste dby user name. Our user names are not user friendly e.g. ourorg3456 where the user is Joe Soap How can we get VSTS to return display names Chris is correct. You can find the details at http://blogs.msdn.com/buckh/archive/2005/11/28/497561.aspx . Buck ...Show All
Visual Basic Opening Files of External Programs
Hi friends, I am a new basic programmer.. I have 2 develop a program which stores files of diff. formats in some specific folder and then when prompted by user it should be opened in respective program. Like :: *.doc in word, *.pdf in Acrobat and so on.. ......................... Plz help mw with logic and basic code outline 2.. Hi Kebians, How fortunate you are to be learning in a vs2005 environment. What you want to do is a a simple file copy operation to begin with. There are lots of ways to achieve that. When you talk to .dot people, you'll hear a lot about classes. I think one of the best ways to learn about classes is to learn to ...Show All
Visual Basic Launch and control a command line program from VB form
I can launch a command line program such as cmd.exe from a VB form using: Shell( "cmd.EXE" , AppWinStyle.NormalFocus) How do I write data to the program as if I were typing at the keyboard How do I capture the response of the program so I can parse it I assume I have to redirect its IO streams. Can't figure out how. Dave, That gets me most of the way there. Thanks alot for your help. Here is a sample of what I ended up with. Friend WithEvents telnetProcess As New Process() Dim telnetStreamWriter As StreamWriter Friend WithEvents txbxOutput As System.Win ...Show All
Windows Forms Move a picturebox around with the mouse
I want to move my picturebox around with the mouse. A bit like on Google Maps etc. I think I need to handle the mousedown event of my picturebox. (not sure though) Been trying to figure it out for ages. Can anyone help with the syntax. Thanks very much in advance ICW Private Sub PBX_MouseDown ( ByVal sender As Object , ByVal e As System . Windows . Forms . MouseEventArgs ) Handles PBX . MouseDown Dim MousePoint As New Point ( e . X , e . Y ) Dim ImagePoint As New Point ( Me . PBX . Left , Me . PBX . Top ) MousePoint = Me . PBX . ...Show All
