gute1's Q&A profile
Windows Forms Combobox's behavior in dataGridView
I have added a combobox column to the dataGridView control. However, when I choose something from the combobox and leave the cell, the selected value gets disappeared: the item changes to blank. I haven't written any code in any of the events. How can I make the selected values stay in the grid private void AddComboBoxColumns( int pInt_InsertAfterColumn) { DataGridViewComboBoxColumn comboboxColumn = new DataGridViewComboBoxColumn (); comboboxColumn.HeaderText = "Action" ; comboboxColumn.Items.Add( "In" ); comboboxColumn.Items.Add( "Out" ); this .dataGridView1.Columns.Insert(pInt_InsertAfterColumn, comboboxColumn); } ...Show All
Visual Studio Express Editions Convert std::string to LPCWSTR (best way in c++)
Hi! How can I convert an std::string to a LPCWSTR What is the best way to do it in C++ Thanks. "Ciao guaglio!" FabioDeSantis wrote: How can I convert an std::string to a LPCWSTR What is the best way to do it in C++ Instead of using a std::string, use a std::wstring (also called a std::basic_string<wchar_t>). I get the feeling you want to pass a std::string type to a Win32 API. Those APIs don't take LPCWSTRs (or even LPCSTRs), they take a LPCTSTR (long pointer to a tchar-string). In this case, your question should have been: "How do I convert a std::string to a LPCTSTR " Inst ...Show All
Windows Forms RichTextBox control indent problem
Is there any way to make the default left indent becomes right indent I would like to align a series of numbers. richTextBox1.SelectionHangingIndent = _indentAmount; ...Show All
.NET Development System.Web.Mail Help Please...
Hello, I've tried searching and searching, but I've had no real luck. I'm working on sending an email via an external SMTP server (I'm trying to use Gmail.com, could this be a problem ) and then send to another email, which also happens to be a Gmail.com address. Now, before posting my code, I'd like to say, what I'm developing this for is basically a plugin for a program based on .NET 1.1, so I don't believe that System.Net.SmtpClient is an option, so therefore I'm stuck with System.Web.Mail. Dear Vikram & Dmcneil I am Also encountering the same problem as you both guys were, and you both have helped each other and find th ...Show All
Smart Device Development Need SQLCE samples
Hi, I was looking for some SQLCE examples for .net 2.0 and sql server 2005 mobile edition. I'd really appreciate it if anyone can provide me this. Thanks Hi, Here is a sample on Gotdotnet site: http://www.gotdotnet.com/Community/UserSamples/Details.aspx SampleGuid=67280a8b-5473-47eb-aec2-710117f04b23 Regards, Vikram ...Show All
SQL Server Complex query involving multiple tables
I'm attempting to create a complex query and i'm not sure exactly how i need to tackle I have a series of tables: [tblEmployee] empID empName deptID jobtID [tblDept] deptID deptNum deptName [tblJobTitle] jobtID jobtNam [tblTrainng] trnID trnName [tblTrnRev] trnrevID trnID trnrevRev trnrevDate [tblEduJob] ejID jobtID trnID [tblEducation] eduD empID trnrvID eduDate The jist of this database is for storage of training. The Training table is used for storing a list of training classes. The TrnRev links and shows each time the tra ...Show All
.NET Development Net.Framework Redistributable (dotnetfx.exe) - Can anyone redistribute it with an installer?
Hi Net Developers I have written an add-in for Excel that references a .dll I wrote in Visual C++ and that includes some managed code. Therefore if I want to deploy it to other computers, I understand that I need to ensure that those computers already have Net.Framework installed on them, otherwise my dll won't work. While I have had no problem locating the latest version of the Net Framework redistributable dotnetfx.exe, I cannot find a Microsoft document confirming that a developer is entitled to redistribute the dotnetfx.exe file as part of non-Microsoft package. Does any one know where I can find confirmation that software devel ...Show All
Visual Studio Team System Manage Change request & symbol using in visio file !
I can see you have Establish Product Integration Procedures, Establish Verification Procedures activities in ProcessBootstrap.vsd and I wonder what you want to show here Can you explain more detail about two activities Why do you put them in "Change request control" In my opinion, I think Manage Traceability of requirement and Perform Configuration Audit is response to Configuration Management in CMMI, right If right, why do you put them in "Change request control" :) At the first time when I read the visio document, I guess the meaning of the sign: The black circle is used to show a signal or event, the hollow circle is used to show a ...Show All
SQL Server how do I determine how many columns there are in a file?
Hi, I have a few different files in a directory. I want to take each file and determine which columns and data types it has. How can I know how many columns there are in a file Thank you. Columns. That depends entirely on what you define a column to be. How is it delimited Column data-type. In a file the type of every column is text/char/call it whatever you want. A file is just a text string. You give semantic meaning to those strings (e.g. data-types) which you define yourself. There are a million and one answers to your question given the information that you have provided. Only you ...Show All
Visual Studio Express Editions printing MSchart in VB2005
I am having lots of trouble trying to print a chart in VB2005 I get this error now The runtime has encountered a fatal error. The address of the error was at 0x7a005c3d, on thread 0x11c4. The error code is 0xc0000005. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack. this is my code : AxMSChart1.EditCopy() If My .Computer.Clipboard.ContainsImage() Then #### error here ###### Dim grabpicture As System.Drawing.Image grabpicture = My .Computer.Clipboard.Get ...Show All
Windows Forms Child Form Location Problem
Hi all, i has a MDI application in which there are 5 child forms and a parent form. i made all chid forms 1) borderstyle to none, 2) control box to false, 3) window state to maximized so that every time a child window opens it will be in the maximized state. It is happening what i expected for the&n ...Show All
Visual Studio ASP.NET 2.0 / VS 2005: Invalid class string exception on report load
Hi I'm using: Crystal assemblies: 10.2.3600.0 ASP.NET: 2.0.50727 VS 2005, VB.NET When I try to load a report the following exception appears: => Invalid class string. ------------------------------------------------------------------------------------------------------------------- Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Runtime.InteropServices.COMException: Ungultige Klassenzeichenfolge Source Error: Line ...Show All
Visual C# Is it possible to "melt" multiple dlls into 1 large dll?
Hi, We are developing a class library, and currently the library spans over several Visual Studio projects, both C#, managed C++ and unmanaged C++. This again means that we have several dll-files. When time comes to sell our class library, we would like to sell just 1 large dll-file instead of all the dll-files we have now. Finally, we use a few 3rd-party dlls and some unmanaged C++ dlls, which we also would like to "combine" or "melt" into the single large dll. Is this at all possible If not, how can we at least reduce the number of dlls I know we can combine e.g. all our C++ code into 1 project and get 1 dll and do the ...Show All
.NET Development Use .net dll in VB6?
I want use a .net dll in vb6. I have registered dll with resgam. I have generated .tlb file. I have add in references tlb file. But when I run it tak error "File or asembly name xxxx , or one of its components, was not found". Before register with resgam the error was "ActiveX component can't create object". Do you know how use .net dlls in vb6 Thanks _______________ HipHop Directo Foros de musica you must expose it as a COM object! There is an option in the properties window to make the assembly down to the class as exposed to COM! ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Implementing firing and particle system
Hello guys, I'm making a 3D game using DX 9. It should be a 3D space shooting game. I would like to ask how I should implement firing. 1) as other objects in GameEngine;s sprite vector => shall I keep some objects hidden = so I don't have to create new when firing, just to make them active and place them in the proper position. 2)"machine-gun" firing implement as particle system But then I will have to make other collision detection system just for particles,right Presently, I'm using sphere volumes for CD. BTW, I wonder if there is any good tutorial to implement fire or Rocket Engine's trail on the internet, ...Show All
