Todd B.'s Q&A profile
Visual Basic class library
Could some who is already familiar with the developement environment please tell me if it is possible to build class libraries as a compiled dll file, or is this restricted to the full versions like 2003 was Thanks for any help.. I currently have a universal subscription and use the pro version of 05, however, i have previously installed the "Standard" version 03 and did infact try to create a DLL...can't from within the environment...so i tried opening a DLL project created with 03 pro in the standard and it would not even open! Personally for any one who is serious about programming, it is just one more re ...Show All
Visual Studio 2008 (Pre-release) Wish: Get WebService reference to generate ObservableCollection<T>
Sorry if this isn't pure WPF. Flame me if you wish. Since WPF extensively uses things like ObservableCollection<T> and the related INotify... interfaces, I would like it if there was a nice way to have my web service reference do things like this when calls return an array: Give me a checkbox to have my class generated with INotifyPropertyChanged (xsd.exe /edb option). Instead of putting the collection in a standard array (MyItem[]), let me choose to have it wrapped in a generic collection, such as ObservableCollection<MyItem>. Just in case I don't want to use ObservableCollection, let me choose a different collection ...Show All
Windows Forms User Group
How to retrieve the usergroup of a user Suppose that i don't know any of the groups defined in the domain (can't use IsInRole ...). Thanks for your help, Francesco This guy used reflection to call a protected method of the Identity class! Totally cool! <a href="http://www.breaman.net/archives/000008.html">http://www.breaman.net/archives/000008.html</a> using System; using System.Securi ...Show All
Visual C# C# Generics
Dear All, I have used C# 2.0 generics to build a class. the thing is that when i investigate the code using IlDasm, i could find the box with T parameters mentioned statements out there. but the main advantage is that boxing will not happen when using generics. can anyone justify this or suggest me whts wrong . regards, sundararajan.s Also, if you want to do mathematical addition, have a look at this codeproject article . ...Show All
Visual C++ error C2065: 'NULL' : undeclared identifier
Hi,I have problem to determine whether a point is a NULL point in vc++ 2005, Here is my source code: private: System::Void treeView1_MouseClick(System::Object^ sender, System::Windows::Forms::MouseEventArgs^ e) { Point mouseDownLocation = Point(e->X,e->Y); TreeNode ^newNode = treeView1->GetNodeAt(mouseDownLocation); if(newNode == NULL ) ...... } There is error whith these code,the error message is:error C2065: 'NULL' : undeclared identifier. Am I missing the head file If it is ,which file Thanks for your help. #include <string> ...Show All
Windows Forms How to detemine in which grid of TableLayoutPanel a mouse click occurred.
In the mouse click event handler for a TableLayoutPanel I need to know in which row / column the click occurred. How would I do this Thanks. Normally a TableLayoutPanel has a control in each cell. Those child controls would handle the mouse click event. Otherwise, you'll have to iterate the rows and columns of the TableLayoutPanel during the TableLayoutPanel's Click event and calculate the cell that was clicked based upon the RowStyles and ColumnStyles properties of TableLayoutPanel. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Which version of MDX to choose?
Hi! I've decided to start learining C# and MDX. Which version of MDX i should choose I thought about 2.0, but it's still beta and there's no documentation for it. What advantages does it have over version 1.1 use 1.1 its release and it works. mdx 2.0 is being rolled up in to the xna framework, and is currently not being worked on :( and in its current release, 2.0 has bugs i guessing MS hasn't said when the xna framework will come out ...Show All
SQL Server User return value of a SP in another SP (SQL Server 2000)
Hi group, I need the result of a SP in another SP. The SP I need to have the result of does not have an output param. It just returns a result. I tried the following code: SELECT @WeightedAverage = EXEC uspCalcWeightedAverage @StartDate, @EndDate, @InMarket, @InProductType, @InWeekDay I get the following error: Server: Msg 156, Level 15, State 1, Line 26 Incorrect syntax near the keyword 'EXEC'. Is it possible to fill a variable with the result of a SP TIA Regards, Sander This will store the result of an sp call declare @WeightedAverage int; execute @WeightedAverage = uspCalcWeightedAverage @StartDate, ...Show All
Visual Basic Listbox update problem
This should be an easy problem, i bet there is someone who can help me. I'm a begginer, so thanks in advance! I'm working in VB 2005 Express. The problem is: in one form there is a listbox with a MS Access database source, and in the other form si a datagridview throug which users change that particular data. Datagridview control works and updates perfectly, but how can I update (or refresh ) listbox in the first form after the changes have been made What is the method and syntax for this (When I close the program and start it again, listbox is fresh and updated, but I would like to do ti without restarting.) Thaks, Tomislav ...Show All
Windows Forms event on scaning barcode
hi , i am using vb.net 2003 and i want to scan barcodes with the scaner i want if the scaner completes the scaning doesn't matter what the length is the next textbox is focused i tried it on different events but could not find the proper event can any body help me best regards ali shah The problem appears to be with the&nb ...Show All
Visual C# ?porting to VC++?
I have heard about ppl doing it but how can it be done, im guess porting vc++ to C# would be a nice trick to know how to do. can someone explain or point me into a direction of where I can read about it. thanks Basically you need to know both languages, as each has facilities that the other does not. So, it depends on the application how easy it is to port, and I doubt it would ever be a completely trivial task. I find it easier to expose C++ code via C++/CLI to be called by C#, I've done that with some of my old C++ image processing code a few times, and also to access C++ SDKs from C#. ...Show All
Windows Forms Combobox
I am very new for Windowsform.please help me. I haev a problem about 'Combobox'my code like this. Sub showFName()'FNaem is FullName conn.Open() Dim strsql As String strsql = "Select MName,MLastName,MemberID From Member" Dim comm As New SqlCommand(strsql, conn) ...Show All
Visual Studio Express Editions PictureBox-GetPixel-Color Problems
Hi everyBody, I am new to VB2005. I would like to ask some question about Get Color in Picturebox. i had see some previous Thread for Get color, which say that using GetDC(0) and windows mouse pointer to get the X ,Y for the Full Screen But i only want to loop a Picture(BitMap) Size 50,20 pixel to get which Pixel have color or not Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click TxtBMP = Bitmap.FromFile("c:\Test.bmp") PictureBox2.Image = TxtBMP PictureBox2.Refresh() Dim dc As Integer = getdc(0) ' Class member variable Dim PixelX, PixelY As Integer ...Show All
Visual C# Encode
Hi what is the best way to encode code What do you want to encode The source code, your assembly You can use a obfuscator, here is a little list of obfuscator's for .NET: {smartassembly} Decompiler.NET Deploy.NET Salamander .NET Obfuscator Semantic Designs: C# Source Code Obfuscator Spices.Net Thinstall Demeanor for .NET XenoCode .NET Obfuscator and Optimizer ...Show All
Smart Device Development infrared!
Hi. I want to be able to send data (hex codes or whatever) using the infrared ports. I have imported the System.Net.Irda reference and able to access the IR classes. However, I do not wish to connect to a device but rather send data. The device I am sending data to will be a dumb device really, just as a "reciever"... this can be a remote control recieving box or a TV IR reciever for example. IS it possible to do this how I cannot seem to find a way in the .NET classes as it seems you have to connect to the destination then write data to the stream. Thanks! I was working on conversion of the above article to C#, but eventually found th ...Show All
