|
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
|
|
|
|
|
I have a Visual Basic application that processes stock market data. It receives UDP packets from a satellite disc receiver and decodes the highly compressed data, creates and saves to file millions of 20 byte "ticks", builds one minute bar charting data, and then screens each tick for certain patterns. Since it is looking at 7800 stocks and processes about 85 million ticks a day, it is a very busy application. It runs on a home built computer with an ASUS motherboard, an AMD Athlon 64x2 Dual Core Processor 4400+, 2.00 GB RAM, and WINXP Pro.
When I converted it from VB.6 to VB.Net 2003 I chose to use thread.suspend/resume code to synchronize the many threads. I was surprized and pleased to see that at the heaviest data load periods that Task Manager showed it using only 12% CPU capacity.
When I converted it to VB.Net 2005 I discovered that thread.suspend/resume code had been depreciated.
I chose to replace it with monitor.wait/pulse code.
I was surprized and disappointed to see that Task Manager now shows it using 86% CPU capacity at peak periods.
Is it possible that Task Manager runs differently in .Net Framework 1.1 and 2.0 and was showing me erroneous info in 1.1?
Does monitor.wait/pulse code use alot more CPU cycles?
Does anyone know about CPU overhead of the several other thread synchronizatiion methods?
Thanks
RCarey
RCarey
|
|
|
|
|
Hello Ms. RCarey.
I´m an young developer (MCTS Windows Developer with VB.Net 2005). I havent been in situation like yours, and I can´t just tell you what to do.
I can only say that you should view and study this page and based on your situation choose what is the best for your application.
Read this http://msdn2.microsoft.com/en-us/library/fxy8dte8(VS.80).aspx[^]
You should also use Visual Studion For Testers to test the performance in the several situations of your application in order to achieve your goal.
Sincerelly
B.K. alias ~Frenki~
|
|
|
|
|
I've written about this issue before but thought it had gone away.
The DataGridView is bound to a DataSet. There are textboxes and dropdowns that are bound to the selected row through a binding source. I cant figure out what happens all of the time but most of the time when a column is sorted and a value is changed, the row above or below will many times change as well. Im not sure how to program around this or what to change in order to prevent this.
It may just be that I need to get fancy with the datagridview and add all of the drop downs to the respective columns and eliminate the bound controls.
CleaKO
"Now, a man would have opened both gates, driven through and not bothered to close either gate." - Marc Clifton (The Lounge)
|
|
|
|