Hua Wang's Q&A profile
Windows Forms Splitcontainer : very strange behaviour ( a bug ?)
I have a form with a splitcontainer with a Datagrid in panel1 and some textboxes in the second. When I set the focus to one of the textboxes in the in panel2, while the grid in panel1 has the focus, that textbox receives focus, untill then no problem. But then, when I start tabbing, the next textbox that receives focus is the first one in panel2, so taborder isn't respected. If I pass the focus to the first textbox in panel2, I have to press TAB twice before a get to the next control. After a lot of searching, I managed to mimic this behaviour like this : create a form and put a splitcontainer on it put some textboxes in the r ...Show All
Visual Studio How to debug a dll with an executable file?
I have made a DLL with Vision Studio 2005 and tried to debug it with an executable file called CANoe32.exe which I have specified in the property settings. Whenever I start the debug a window with the error information will popup " CANoe32.exe doesn't contain any debug information (no symbols loaded), do you want to debug anyway " If I choose "cancel", a window in Vision Studio will show me much failed information like " load CANoe32.exe no symbol loaded" " load ntdll.dll failed no symbo loaded" and so on. I have tried many times but failed. I don't know why. Any help will be appr ...Show All
.NET Development Engine R&D
hi, i am chong, i am a C# developer. Currently, i am doing a research and develop a project. This project architecture is i need to develop a distribute engine to collect the data from the server and transfer the data to a centralized server to process. The question here is the communication between the engine and the server is either upstream or downstream (Note: My upstream meaning is when the engine getting any data, it straight foward to the centralized server. Meanwhile, the downstream meaning that the centralized server will try to request the data from the engine.) For the message transaction between the engine and server, what factor ...Show All
Windows Forms Icons in TreeView disappear in WinXP
I uses icons in a TreeView. When the program runs in Windows 2003, it looks fine; but the icons disappear when the same program runs in windows xp. The program is built in Whidbey Beta2. In Beta1, this problem does not exist. If You have Application.EnableVisualStyles() in code remove it. It has helped me For more details look this: http://rungesrand.blogspot.com/2007/09/what-happened-to-treeview-icons.html ...Show All
Visual Studio Express Editions How do I add a Real Time Clock to my Application?
I am very much a newb to VB but want to get started on an Alarm Clock program, I have viewed the first 6 videos here http://msdn.microsoft.com/vstudio/express/vb/learning/default.aspx So thats about as fars as my knowledge goes. I havent been able to find a Clock controll to add to my project, so how do I add a Real Time Clock to my project so that I can perform different functions based on what time it is Add a timer control to your form, in the toolbox under "Components", which fires at least once a second, or whenever you want your clock to update. Then you can find out the current tim ...Show All
Visual Studio Express Editions Data Binding
Hello, I am trying to bind a simple textbox within my code to the datasource as follows; Extension is passed in from a textbox the datagridview works fine Private Sub loaddata3( ByVal extension As String ) conn.ConnectionString = My .Settings.Database1ConnectionString sql = "Select * from data where lastname = '" & extension & "'" da = New SqlClient.SqlDataAdapter(sql, conn) da.Fill(ds, "data" ) DataGridView1.DataSource = ds.Tables( "data" ) 'con = New BindingSource 'con.DataSource = da 'TextBox4.DataBindings.Add("text", con, &q ...Show All
Visual C# Passing a string from c# to managed c++
Can anybody tell me the best way to pass a c# string to a managed c++ method that takes a const char* argument If you're using Managed C++, why not expose a more .NET-friendly method that takes a System::String instead You can then handle the conversion to char* in the C++ code (using Marshal::StringToHGlobalAnsi for example). ...Show All
Windows Forms How to make ScrollBar work with a panel
Hi, I have a panel that alters in size. And when the size gets larger than the container the panel is in I want a scrollbar to appear. I have set the AutoScroll property of the panel to true but it doesn't seem to work... You need to nest panels then. Put a second Panel inside your one panel, then set autoscroll on&nbs ...Show All
Visual Studio Express Editions problems with deplyment
I am using iis 5.1 on a windows xp computer. I have created a webpage in asp that works perfectly, except for when i try to login it says somthing about sql server connection string and how sql server isnt enabled for remote assistance. The only problem with that is i dont have sql server installed on the machine. Thanks J.D. Hi JDaddy, A cordial welcome to the MSDN fora to you. I have a belief that if you were to take a moment and read the post at the top of this forum about how to receive an optimal answer to your question, that it would benfit you and all users of the community. Enjoy! ...Show All
SQL Server Send Mail
in SQL2000 there was a stored procedure XP_SMTP_SendMail . Is there something similar in SQL2005 Look for database mail in the new sql server 2005: http://www.sqlservercentral.com/columnists/cBunch/introtodatabasemailinsql2005.asp (XP_SMTP_SENDMAIL will continue to work anyway) HTH, Jens Suessmeyer. ...Show All
Visual Studio Team System How to: Customize the build reports
Hey there, I already know how to add lines in the build log file. But now I need to add information to the report that ends up on the project portal. I have read the SDK part about extending the Team Foundation Reporting Warehouse but I'm not sure this is what I'm looking for... Any pointers Thanks!!! Nevermind the last post!!! Dont know what I was doing wrong back then, it worked perfectly this time... Then again I had some problems with user rights in my previous installation... Anyway I'll take a look and see what I can find... ...Show All
Visual C# Reference value
I have the following class that lets the user change a quantity via a dialog box. public partial class QuantityForm : Form { double Quantity; // storage for passed in quantity public QuantityForm(ref double quantity) // pass as ref so it can be changed { InitializeComponent(); Quantity = quantity; / ...Show All
Visual Basic Set mousepointer
Hello, How can I set the mousepointer on a place by fill in the x- and y- coordinates in a textbox Take a look at cursor.position ...Show All
SQL Server Making outbound HTTP requests from SQLCLR
Hi, I have written a C# console application that adds a message to a SB queue and a C# stored procedure that reads the message from the queue. I have had so many problems that I'm beginning to doubt the usefulness of this, but that is probably just my frustration speaking. I am stuck on putting an XML message into the queue and reading the XML in the stored procedure. The console app has a simple object called Message. This class has 2 fields, a guid and a string. I serialize the object into XML using XmlSerializer. This results in an XML string that looks like this: < xml version="1.0" encoding="utf-16" > <Messa ...Show All
Visual C# How can I duplicate elements in a windows for - like groupboxes or image objects
Hi all- I am having trouble finding an answer to my problem. I would like to add a bunch of master images to a project, then I would like to loop over an xml file. For each node in the xml file, I want to add a new groupsbox to my windows form. Then for each sub element in the node, I want to add a picturebox object inside the groupbox. Has anyone done anything like this before or know of a way to do this I can work with the XML file with no problems, I am having problems duplicating objects and adding new objects to my windows form. Thanks for the help! Matt As I mentioned in the original posting BeginInit and EndInit are ...Show All
