Answer Questions
TScott Rotate an image
Is it possible to rotate a picturebox or an image inside a picturebox Also, is there a way to make the picturebox backcolor actually transparent Setting it to Web/Transparent does not work. nogChoco: That's the way to rotate an image. There's usually a simple way to do just about anything in .Net. Now can you explain the Transform Matrix Net 3.0 Edit: If you want to rotate by degree, ...Show All
Damien20051005 adding values in a class
Hi all I am a newbie I found some class code and change it for personal use Public Class MyShapes Public shapeCollection As New Collection Public Sub AddShapes(ByVal aCandidate As MyShape) shapeCollection.Add(aCandidate) End Sub Public Sub shapeProcedure(ByVal sender As Object, ByVal e As EventArgs) &n ...Show All
solmyr72 C# or VB ?
other than familiar syntax is there any reason to use VB instead of C# is the difference only syntax For the last couple of weeks I've seen all these statements about what VB doesn't do. What they have really amounted to, were statements from people who didn't know how to impliment something in vb. I'm having to deal with this issue right now. vb doesn't do carriage returns or nulls very well, while ...Show All
Carolus.Holman Error when trying to update a database.
I have this code: Dim RowValues(2) As String RowValues(0) = AdUser.Text RowValues(1) = AdPass.Text RowValues(2) = AdTimes.Text UserPassDS.Users.Rows.Add(RowValues) UsersTableAdapter.Update(UserPassDS.Users) When I try to update (the last row), It says an error. The error is: System.Data.SqlClient.SqlException was unhandled Class=14 ErrorCode=-2146232060 LineNumber=65536 Message="An att ...Show All
dotScience Is it possible to loop through varibles
Working on Microsoft Visual Basic 2005 express edition, I have got ten varibles called a1 to a10 and another ten called d1 to d10. Is it possible to create a loop that has: a+(loopnumber) = d+(loopnumber) How do you do that You can simply loop through the array and have a selection criteria. If you simply want to determine an item exists then when its found you c ...Show All
Bullfrog Windows Message in VB.NET
Hi, I am upgrading a legacy system written in VB6. The system is basically consists of a few of EXE programs, they running at the same time and communicate each other with Window Messages. The system use Desaware SpyWorks to do Window Message handling. Can I re-develop the similar application by using VB.Net, which I can handling message by using .NET framework without other 3rd party library installed Hi Donno, to enable ...Show All
Shel S VB with Excel and Visio
First off I think this is the wrong forum but I could not find the correct one, any help with putting it in the right after you read this would be greatly appreciated. I am working with Office XP and Visio 2000. I want to create a VB Macro in Excel that will do the following: Open a new instance of Visio (using CreateObject), create a document, add a sheet, and add shapes (mainly rectangles) from height and width values from the Excel sheet. I' ...Show All
Siraris What is wrong here? Arrays!!!
I have attempted to create a control array using this method: Dim WinsockArray As New List(Of AxMSWinsockLib.AxWinsock) Dim WnSck_Numb As Integer Sub Create_WinSock() Dim Winsock_ As New AxMSWinsockLib.AxWinsock Increase_Array() WinsockArray.Add(Winsock_) WinsockArray.Item(WinsockArray.Count).Tag = WnSck_Numb End Sub Public Sub Increase_Array() WnSck_Numb = WnSck_Numb + 1 End Sub Private Sub Button2_Click(B ...Show All
SirTom editing DataGridView cell content
I am developing a VB.net Windows app in VS2005. I make extensive use of DataGridView controls. I want the use to be able to edit the data in the DataGridViews. I have EditMode set to EditOnEnter for all DataGridViews. Data retrieved from the SQL db will be fine but I want to make sure that the data entered new or updated by the user is of the right type so I tried to code the CellValidating event to validate certain cells. I want to make sure ...Show All
Cephid creating a text object
Is there a way to create a text object a string hi, what do you mean with creating a textobject. Do you mean: - a string - a label - a textbox - a richtextbox Mr. Stenberg; I have come across the syntax, Dim NewString As [String] = [String].Empty How does this syntax change the 'standard' way of decalring a string variable Is this related to a 'strin ...Show All
cspoon .Net Assembly with inherited classes exposed to Com Client through Interop
I am trying not to use ClassInterfaceType.AutoDual on my class since a number of articles recommend against it. I understand that I need to explicitly set my Interface. My problem is I can not figure out how to handle the fact that most of my classes have inherited public properties that I wish to expose to my Com Client. Below is a simple example of what I am trying to do. I have a Base Class "A" that has a public method "x" ...Show All
Michael Hotek How to associate 2 forms in ONE class?
Hello All, I have a dilemma, and I'd appreciate any help any one can offer. I'm a little new to Visual BASIC .NET, as I come from mainly a Java background. My problem is this : I have this huge number of classes right, and they mostly all have forms that take input or have buttons for specific choices to be made by a user. Now, for a part of this whole project, I'd like to nest a class which has a simpl ...Show All
Zheng Lu C# or VB ?
other than familiar syntax is there any reason to use VB instead of C# is the difference only syntax I'm having to deal with this issue right now. vb doesn't do carriage returns or nulls very well, while c# allows you to use \r \n or \0. If you know how vb deals with this issue in serial communications, I would appreciate learning more. If you can program C# you can program VB and visa ...Show All
Thaddeus Connection String Scope Settings
Not sure if this is a bug, or just a work around, but I found that when you put a connection string into you application setting you are forced to have an Application setting which is read only, but if you copy the string in the config. file delete the setting on the setting screen, save and close, and then paste your string back into the config. file and reopen the project settings and it will add the string as a user scope setting which is yo ...Show All
Jayson Go Setting autopostback on dynamic control RadioButtonList
I am creating a series of radiobuttonlists to display on a web page. I have created a handler for the SelectedIndexChanged event, but it does not fire when I change the selection--perhaps because autopostback is defaulting to false ( ). How can I set the autopostback to true on a dynamically created radiobuttonlist Lapin_agile P.S. If this is not the best forum for this question, ,please let me know where to post this. In Page_Load: ...Show All
