nlitement's Q&A profile
Windows Forms How a panel inherits a form in VB or C#?
In my project version 1.0, there are many forms done already. Now I need to add some new features, in which I need to display the forms (read only this time) to compare inside tab pages or panels. In .NET, we can have a form inherit from another form, but now how to make a panel to be the same as an existing form It&nbs ...Show All
SQL Server a generic error occurred in gdi+
I'm receiving "a generic error occurred in gdi+" processing error while running a preview of my report inside visual studio. When this report is opened by a client, their browser will just hang (Not Responding). Other reports don't have error. The report will not render any chart although thousands of record will be need to output. Hope anyone can help. Thanks! When Drawing an Image from a Stream, make sure that the Stream has been re-positioned back to the beginning if it has been accessed before. GDI+ is very powerful; too bad it doesn't have a more robust error message interface. Are t ...Show All
Visual Basic Help with formating
Hi Guys, I'm new to vb6 and have a problem with formatting. If at the end of my code, but before 'end sub', I enter the following ( yes its the sandwich maker, I asume its universal. lol) txtOrder.Text = txtOrder.Text & Format (Cost, "$#.00") I believe I should get a result that is formated like..... $3.75 ........ In my text box I get a result that rounds up to the nearest whole number. i.e $4.00.... $5.00 .....$6.00 ..... If anybody has any suggestions, I would be most grateful. Hi Thanks for your comment. 'Cost' is recorded in Option Explicet as.... Dim ...Show All
Visual Studio Team System TF80071 connecting MPP to Team project
Hi, I'm trying to connect MPP with my Team Server. When I click "choose team project" I get the dialog that list the projects. I select one (no matter which ) and get error TF80071 "team foundation encountered an error while acessing the work items database..." I followed every advice in the other thread regarding this error, including changing the mapping and turning off the connection to the office server (which I don't use). i still get the same error. Any idea what's wrong Thank you, Ken Hi Ken, Can you create a config file (WinProj.exe.config in the folder where Wi ...Show All
Windows Forms Populating DataGridView ComboBox
I have a DataGridView that has a ComboBox column. I'm trying to figure out how to populate the ComboBox dropdown list at runtime. I know I can fill it at design to by editing the DataGridView columns. However at runtime I cannot seem to find a way to modify the list of items that appear in the dropdown list for a ComboBox column. I don't need to set the item's per ComboBox as they all need the same list of items, so I just need a way to modify it for the whole column in one hit. Any help So I assume there is no way to easily modify the items in the dropdown list of a ComboBox column in Visual Basic 2005 at r ...Show All
Software Development for Windows Vista SQL Database Setup and Persistence Service
I try to build a ASP.NET web application, which should use SQLPersistenceService, SQLTimerService and SQLTrackingService. I setup a database called Worfklow, where I put in all the tables for Persistence, Timer and Tracking. I also added the services to the runtime configuration in my web.config file. But it doesnt work. Here is my web.config file: < xml version = " 1.0 " > < configuration xmlns = " http://schemas.microsoft.com/.NetConfiguration/v2.0 " > <!-- This section is for the workflow services. --> < configSections > < section name = " WorkflowRuntime & ...Show All
Visual Studio Team System Regarding the ViewState
If the form name is "Form1".... can i manually set the view state parameter {{form1.viewstate}} to avoid getting redirected to some other page...or is there any way to set this view state instead of {{$HIDDEN1.viewstate}} as my source code uses javascript. You will need to use an extraction rule. Take a look at the out the box rules to see if they will work. If they will not, then you may need to write a custom rule. Here is a blog post with a good example: http://blogs.msdn.com/joshch/archive/2005/11/17/494164.aspx Here is a link to help about extraction rules: http://msdn2.microsoft.com/en-us/library ...Show All
Windows Forms How to create a Wizard with Windows Forms?
Hi i want to create a simple wizard for an application consisting of a series of windows that take date from the user and store it in a file. I wonder if its possible to create a wizard with Windows Forms I use Visual Studio 2003 and Visual C# standard edition. Thanks in advance Yes it's possible. There are a few articles online about creating Wizard so have a search around. But I'll cover the basics here. When you program a form you tend to put most of the logic behind the form. For example, on button click do x, y and z. With a wizard approach you'd might think of putting code behind each n ...Show All
Windows Forms How to create those fancy buttons?
Hi, According to this MSDN Article: Shaped Windows Forms and Controls in Visual Studio .NET custom controls can be created using the GraphicsPath class to draw geometric forms like for example a circle to create a round button. While this is an improvement compared to the default button shape, it is still not what i'm looking for. I'm thinking about some attractive buttons like those you can find in Microsoft Antispyware, which i don't think to be possible to draw using this technique. Is it possible to create some bitmaps with a vector graphic application and use them as the shape for controls, the same way you may draw a ...Show All
Visual Studio Express Editions I can't register VS 2005 Express edition
I'm passed the 30 day expiration date, so when I try to open up VS 2005 Express Edition it comes up with a dialog box telling me I must register. When I click the link "Register now", it takes me to a page asking me to sign in to Microsoft. I enter my passport user name and password, click "sign in", but then it just takes me to a blank page and nothing else happens. I can successfully use the same username and password to get into my Hotmail account. How can I register this product Thanks, Tim Tim, have you tried it a few times It might have been a temporary glitch. If you s ...Show All
Visual Studio Express Editions How to get MFC libraries for Visual C++ Express 2005
hi, I have a software package which works well during VC6. Now I tried to compile it in VC++ 2005 Express. Most of projects in the package are no problem. But there is only one project which is a GUI application (using MFC) always got some problems. At first, it missed some lib files. So I copy some lib files from VC6 directory to current lib directory. Then I got the following error. Anyone can give me some ideas Linking... show.obj : error LNK2019: unresolved external symbol "public: int__thiscall CWnd::KillTimer(unsigned int)" ( KillTimer@CWnd@@QAEHI@Z ) referenced in function "public: void __thiscall CshowApp: ...Show All
Visual Studio VS C++ 2002 .NET problems
Hi all, I have been using this without problems for the past year but all of a sudden I can't open certain solutions anymore. I have 7 applications and 7 setup projects in this solution but VS always crashes while opening the solution. I have tried to recreate a new solution by adding the projects from scratch but that doesn't help. I then checked the Help - Check for updates from inside VS and it downloaded service pack 1, however this installer fails to open with the following dialog: "The upgrade patch cannot be installed by the Windows Installer service because the program to be upgraded may be missing, or the upgrade patch may update a ...Show All
Visual C# Sending mail with Outlook Express ?
I have a program that sends email, using C#. The problem is, the client wants a copy of the mail in their outbox. I've made this work by sending the mail in Outlook 2003, but apparently, most of the users have earlier versions, or (predominantly) Outlook Express. I don't want to generate an email that they have to click 'send' on, I want to send the mail, and stuff it into their Outbox. It's bad enough that outlook 2003 makes them wait 5 seconds and click a button to make it work. Any suggestions on how to further automate this process, or to automate it for Outlook Express, will be met with much appreciation. Thanks for reading Don ...Show All
Visual Studio Team System windows sharepoint services error
windows sharepoint services error " cannot create folder "_vti_pvt" wat doest it mean and how to slove this error Hi, Can we get a little more detail on this please What operation were you running when you hit this problem Is this the full extent of the error message Is Sharepoint installed and up and running Is TFS installed, and if so which version Is Sharepoint installed in web farm configuration Thanks, ...Show All
.NET Development STARTTLS support?
I'm struggling a bit with a VB.Net 2005 app that requires SMTP STARTTLS support, both from the client (initiating) and from the server (receiving) side. STARTTLS allows email clients and servers to begin with a non-encrypted TCP/IP session and then "upgrade" the connection using encrypted TLS upon the client issuing the STARTTLS command. I believe I can use the standard socket class and then overlay the SSLStream class, also bringing in the certificate class. Thanks for any insights, code snippets, etc. that you may have. -Jim You should use EnableSSL=true. You say that once you used it you are getting ...Show All
