|
I understand where you are coming from Dave and Christian, but I'm not looking to go sell my ability as soon as I get certified. I just want to have it so that I can build up my skills afterwards without worrying about the tests for the version that I have studied for not being there when I'm ready to take them. I understand that there are people out there who misused the certification and degrade the values of the certification. How did you build your skills? I'm sure there was a time when you were as new to this thing as I am. What do you suggest I do to get real life experience? Any suggestions will be appreciated.
-- modified at 4:03 Wednesday 29th August, 2007
|
|
|
|
|
But, the test is *useless*. Just focus on getting the skills.
ASPnoob wrote: How did you build your skills?
Writing code. Downloading articles and making changes to the code to see what it did. Asking questions, and taking every answer and researching it until I understood why it worked. Buying books and reading them.
ASPnoob wrote: What do you suggest I do to get really life experience?
Imagine a system that, if you had built it, would have increased your skills in an area you care about, then do all of the above in the process of writing it.
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 )
|
|
|
|
|
When using a panel, I have enough on there that causes the scrollbar to show. the scrolling of this control is slow and causes ugly painting or is jumpy...
I tried the following in the Scroll Event to make the painting smoother...
- application.doevents
- me.refresh
- me.invalidate
- control.refresh
- control.invalidate
all improve but not one makes it "perfect"
anything else that can cause a faster paint of the screen?
Thanks...
Nathan
|
|
|
|
|
Can you tell more about the Panel's content: Controls (which? how many?),
direct drawing in OnPaint (show code!). Do you need to do CreateGraphics?
Do you create a lot of objects while painting, things you could reuse?
And the ones you don't reuse, do you Dispose() of them?
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
|
|
|
|
|
I have at most 3 user controls on the panel. Each user control is made up of about 30 controls. creategraphics --> not sure how that would apply.
dispose --> haven't removed anything.
|
|
|
|
|
Hi,
I have no experience with scrolling UserControls, I would not be surprised
if that turns out to be somewhat slow.
I tend to do complex stuff in a lightweight fashion, i.e. by drawing directly
onto the Panel, without any added Controls. It is not the easiest way, but
it gives full control on what gets done how and when, hence also maximum
performance. So if the UserControls are three instances of the same class,
I would consider to redo that class without using any internal Controls.
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
|
|
|
|
|
I'm not surprised it's slow. You're painting 93 controls, plus the panel on every scroll movement. I don't know why you need all these PictureBox controls (BTW: It's the most abused control by new programmers). Painting everything yourself on the Panel control, or some other container control that you write would give you FAR better performance.
|
|
|
|
|
Dave Kreskowiak wrote: (BTW: It's the most abused control by new programmers).
Amen, and half of them expect it to be Paint or Powerpoint....
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 )
|
|
|
|
|
In this code...There are 3 user controls(sections) Each section has a groupbox that contains a number of radio buttons and labels, a combobox, and a button. The requirement is to have a user preference kind of thing where the user can reorder the sections, remove, add etc. I had to put all 3 on a panel because the form has a toolbar and a statusbar and I need those controls to be scrollable without effecting the toolbar or statusbar. putting me.invalidate helped dramatically but it still is jumpy.
by you saying "painting everything yourself"...never have done this. how do you handle that?
thanks.
|
|
|
|
|
nlarson11 wrote: by you saying "painting everything yourself"...never have done this. how do you handle that?
I thought you were doing what most newbies do when putting a game together. Using PictureBox controls for tiles and sprites. You can't find a more inefficient method of doing a game.
Simply put, putting 100 controls on a form is not going to paint smoothly, no matter what you do. You can get a bit of an improvement by turning on double-buffering on the form, maybe even if you did it on the Panel control, but don't expect much. It's still going to be jumpy because of the shear number of controls.
|
|
|
|
|
hi i m working on a billing system.i am getting problem for the main billing page.i have given space for customer name.invoice no,date and two check boxes.1)wholsale rate and 2)normal rate.then i have given a list view to see what items he selected.there are two combo boxes 1)select product 2)Qty.
i want that when i select an item its details should automatically be entered in the list view.and after entering the qty total amount should be calculate.
but the problem i am facing is that its not entering the data in the list view.
plz help
|
|
|
|
|
You haven't provided any useful deatils about how your code works. From where is the ListView supposed to be filled?? Some database? Is it supposed to be filled in upon the click of something? ...? ...? You haven't told anything we can use to tell you what's wrong. Not even a code snippet...
|
|
|
|
|
I am cleaning my code (going through making comments and trying to see if there is a better way of doing things) and wanted to know if anyone could answer this.
In parts of my code I am reading from a file and need to temporarily save the data. Currently I have created some Structures. Is this the best practice or would it be better to do arrays or something else. The reason I picked Structures is because in my code I can easily see that str.Ticket means ticket. If I do an array like arrayString(4) does not tell me what I am grabbing.
Any comments? Thank you.
|
|
|
|
|
Cory Kimble wrote: In parts of my code I am reading from a file and need to temporarily save the data. Currently I have created some Structures. Is this the best practice or would it be better to do arrays or something else. The reason I picked Structures is because in my code I can easily see that str.Ticket means ticket. If I do an array like arrayString(4) does not tell me what I am grabbing.
I would have gone with a class and created a custom object to do this (easier to serialize the data, etc), but structure will do it trick too. Are you mainly worried about your application speed / performance or more worried about good coding practices?
Pete Soheil
DigiOz Multimedia
http://www.digioz.com
|
|
|
|
|
Both speed Perfomance and practices.
|
|
|
|
|
Cory Kimble wrote: Both speed Perfomance and practices.
In terms of speed I would say an array would probably be the fastest. In terms of best practices, the prefered way would probably be to create an object for it.
Pete Soheil
DigiOz Multimedia
http://www.digioz.com
|
|
|
|
|
Hi Cory,
Definitely classes and structures, and not heterogenous arrays.
The difference in performance would be only a couple of percent,
the difference in code readability is tremendous.
Once you have defined your classes/structures, if you need many of them.
put them together in either collections or arrays, depending on what kind
of operations you need. If arrays, these would be homogeneous arrays
(each element of the array has the same meaning).
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
|
|
|
|
|
Hi every one,
I am developing a windows application which needs word and visio application to be embedded on to a form. I am using DSOFramer Active-X control to do the above.
My application reads data from the database (a BLOB Field - that contains the word or visio document) and creates a temporary file in the local directory and then opens that file using DSOFramer control. (http://support.microsoft.com/kb/311765)
All the manipulations are stored on the same temporary file and update the file contents on to that database (as BLOB).
It works fine most of the time but some times while saving the word document it through an exception - "the target of an invocation"
Inner Exception -System.Runtime.InteropServices.COMException (0x80030021): A lock violation has occurred.
This exception occurs while saving the document.
There is an even provided by DSOFramer control – ‘OnSaveCompleted’ which occurs on save completion.
After the file saved, I am opening the temporary file using IO.FileStream and reading the contents to byte() and updating the database with new binary data(BLOB Field)
I hope this explains wat I am trying to do.
Please could any one tell me where I am going wrong.
Thanks in advance
chirantan
|
|
|
|
|
I am trying to update a database in .net. When I created the data source .net copies the database in my project folder to the bin folder. Every time my application runs it copies the database. My application grabs the info and puts it in a dataset that has a filter (Only bring in records where column Loaded equals 'No') I then do a process and set certain records' columns to 'Yes'. When I fill the dataset again it is suppose to take off those records that I changed the columns to 'Yes'. It doesn't. When I look at my folders. The folder in the path of the build did not change. The other did. How do I get rid of one of these databases and make this work, without starting the datasource over?
Any ideas. I hope I explained this well enough.
Also, Why am I getting this error
'C:\Documents and Settings\walz-db.WALZEQ\My Documents\Visual Studio 2005\Projects\VS2005 InYardTrucks\bin\bin\myTest.mdb' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.
What do I need to change to fix?
-- modified at 10:01 Tuesday 28th August, 2007
|
|
|
|
|
You need to fix whatever code is generating that path string. Somehow, the bin folder has been added twice. We'd need to see the code that's putting this path string together.
|
|
|
|
|
Here is the only place I thing there might be something wrong but don't know how to fix.
When I call the fill:
Me.TransactionTableTableAdapter.Fill(Me.MyTestDataSet.TransactionTable)
It eventually gets to this code in the Settings.designer.vb file
<Global.System.Configuration.ApplicationScopedSettingAttribute(), _
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
Global.System.Configuration.SpecialSettingAttribute(Global.System.Configuration.SpecialSetting.ConnectionString), _
Global.System.Configuration.DefaultSettingValueAttribute("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\myTest.mdb")> _
Public ReadOnly Property TestConnection() As String
Get
Return CType(Me("TestConnection"), String)
End Get
End Property
The truth is I don't have a TestConnection anymore. I have a dataBind to the myTest.mdb listed above. Is this my problem?
I will try to put everything here I think is pertinant to solve this problem.
Connection string: Provider=Microsoft.Jet.OLEDB.4.0;Data Source="C:\Documents and Settings\walz-db.WALZEQ\My Documents\Visual Studio 2005\Projects\VS2005 InYardTrucks\myTest.mdb"
datagrid = bindingsource
BindingSource = MytestDataSet
MytestDataSet has two adapters and two tables, one per adapter
I don't know what other lines of code you need.
|
|
|
|
|
Cory Kimble wrote: .SpecialSettingAttribute(Global.System.Configuration.SpecialSetting.ConnectionString), _ Global.System.Configuration.DefaultSettingValueAttribute("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\myTest.mdb")>
This says that if there is a ConnectionString, return it from the settings in your app's settings. If there is no setting available, return the DefaultSettingValue instead. Id' look in your app setting Project/Properties for a value for the connection string.
|
|
|
|
|
So, how do you suggest I solve my issue.
In folder C:\VS2005 InYardTrucks I have a database myDatabase(We will call it Database1). This is where I have the build go to. In C:\VS2005 InYardTrucks\bin there is a copy of myDatabase(We will call Database2). When I do a fill the dataset is filled with the Database1 data. When I update the dataset it writes it to Database2. So When I run the program again Database 1 overwrites anything in database2.
How do I fix? Where do I need to look to find the code that does this? Do I need to change my build location to the bin folder? Do I need to repost this to see if anyone knows?
Thanks.
I found the problem. the database had a output directory property set to 'Always copy' and I changed it to "Never copy'
Thank you.
-- modified at 11:50 Friday 31st August, 2007
|
|
|
|
|
I'm not seeing how this would cause the problem you described. I'm still wondering how you got a bin folder inside a bin folder in your project's directory structure.
|
|
|
|
|
hi
i want to do windows hook programming .i am a beginner and am not able to understand codes given as examples in internet.could any one give me a good example and reference links for doing hooks programming and api programming.
i have to record and replay the keboard and mouse events thats my main requirement.
with regards
Balagurunathan.B
|
|
|
|