Tell A Programmer He Is Wrong?
Jan 25, 2010How to tell a programmer he is wrong?
View 1 RepliesHow to tell a programmer he is wrong?
View 1 RepliesI've got a DataGridview I want to remove columns from as it greatly increases performance when I format the DGV. The first time I remove columns in a loop (using the removeat) property, everythings fine. But when I try to remove more columns in another loop, it appears to remove the wrong columns and displays the wrong data. In other words, it displays the wrong data and headers; and the columns it does show has headers and cells that don't match.
[Code]...
I was wondering if anyone could point me in the best direction to becoming proficient in Visual Basic and later maybe other languages? I work full-time as an Information Management Officer for the DoD and I am also a full-time student (CMIT Major) and father. I have to try as it is to balance my time and find ways to get programming practice in but admittedly it has proven difficult. I am currently taking my second class in Visual Basic and had a previous class in Java as well.
Next term I will be taking advanced VB but i don't feel at all like I'm very good at VB, especially not good enough to be taking an advanced class. I desperately want to become a proficient programmer and was wondering if anyone could suggest a good, at-you-own-pace program or instructional books, videos, anything, that would walk me through creating beginner, intermediate, then advanced VB programs and techniques and different ways to deploy applications created in VB?
I code primarily in vb.net. I've been doing basic dependency injection manually and am looking to learn more about DI/IoC and maybe use a DI/IoC framework/container like Ninject. There are lots of examples and write-ups using Java and C# code. I'm looking for the best resources for vb.net programmers. Likewise, is there a particular framework that would be easiest for a vb.net programmer to pick up?
View 3 RepliesI am looking to switch to C#. I come from a C / C++ background but C# is a little different for me. I am switching mainly because of Silverlight and MVVM; all examples are in C#. Any information is in C# and I am confused when I read through it all.
What is a good place to start learning C# when starting with existing C / C++ knowledge?
For a few years I developed websites in PHP, but couldn't get a job doing this nearly two years ago. I spent a year teaching (and if your thinking of teaching, my advice is don't! In the UK anyway), but kept handing my CV out to different web development companies. One of these offered me a job, but the downside (or upside, depending on your views) that they only developed websites in ASP.NET. I made the decision for a career change and accepted the job.
In ASP.NET, you can develop in either C# or VB.NET. The guys I work with are using VB.NET, and I have to say I'm struggling with it. I can understand the basics but it just seems weird, especially as I've come from PHP. C# on the other hand, looks similar to PHP. I'm contemplating learning C# instead of VB, but I'd like to know what other peoples opinions are about doing this?
I'm new to VB programming usually im a PHP programmer, i am advancing fairy fast on the structure, theres one thing i have been stumped on[URL]..What im trying to do is when i put the detaisl in the fields, i press save and then am prompted to save with my own extension
[Code]...
I'm writing a program in VB.NET 2010 that will connect to the PICkit(TM) 1 FLASH Starter Kit's USB programmer and send it commands to turn on or off something connected to the attached eLab16m board, for example, an LED. This is all done by using the libhid.net DLL. The vendor id is &H4D8 and the product id is &H32.
Update I've written a console program that outputs what's happening. Here's the output:Where it says device with report id 0x10, I am trying to query the firmware version from the USB Programmer.Update 2 I've fixed the problem with the Wacom Bamboo tablet by uninstalling its software and drivers from my computer. The error has disappeared from the command line, but it still shows the 0x10 error.
I need some basic assistance understanding how to mess with bytes. And when I say basic, I mean dumb it down for me, I'm a self taught hobbiest mostly and only spent 4 years proffessionally in development. And that 4 years was a database programmer handling the connecting, retreiving and inserting of data into various databases.
I can't honestly think of the last time I had to do anything with Bytes, but I do know that when I did, all of the functions that actually did anything were written by someone else. So start off, I've been trying to handle them like strings, and that's not working for me (you probably guessed that).
[Code]...
I've been programming in C/C++ for several years and want to learn enough Visual Basic to create GUI front ends for some of my C programs & also so I know that C functions I have written can be called by VB programs that others write. I expect that the C programs would have to be turned into DLLs for this to work.
I have created some C DLLs & created other C programs that sucessfully call the functions in the DLLs. BTW I did this with Visual Studio 2010, would there be any advantages to using other versions?Can anyone recommend a book or a website to quickly get me up to speed on VB while allowing me to skip over the parts that are intended for people who are new to programming?
Many of my programs call functions from the Windows API such as CreateFile. IINM these functions can be called from VB, but it is done differently than in Visual C++, eg: in C++ Create file returns a HANDLE variable, but the HANDLE variable type doesn't exist in Visual Basic. So I'll need to learn enough about how Visual Basic uses the Windows API to pass the file HANDLE from the C functions to the VB calling program & back.
A job recruiter asked me if I could take over writing code for a device that uses Windows CE. He didn't know much about it except that he thought the previous programmer was using Visual Basic, and he thought it might be Visual Basic.NET, along with SQL Server. I'd like to take over this programming job if I am qualified, but I don't know if I am. I have developed code using VB.NET, C#.NET, SQL Server for standard Windows. I used .NET to build programs that run on Windows desktop, and also the WPF platform. I also built ASP.NET and Silverlight programs for the web. In addition I have written programs that interface with machinery using serial and TCP coimmunications.
Would I be able to get up-to-speed on taking over the coding of a program that targets Windows CE? Does Windows CE allow .NET managed code or just C++ and VB6? Would it be advisable to try to get this job or would taking it lead to problems and disappointment?
I would like to learn a new programming language to be able to compile the same code for different platforms.
My background in programming: VB.NET (I have been using it as my main language for the past 3 years), some Java (to which I couldn't really adapt) and very limited PHP. I use a Mac Book with OS X to code.
I'd like to find a PL with a very easy learning curve from VB.NET, cross-platform IDE and able to compile the same for Windows, Mac and Linux.
I am a beginning programmer, so a object-oriented, .net like language is probably my best bet.
I'm thinking of trying to learn VB 2008, and I was wondering if there's an online guide or tutorial to get going from the ground up - from the perspective of a former long-time VB6 user (makes it a bit easier to relate functions in VB 2008 and how they replace older functions in VB6)?
View 1 RepliesCurrently on an internship from my CS degree, we have some down time and I'd like to spend it working through a series of problems (although none too large) that would advance my programming skills and allow me to dip my toes in a large breadth of different topics and areas. Unfortunately, everything I do must be done in vb.net on .net 2.0, without downloading any particular libraries.I've already worked through many of the "code-golf" tagged problems on here and the programming praxis problems posed by dailywtf.
View 7 RepliesI've declared a class called WindowIDNamePair in which I associate the hwnd of a window with the window's text. (See end of this post)
I've declared an array of type WindowIDNamePair as follows:
Private windowList(0 To 500) As WindowIDNamePair To test the array and class I'm doing the following:
windowList(0) = New WindowIDNamePair(1, "a")
windowList(1) = New WindowIDNamePair(2, "b")
windowList(2) = New WindowIDNamePair(3, "c")
[Code]....
In my friends company the management brought up the topic of moving in the WPF to design rich UIs. Majority of the employees of the company are programmers and only 3-4 graphic designers. The management wants to train the graphic designers with WPF so that their graphics skills could be applied in creating UIs. However, programmers have a mighty obligation for this. They have written several complaints to the management that WPF is not just Graphics but it has programming in XAML. SO the programmers wants to take over UI design as well (in the past programmers did the UI part as well)...... I'm a programmer therefore i'm with the programmers.
What would be the most suited solution for my friends compnay, should they move the graphic designers the WPF or should they train the current programmers to design UIs in WPF?
How can more than one programmer work on the same project at one time? is this possible? it surely must be possible??
View 2 RepliesI am an experienced vb6 programmer, even completed MCSD cert back in 2000. I have done alot since then, and I am thinking about learning vb.net where should i get started? From what I have seen briefly, the ADO is some of the biggest change from vb 6
View 3 RepliesI have downloaded and installed VB 2010 Express. I have used "Manage Help Settings" to download and install content to disk. My computer seems to know that has happened as I navigate through the various "Manage Help Settings" menus. As a former VB 6 programmer
I am used to getting context sensitive help at the click of a mouse. I spite of the steps above, when I click "Help' on the menu I get transferred to the Visual Studio website without any oportunity to access the local help I suspect must be there somewhere.
I have a login form which accesses to my website by WebBrowser. You have to put Username and Password in the two Textboxes to login... It works fine and it loggs me in to my site...but how can I tell if the password is wrong or not?
View 5 RepliesI am trying to wrote to the registry but it redirect to the wow6432node instead of where I want it, how do I fix this?
[Code]...
I am converting a VBA program to VB. I need to create controls at runtime as I don't want the user to be limited to the amount of information that they can input. I am converting this statement in vba:
Dim CF As CashFlowControl
CF = New CashFlowControl
CF.Cashflow = Form1.Controls.Add("Forms.Textbox.1", "Cashflow" & Cashflows.Count + 1, True)
With CF.Cashflow
.Left = Form1.Label2.Left
.Width = Form1.Label2.Width
.Top = Form1.Label2.Top + Form1.Label2.Height + (Form1.Label2.Height * Cashflows.Count) + 5
.Visible = True
.Text = 0
.Text = Format(CF.Cashflow.Text, "$#,##0.00")
End With
I have tried:
Dim txtbox As New TextBox
CF.CashFlow = Form1.Controls.Add(txtbox)
With CF.CashFlow
.Name = "CashFlow" & Cashflows.Count + 1
.Left = Form1.Label2.Left
.Width = Form1.Label2.Width
.Top = Form1.Label2.Top + Form1.Label2.Height + (Form1.Label2.Height * Cashflows.Count) + 5
.Height = Form1.Label2.Height
.Visible = True
End With
I've also tried:
CF.CashFlow = Form1.Controls.Add("vbtextbox","Cashflow" & Cashflows.count + 1)
With CF.CashFlow
.Left = Form1.Label2.Left
.Width = Form1.Label2.Width
.Top = Form1.Label2.Top + Form1.Label2.Height + (Form1.Label2.Height * Cashflows.Count) + 5
.Height = Form1.Label2.Height
.Visible = True
End With
I still get the little wavy underline under the text after the "Form1.Controls.Add" statement and the error says "Value of Type 'string' cannot be converted to 'system.windows.forms.control." I also get the error "Too many arguments to 'Public Overridable Sub Add(value as systems.windows.forms.control)"
What am I missing here? This seems to be the way it is done in all of the examples that I have found on this site.
So i had a some objects on my project like a few textboxs and buttons, which all had code tied to. For example text1 button1. I delete the two objects (not code) from the project and then paste a text1 and button1 (same exact names) back into the form. now when you click button1 or text1 you get
"Private Sub Button7_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click"
rather than the code all ready in the project for button7. The reason im doing this weird situation was because i goofed some of the object settings and was copy and pasting the old objects from a backup version.
I'm quite new to VB Programming and I'm using Microsoft Visual Studio 2008 for programming. I'm writing an application that communicates with an Omron PLC via CX-Server Lite which brings some ActiveX plugins for VB. So far I solved a couple of problems and my application "is doing something" already.My question in the end might be really easy. I inserted 3 bitlamps (Omron ActiveX Components) in a form, gave them the size and position I wanted them to have. When I now start my application they show up in the wrong size. It seems as if they would keep there position but they simply have the wrong size and even overlap each others although I have them sorted nicely in Visual Studio.Another effect I have is, sometimes when I move the components around on the Form in Visual Studio they seem to be "behind" the Form. I can't see them anymore but i can highlight and move them.
View 3 RepliesI made a chat-room in Visual Basic, but when I run the deBug it works fine. When I build the application that's where things go wrong. I am using C4F-P2P.
Unhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately.
An error occurred creating the form. See Exception.InnerException for details. The error is: Could not load file or assembly 'C4F_P2PWinformControls. Version=1.0.0.0, Culture=neutral. PublicKey Token=9569f7192217be80' or one of its dependencies. The system cannot find the file specified. ""DETAILS"" See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.
[Code]...
I have two (2) variables in a textbox (L7B) and (D2B).
TextBox3.Text = (L7B) &
" " & (D2B)
I want to write over (L7B) without changing " " & (D2B).I have been using the TextBox3.Text.remove command with success however in this case there are just too many scenarios. (D2B) isn't the same number of characters so I would have to determine the number of characters to remove in each scenario.
To write over (L7B) I thought I would try TextBox3.Text.remove ((L7B)). To my amazement VB accepted this command but when I run it it removes " " & (D2B). How is it removing the wrong variable? I could understand if it didn't work at all, after all that's what I expected to start but to delete the wrong variable !! why?
I'm attempting the following code to calculate how many quarters, dimes, nickels and pennies a user should get as change, and display them in four labels, when buying an item from a machine. The user inserts the amount paid and the cost of the item in two textboxes.My code is as follows:
Code:
Private Sub btnCalc_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalc.Click
[code].....
I have a byte array that I'm encoding to a string:[code]Then I write that to a file via IO.File.AppendAllText.If I open that file in 010 Editor (to view the binary data) it displays as this:47 43 44 53 79 73 74 65 6D 73 3F 0A 01 32 31 36..The original byte array contained 89 at position 11, and the encoded string contains 3F.If I change my encoding to Encoding.Default.GetString, it gives me:47 43 44 53 79 73 74 65 6D 73 E2 80 B0 0A 01 32 31 36.
View 1 RepliesI'm working with VS2005 Pro. When I show the toolbox to add a control to the form all controls display the same icon. The icon changes from one session to the next, but remain the same as long as I have the IDE open. I've applied all updates and service packs and the problem persists. It doesn't stop me from adding the correct control, but does make it a bit more time consuming finding the right one.
View 2 RepliesHow ever it is returning wrong results. Any one spot the mistake. Needs to return the username / ID from every online user from [code]...
View 3 Replies