Ken Popkin's Q&A profile
Visual Studio Express Editions Starting Over?
Ok. I have had VB express for about 3 weeks now. I have 0 experience with programing. Sorry, all you techy people. But I have learned some cool things. But as I tried to jump into the fire ( and its hot ) i found nothing but frustration. Hence, I have improved on my "google" searching abilites and might add found "never before patience." Says my wife. Any way. Too bad for all of the very nice people that have put up with my "trey" annoying posts asking horribly bad questions. Why You may ask Well because I am not giving it up thats why. I have this need to learn. Its a very bad habit know. So I am starting over ...Show All
Visual C# Do you know what's the different between "equals" and "=="
Hi, Do you know what's the different between "equals" and "==" No, you *can* use == on string variables, as System.String overrides == operator (note that both sides must be string variables, otherwise System.Object's == operator is called, which does a reference comparison) string s1="Test"; string s2="Tes"; s2+="t"; /*prevent string interning*/ Console.WriteLine((s1==s2)) //prints True ...Show All
Visual C++ simle form in c++
CODE bool InitWindowApp(HINSTANCE instanceHandle, int Show); int Run(); LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR pCmdLine, int nShowCmd) { if(!InitWindowApp(hInstance, nShowCmd)) { ::MessageBox(0, "Failed to create Window!", "Fail", MB_OK); return 0; } } bool InitWindowApp(HINSTANCE instanceHandle, int Show) { WNDCLASS wc; wc.style = CS_HREDRAW | CS_VREDRAW; wc.lpfnWndProc = WndProc; wc.cbClsExtra = 0; wc.cbWndExtra = 0; wc.hInstance = instanceHandle; wc.hIcon = ::LoadIcon(0, IDI_APPLICATION); wc ...Show All
.NET Development Rijndael Algorithm + Padding error...
Hi all I am trying to encrypt and decrypt data using the Rijndael alogrithm. I have been successfull in encrypting and decrypting the data in one go. However problems arise when I attempt to save the key and the IV value and return at a later time to decrypt the data, The error I am getting is as follows: "System.Security.Cryptography.CryptographicException: Padding is invalid and cannot be removed." Here is the code that I am using to encrypt and decrypt the data: Imports System.web Imports System.web.services imports system.web.service.protocols imports system imports system.text imports system.secu ...Show All
Visual Studio Express Editions Suddenly my Form1 is HUGE!
Visual Basic 2005 Express Edition: My debugging sessions have been going fine, suddenly my Form1 is HUGE! My screen mode is still 1024x768, but, my Form1 is greatly enlarged - like it is in 800x600 mode. I don't know how that happened! I compared the Properties of my Form1 with the Properties of Form1 in a new application and they are the same! How do you mean Your buttons all got bigger Your form is bigger than the screen Does it just happen Does it happen right away There are two applications here - why ...Show All
Windows Forms UserControl expose datagridview columns collection in design time
Hello, I have a user control containing a toolbar and a datagridview, I want to expose the datasource (all ok) and the columns collection (not so ok). I get a basic columns editor, complete different from the one you would expect, I end up having text columns only and I can't add any new columns. Anybody any idea, I just spend 2 hours googling, msning, ... Thanks, Peter The DataGridView column editor is a private designer, so there isn't any way to get it on your custom UserControl. You could create your own custom collection editor that provides the user with the ability to select different column types to add. -mark DataGridView Prog ...Show All
Windows Forms Help! - something WEIRD happens!
I've been working on this application for a weeks now, and have become very excited about its release. However, I've run into a VERY serious problem. I'll paste a bit of code, and explain afterwards. mainframe = new Panel(); mainframe.Parent = this; mainframe.Location = new Point(125, 50); mainframe.Size = new Size(650 - main ...Show All
.NET Development OTP: Classic asp versus asp .net
Hello need some good arguments to convert a websolution from classic asp to asp.net as many as possible, need both benefits and downs There is no down side. Classic asp is a nightmare. However, ASP.NET questions are off topic here, you should post this at www.asp.net ...Show All
Windows Forms Displaying Int values as Hex in datagridview
Hi all, desperation has forced me to my first post! I am writing a network analyzer and need the option to display my int variables as Hex values for a number of databound datagridviews, (a la) debugger. I can ToString("X") but it would mean having a string equivalent for all my ints! As I am binding to bindinglist of a managed class.(bindinglist<class^>) C++ Started using .Net only 4 months ago so am hoping that my lack of knowledge is the problem to finding an easy solution. While I am asking, how can I force zero filling on conversion to Hex, should ToString("4X") give me 4 Hex Digits. It would ...Show All
Visual Studio 2008 (Pre-release) foreach or yield on a 'stream' instead of an IList?
I'm a recent exile from Java land and would like to know the following for C# (2.0 ... can't use LINQ in production yet :( ): What is the best way to not just iterate through a list, but keep track of new entries to it and 'process' those as wel. In other words, I would like to do something like this: foreach(Data d in myList) Console.WriteLine(d.somevalue); The above line will just go through the list and display the 'somevalue' attribute of the list. I want the foreach loop to keep 'listening' to 'myList' and each time a new value is added, WriteLine that as well. The reason I"m posting this in the LINQ forum is because I wo ...Show All
Visual Studio Trouble with Project Template for Package (ProvideProjectFactory)
I've created a new project type like the sample in Archives\CS_Samples\Project. But I'm confused on how to control the template that is added for the project. I've exported a template from a different project, unzipped the contents and placed them into the Templates\Project folder. It compiles and runs, but there are two templates that show up in New Project, one that is named the same as the .vstemplate file and a second based on the csproj file that is part of the real template. How do I get the second item to disappear I've tried just inserting the zip file that is generated by the export template wizard into the folder, but it does ...Show All
.NET Development request.BeginGetRequestStream with FTP in ACTIVE mode problem.
Hi, i'm making an asynchronous upload function. When using .usepassive = true all is good, i can transfer and catch pretty much every exception thrown at it. When using .usepassive = false and the server and client are both configured properly, all is good too. The problem i have is when .usepassive = false and either the ftp or client are not configured properly to use active ftp connections. Here is the code that calls the BeginGetRequestStream request.BeginGetRequestStream(New AsyncCallback(AddressOf EndGetStreamCallback), state) waitObject.WaitOne() After BeginGetRequestStream is used and EndGetStreamCa ...Show All
Visual Studio Express Editions Replacement of Winsock in Visual Basic 6?
Hello Microsoft. Is there anyway to make any replacement of the Winsock Protocol in Visual Basic 6 I find that the WebRequest class and associated System.Net classes are great. I would recomend that you learn to use the Object Browser. The ObjectBrowser is your friend!!!!! ...Show All
SQL Server Migration from SQL CE 2.0 to SQL Mobile
Hi, I have an application for PocketPC 2003 written in C# with VS2003 and SQL CE 2.0. I was able to convert the project to VS2005 but I noticed that SQL Mobile 3.0 wont open database files created with SQL CE 2.0. Unfortunately I have about 50 devices statewide so I was wondering if there are tools to do a 2.0 -> 3.0 conversion. Thanks, Federico ...Show All
Windows Forms Problem in using datacolumn expression and aggregate functions
Hello Every One. Wishing u all a good day, My problem is as follows : I have to tables in dataset Ds1 as tblinvoice(InvNo,FCustNo,InvDate) and TblInvoiceDetails(FInvNo,Qty,Price) I have created a relationship between them as follows Ds1.relations.add("InvDetRel",Ds1.TblInvoice.InvNo,Ds1.TblInvoiceDetails.FInvNo) In the code (not in the backend) i have added to TblInvoiceDetails one column that contains ex ...Show All
