Answer Questions
Muhammad Usman Khalid How can I cycle through all the System.Drawing.Colors?
I worked out the Console version to cycle through all 16 available colors: Sub Main() Dim x, y As Integer For x = 0 To 15 Console.BackgroundColor = CType(x, ConsoleColor) Console.Clear() For y = 0 To 15 Console.ForegroundColor = CType(y, ConsoleColor) Console.WriteLine("Background: {0}; Foreground: {1}", x, y) Next y Console.ReadLine() Next x Console.ResetColor() Console.Clear() Console.WriteLine() End Sub I also worked out a program that cycles through 4 colors in a Windows form: Private Sub btnCycle_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCycle.Click Static x As Integer x = x + 1 If x = 5 Then x ...Show All
Ron L How to compare grapical (bitmap) data?
I'm making this program for printable binary data. (that desn't matter now) But what does is how to compare that graphical data from a existing data base. This might give you the idea. You have seen how CSIs get a fingerprint, scan it(make it a piture) and then search AFIS, or another crime database That is what I'm trying to acheave. Please Dont let me down, on this! Or simply put, I'm trying to make a binary (bitmap)data comparing program. Of course after that data has been pocessed ( deleted all colors that would interrupt search, just the fingerprint color is there, nothing else). Oh. I just tought of something. I'll save all the images in bitmap, then i'll convert tem into text files, wich will give me the hex code of the im ...Show All
Kiranvukkadala Compiled app failing in InitializeComponent
I have created a WinForms application that runs fine in Debug mode, but when I deploy it to a server, it fails when it executes InitializeComponent while loading its first form. How do you debug something like this Have you signed the assembly What's the exception that you get Winforms Err.Number and Err.Description are not VB.Net errors They are VBA, VB, or VB.Script style errors I believe. So this error is probably comming from a VB based Com object that the application is attempting to initialize. Thats my guess anyway. Ibrahim Can you post a stack trace of the failure Is the .NET framework installed on the server ...Show All
wazimu Class not registered
I just transferred an app from one computer to another and upgraded from VS 2002 to VS 2005. After doing this, I'm getting several errors, the most common one being: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)). The error occurs on the line that says InitializeComponent() at the end of the region "Window Form Designer generated code" for one of my forms. I looked at my classes in the Class View window, and they appear the same as those on my other machine w/ VS 2002. What do I need to do to register this class Hi, Tools->Options->Debugging->General : Enable just my code I have that active and can break and step into InitializeComponent, so I gue ...Show All
wtrn How to close Byte Array with 0 Byte?
Ok, I need to send socket that has my string converted to byte array (so far it works) but I also need to close the socket with 0 Byte (And this drives me crazy!!!) I have no Idea what 0 byte is but i would assune this is a chank that has no data in it (i staring to hate Sockets XML protocol now) So, does any one know how to close (append) byte array with 0 byte at the end Thanks! PS: Just in case here is how im converting string to bytes for transmition: Dim Buffer() As Byte = System.Text.ASCIIEncoding.ASCII.GetBytes(txtText.Text) _ClientSocket.Send(Buffer, 0, Buffer.Length, Sockets.SocketFlags.None) Thanks alot for your help! Hi, See this thread about putting BYTE values into an array.>> ...Show All
NemanjaTheLost VB .net tab control multi line...
Ok, I am creating a new version of a program in vb .net. The main page has a tab control with 7 tabs on it to select your general category. However, the two word text does not always fit on these tabs. I want the text to wrap instead of just going out of view off of the tab. However, there is no wrapping option or way to get the text on multiple lines(like there was in VB 6), except for forcing it by inserting a new line character into the text. But if I do it that way the text is no longer vertically OR horizontally centered and looks very bad, and is plainly unacceptable. So, is there any way to get the text on multiple lines on the tab control I have been looking everywhere for this option and it is simply not there. Thank you. ...Show All
Corby Issues with DataGridViewDataCombobox
I'm having a problem this combox in my datagridview. I type somthing into the combox on one row, and then on the next row I type something into a combox, the item that I type in the first row of the combox exists in the second row combox. What I'm trying to simulate, is when you're selecting a data type after you specify a column name in sql enterprise manager. Can anyone help Thank you. Beetle54, According to your question, I suggest you to try the following code, hope that can help you to understand this issue on DaataGridViewComboboxColumn: Private Function CreateComboBoxColumn() _ As DataGridViewComboBoxColumn Dim column As New DataGridViewComboBoxColumn() With column .Da ...Show All
Darren Tao usercontrol and parents
if i create a user control "A" that has 3 text boxes in it and add several instances of "A" to a panel...when i mouseover one of the text boxes how can i tell which instance of A it belongs to Thanks! Dan i think i need textbox.getcontainercontrol.... that gets me the panel that i added the instead of "A" to not the instance of "A".... exually (i think) it would give you the panel where the usercontrol is hosted in But whatever works. right Remco DRoden wrote: that gets me the panel that i added the instead of "A" to not the instance ...Show All
Rafael Mores Excluding weekends in DateTimePicker
Hi, I'm not sure if this question has been asked before, if it has my apologies. I was wondering if there is a way to exclude the weekends in the datetimepicker control so the user can't select them at runtime. Thanks private void dateTimePicker1_ValueChanged( object sender, System.EventArgs e) { String myDayString =System.DateTime.Now.DayOfWeek.ToString(); System.DayOfWeek i = dateTimePicker1.Value.DayOfWeek; if ((i == System.DayOfWeek.Sunday) || (i == System.DayOfWeek.Saturday)) {MessageBox.Show("Please try again, can't select a weekend day"); //Leave the myDayString=Current day. return ;} else myDayString = dateTimePicker1.Value.DayOfWeek.ToStrin ...Show All
joejoejoeoejoe Have an application get it's own checksum?
I need my application to get it's own checksum, so i have a class with a hashing function that i can use but i am not sure i can just use file I/O to open this file then hash its contents, then even if i could, i'm not sure how to open the filestream so yeah i need some suggestions for getting an application to get a checksum of itself. These are good questions. I think the first thing you need to try is to open the assembly if possible "read-only". As long as you are self consistent in your calculations I don't think it will make much different. I think I might avoid checksumming the header. I don't remember if there is any changing information in it. ...Show All
loonysan Specific pattern checking/comparing for strings
I was just wondering if anyone knew a better/more efficient way to compare 2 strings to see if their format matches. Below is what I am currently using, just seems to be a little messy right now.....maybe I am wrong and I want something simpler....let me know, thanks! Function strFormatCheck(originalStr As String, patternStr As String) As Boolean ' This function just checks to make sure that originalStr matches patternStr ' A - alphabetical character. ' a - alphanumeric character. ' N - numeric or space " " character. ' n - strictly numeric (no space) character. ' X - ANY character - a placeholder really. ' x - any non-blank character (no space). ' ANY OTHER CHARACTER - must resolve to strictly, literally THAT character ...Show All
sandipan Crystal Reports Not in VS 2005 VB.NET Standard
It's clear that VS 2005 VB.NET Standard does not include Crystal Reports. - http://msdn.microsoft.com/vstudio/products/compare/default.aspx - http://msdn2.microsoft.com/en-us/library/b4z62wxz(en-US,VS.80).aspx - http://msdn2.microsoft.com/en-us/library/zcbsd3cz What is the MS the strategy for the standard user to get reports out Buy Crystal Reports on the side for $200 Use Access It is possible to use the Crystal Reports application that was bundled with VS.NET 2003 in 2005 projects Is there some data binding between Crystal Reports and SQL 2005 Express that would make it much easier to use as part of the bundled VS 2005 Professional package Thanks! As to ...Show All
davehomebrew DatagridView scrollbars
Hi, I really need help on this one. I have a DatagGridView which has its scrollbars for both horizontal and vertical which can fit around 6 rows before the scrollbars show up. The Form hangs when the vertical scrollbar shows up. My application works fine when im just running it on debug but when im testing it on a published exe, it hangs when the vertical scrollbar shows up. Please any help or ideas will be very much appreciated! Thank you so so much! Stanley Rain3204, The different results between your debug and publish depends on your program running environment. Generally speaking, there won't be any difference in the above two mode of your project. I guess it is the mistake of your pub ...Show All
chadmv Need suggestion on control to use
I would like to have a control that has columns & rows. Each row will have a button associated with it. It won't be tied to any data source. I've looked at the DataGridView control, and it seems like the steroid version of what I want. I don't like the gray column it has on the left side of it that tells me which row is selected. Also, I know I can make a column a button column, but I don't like that it shows as a column in itself. Is there a more basic kind of grid Thanks! Checkboxes are standard. Yes for images. Take a look at this: www.freewebs.com/reneecc That's a listview on the right. The listview won't allow me to add a button (or an image) for the user to click on for each ro ...Show All
Badpig Visual Studio 2005 Pro - Academic Version
I'm thinking about ordering VS Pro from school, but they can't give me details (it's not kept in stock)... does anyone have the academic version and does it require internet regsitration/activation Some people are saying yes, others are saying no. Thanks Any mention of off topic item was evidence and reasoning for this on-topic question. There is nothing different about the environment for compiling 64 bit. Its really only a compiler switch. So I wouldnt get you hopes up that being able to compile for 64 bit is something amazing. That said if you compile for 64 bit - you get an additional combobox on the project advanced compile options which sets an attrribute in the project ...Show All
