henryjl's Q&A profile
Visual Basic Can Classes be used to include or display UI as well or just for code and functionality
I wonder if it s good development habit to use classes to diplay and collect data from users Thanks cool, that s perfect for data issue. so how about UI logic, can I implement it in classes as well or will the regular forms do all the job without creating classes that have UI logic like ActiveX controls. Thanks ...Show All
Windows Forms Updating a Datarow in a Datatable
Hi, I take an example to make my web service and win app from this source: http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpguide/html/cpconconsumingdatasetfromwebservice.asp I made my app exactly, but I notice that in the win app they had only this Dim newRow&nbs ...Show All
Visual Basic Creating Office COM Add-Ins with Visual Basic .NET article - need help
Hello, I'm new to this type of programming and have found myself put in charge of a couple of applications that were created by a previous employee. So now I'm learning how to do this. I found the article listed in the subject on the msdn site and found it very informative and easy to read. I thought that the instructions were very much to the point and that there wasn't any confusing jargan put in. Unfortunately, after following through the ...Show All
Visual Studio 2008 (Pre-release) Load image into richtext box
Hi anybody know how to load image or any shapes like circle , rectangle and etc.. into a richtext box at runtime. thanx Sniwas TextRange tr = new TextRange (RTB.CaretPosition, RTB.CaretPosition); tr.Load( Stream , DataFormats .Bitmap); ...Show All
Visual Basic generic error occured in GDI+ (drawline)
I've just converted my program from VB 6 to VB 2005. There is a lot of graphics involved, drawing lots of lines to make models. The lines were all formerly drawn with the Line command on the forms, but now that that is gone i have run into problems switching to the new commands. My program is fairly large with many forms and modules so I was unsure about some of the things i did. I declared all the graphics in one module as follows: "Public ...Show All
Visual Studio Express Editions Directory listing
I am currently working on an archiving project. I have got it to work to some degree. It uses a folderBrowserDialog box to locate the directory to zip. Parses the string and creates the save location. It then zips and compresses the files by recursing through the directories and obtaining a list of files to be added to the zip file. Now here is my question. How could I select multiple folders in one pass And also is it possible do delete folder ...Show All
Visual C++ Linking problem with WinSock2?
F:\PSDK\Include\WinSock2.h(112) : error C2011: 'fd_set' : 'struct' type redefinition F:\PSDK\Include\winsock.h(54) : see declaration of 'fd_set' F:\PSDK\Include\WinSock2.h(147) : warning C4005: 'FD_SET' : macro redefinition F:\PSDK\Include\winsock.h(88) : see previous definition of 'FD_SET' F:\PSDK\Include\WinSock2.h(156) : error C2011: 'timeval' : 'struct' type redefinition F:\PSDK\Include\winsock.h(97) : see declaration of 'timeval ...Show All
Smart Device Development Invalidate() - NotSupportedException
using Visual Studio 2005 beta 2 / Compact Framework 2.0 I simply call Invalidate from a method within my Form and i get this -> "An unhandled exception of type 'System.NotSupportedException' occurred in System.Drawing.dll Additional information: An error message cannot be displayed because an optional resource assembly containing it cannot be found" Any idea Hi Adiraz, Note that SerialPort events are han ...Show All
Windows Forms Virtual ListView (.NET 2.0)
Greetings, I'm having performance problems with ListView control from .NET Framework 2.0 working in virtual mode. I wrote simple test program (see bellow), and I see that framework many times repeatedly calls OnRetrieveVirtualItem method for each item (In my case sometimes it can call OnRetrieveVirtualItem ten times for each item). Is this normal Why even so simple program run too slow How can I speedup everything ...Show All
Windows Forms passing variables to form
I made my textboxes on form1 public. I was able to access them through my form2, after I made a statement like form1 form2 = new form1(); Problem is, the text boxes are all empty on form2. Is this because I initiated a new form1 and therefore the textboxes are set back to their default as empty How can I access variables stored in form1 from form2 thanks. To have one form talk to another, pass the ...Show All
SQL Server Transaction context in use by another session.
I'm having a SP1 on server A. This procedure has a begin trans and a commit. In this procedure i'm inserting data into tables. This data is provided by an extrenal app in staging tables. On the tables i'm inserting data on i'm having triggers that again are starting a SP2. I'm using a cursor on the inserted table to achieve this. The SP2 only insert a record on a table that is on a linked server. For testing reasons at this moment this is ...Show All
Visual C++ Error with istream_iterator
Hi, I am new to using Microsoft VC++and STL . Just wrote a test program but doesnt seem to be working. Can any one tell me what the problem is #include <iostream> #include <algorithm> #include <list> using namespace std; int main(){ int a[10] = {12, 3, 25, 7, 11, 213, 7, 123, 29, -31}; int *ptr = find(&a[0], &a[10], 7); list<int> list1(&a[0], &a ...Show All
Visual C# don't understand this compilation error
OS: Windows XP Pro Lanaguages: C#, ASP.NET, SQL Server Program: Visual Studio .NET 2003 Hello and thanks for reading thist post! I'm getting a compilation error every other time I run my code and I don't know why it does it. I can run my code perfectly fine the first time, but anytime after that I get an error saying my namespace was defined in multiple places. I change the name of the namespace, and it'll die after I run ...Show All
Windows Forms DataGrid View - Ctl+0 to null out a combobox column
I have a DataGridView which has a DataGridViewComboBoxColumn column named "Assigned To" which allows users to assign tasks to a user of the system. The DataGridView is databound to a DataTable called "Tasks" and the "Assign To" dropdown is databound to a table called "Employees". The linkage between the two tables is employee_id. I would like the users to have the ability to un-assign a task. I am havin ...Show All
Software Development for Windows Vista Windows Vista icons. ?
Any details about Windows(R) Vista(TM) icons Colors used in Vista icons Sizes supported in Vista icons any other details Hi ALL, Try this: Press and Hold "Ctrl" and while pressing, if you use a mouse with a rollerwheel, To decrease Icon Size roll the wheel towards you, and vice versa to increase... Should do want you want!!! ...Show All
