|
It is a mathematic evaluator
in windows form wit 2 textbox and 1 button
txtInput.text = evaluate(txtAnswer.text)
I cant figure out where it the problem.. i mean in Calc_scan function
|
|
|
|
|
let us all agree there is no problem then.
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
but it is not functioning.. when i insert 123+321+23
the answer given is 123 but not the sum of the equation
|
|
|
|
|
Then that should have been part of your original message.
This thread already has six messages in it and lacking a good description
of goals, current situation, and problems, the solution is not in sight yet.
Please read the forum guidelines, and look at some other discussion threads.
Also use PRE tags when showing code, so we get original indentation.
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
How about telling us what your problem is and only post the code that is in the suspect area. No one is going to debug your entire code for you.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
I am using common dialog control to act as open dialog. I want it to directly go to a perticular folder when i click on my open button. How can i do that.
Thank you.
KIRAN PINJARLA
|
|
|
|
|
set OpenDlg1.InitialDirectory = "somedirecotry"
|
|
|
|
|
hi kiran,
try this
'
First create a FolderBrowserDialog object<br />
Dim FolderBrowserDialog1 As New FolderBrowserDialog<br />
<br />
' Then use the following code to create the Dialog window<br />
' Change the .SelectedPath property to the default location<br />
With FolderBrowserDialog1<br />
' Desktop is the root folder in the dialog.<br />
.RootFolder = Environment.SpecialFolder.Desktop<br />
' Select the C:\Windows directory on entry.<br />
.SelectedPath = "c:\windows"<br />
' Prompt the user with a custom message.<br />
.Description = "Select the source directory"<br />
If .ShowDialog = DialogResult.OK Then<br />
' Display the selected folder if the user clicked on the OK button.<br />
MessageBox.Show(.SelectedPath)<br />
End If<br />
End With
hope this helps
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
My Company
|
|
|
|
|
Can anybody help me , that how to print crystal report using DOS mode printing........
prabumj@gmail.com
|
|
|
|
|
You can't do it from your code. You have to install the Generic Text printer driver and use that to do your printing.
|
|
|
|
|
I put a MainMenu in my module but when i run the program, i cannot see it...the MainMenu is visible in the other module but isn't in the second one...what's wrong with that???
what's wrong with that???
|
|
|
|
|
Rharzkie wrote: I put a MainMenu in my module
You're going to have to explain this a bit more. Modules in VB.NET don't have a visual component, so I fail to see how you did this.
Are you talking about a Form class?
|
|
|
|
|
The module that i am talking about is the form in my project...
i put a MainMenu in my form, but if the MainMenu is not selected, it is not shown...and when i run my program, i cannot see the MainMenu...
but in the other form that i made, the MainMenu is visible...
|
|
|
|
|
Do they both have items in them ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
YES...EACH MENU HAVE ITEMS
|
|
|
|
|
OK - strangely, you telling us that you have two forms with menus, and only one is visible, doesn't really give us anything with which to try and help you. If they both have menus, then you should see them. The bug in your code is hard to work out, without seeing any code.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
the menus in both two forms that i made are almost the same, and composed of same items. i did not change any of the properties of the two menus. how come that the other one is not visible?
|
|
|
|
|
G'day,
I'm a long time asp developer but fairly green with .net
I've built a program which I've subsequently used the setup/installer wizard to create an installation.
I'm hardcoding the path to the program in the registry so I can use it in the context menu, but I'd like to dynamically assign the value.
so rather than: c:\program files\myapp.exe
i'd wanna set it to %programfiles%\myapp.exe
But when i do this, the system spits an error saying it can't access the directory
Mark
mark@pottie.com
|
|
|
|
|
my.computer.filesystem.specialfolders.programfiles or something similar will give you the program files directory as a string.
|
|
|
|
|
Hello,
VS 2005
I am developing program that a customer will be able to write their name in a picture box.
I have a picture on the form, and the customer will use the mouse to draw their name.
What is the best method to use to be able to do this?
Many thanks for any suggestions,
Steve
|
|
|
|
|
Your best bet is to lose the picture box and control the drawing of the image and the writing of text in your own code. Just make sure you do all drawing in the paint event, and call Invalidate() to cause a refresh
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Okay, I have my first VB.NET interview coming up in a couple of weeks and I want to prepare (currently I am doing COBOL and PLSQL)I used to program in C# and have been writing some VB.NEt apps on the side.
Can you guys give me some question that you think I might be asked so that I can bone up on my terms and definitions?
Thanks
Tom
Tom Wright
tawright915@gmail.com
|
|
|
|
|
I'd suggest that there's no standard set of questions. If you don't know VB.NET well enough, you won't get the job. A lot of interviews will give you an on the spot programming task. If I were you, instead of trying to figure out how to fool the interviewers, I'd be doing lots of VB.NET to get as far ahead as I could for the interview.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Tom Wright wrote: Can you guys give me some question that you think I might be asked so that I can bone up on my terms and definitions?
I agree with Christian. There is no standard set of questions.
What we do in interviews is look at the candidates CV and ask questions on what is in it. If you are missing a skill that we want, but can answer well on what you claim you can do then you have a good chance of being hired and we'll then help you get the missing skill up to speed.
If, however, you can't answer questions on what you have in your CV you'll be shown where the door is.
So, presumably you have C# on your CV. C# is close enough to VB.NET (i.e. they share the same framework) that if I asked you to describe how you'd create a connection to a database, for example, you could give me a reasonable answer.
You also have PLSQL (which I'm not familiar with) but the general concepts of relational databases apply. So, if I asked you a question on data normalisation then I'd expect a reasonable reply.
-- Always write code as if the maintenance programmer were an axe murderer who knows where you live.
Upcoming FREE developer events:
* Glasgow: Agile in the Enterprise Vs. ISVs, Mock Objects, SQL Server CLR Integration, Reporting Services, db4o ...
* Reading: SQL Bits
My website
|
|
|
|
|
Colin Angus Mackay wrote: C# is close enough to VB.NET (i.e. they share the same framework) that if I asked you to describe how you'd create a connection to a database, for example, you could give me a reasonable answer.
I agree. Most of the general programming tasks can very easily be moved from one to the other.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|