|
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)
|
|
|
|
|
Can u post u r code
prabumj@gmail.com
|
|
|
|
|
Impossibile trovare informazioni sullo schema per l'elemento 'http://schemas.microsoft.com/winfx/2006/xaml/presentation:Window'
Che succede?
|
|
|
|
|
This is an English-speaking board...
OK. What did you expect this URL to show you? It's not a site to see the documentation on XAML, or anything else for that matter.
|
|
|
|
|
Well,
I'don't understand what's append.
I try to generate a WPF windows application with 4 windows form but in the property Application, starting object, i don't see any of my forms.
VB2005 show this error
Impossibile trovare "Sub Main" in "UTENTI". (Unable to show SUB MAIN)
Can someone help me?
|
|
|
|
|
I have seen a similar error where the main method is missing. This method is used to call the Application.Run() method to start the application.
Hope that helps.
Ben
|
|
|
|
|
How about asking your question in English, please
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
I'm looping thru a datagrid - as it loops I want the application to do calculations and place that result in a column for each record. - Right now it is only doing the calculation for the first record and placing that result in the column for every record
How do I get it to go to the next record.
This is my loop - any suggestions
<code>
Dim cm1 As CurrencyManager = Me.BindingContext(dgOrderReport.DataSource, dgOrderReport.DataMember)
Dim dv As DataView = CType(cm1.List, DataView)
'I thought this will go to each record and do the calculations if row is not equal to dv.count which is a record counter
For row = row To MyDataSet.Tables(0).Rows.Count - 1
If row = dv.Count Then
Exit For
Else
'Do time calculation for each row for column 3
x = DateDiff("d", dgOrderReport.Item(row, 3), System.DateTime.Today)
dc.Expression = x
'add one to row to go to next record
row = row + 1
x = 0
'Label1.Text = row
End If
Next row</code>
I can not figure out what I'm missing - what do the world suggests
Thank You
|
|
|
|
|
A quick lesson on loops
For loops go around a specific number of times.
For aNumber = startNumber To endNumber
For Each loops go around a collection of items
For Each item In items
KA National Marker wrote: For row = row To MyDataSet.Tables(0).Rows.Count - 1
Try:
For row = 0 to MyDataSet.Tables(0).Rows.Count - 1
KA National Marker wrote: row = row + 1
Would never be needed in any type of For loop as the loop itself updates the counter. What you are actully doing here is skipping an extra row.
-- 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
|
|
|
|
|
Thanks Colin For the help I've changed the code around - but I'm still getting the same results in my tables - I can not get it to go the next record to do the calculations - Its only giving the column the results of the first calculation for each record - I've tried using both examples below:
example1.
<code> Dim Dr as Datarow
For Each dr In MyDataSet.Tables(0).Rows
x = DateDiff("d", dgOrderReport.Item(row, 3), System.DateTime.Today)
dc.Expression = x
x = 0
Next
' I beilive I need to assign dr.Item a value somehow - but I cannot figure it out</code>
example2.
<code> Dim cm1 As CurrencyManager = Me.BindingContext(dgOrderReport.DataSource, dgOrderReport.DataMember)
Dim dv As DataView = CType(cm1.List, DataView)
For row = 0 To MyDataSet.Tables(0).Rows.Count - 1
If row = dv.Count Then
Exit For
Else
x = DateDiff("d", dgOrderReport.Item(row, 3), System.DateTime.Today)
dc.Expression = x
x = 0
End If
Next row</code>
What am I missing.
Thank You
|
|
|
|
|
In the first example, you're not actually setting "row" to anything, so you'll be pulling the same item into "x" every iteration. In the second, well, here, let me just post some code...
Dim count As Integer = Math.Min(dv.Count, MyDataSet.Tables(0).Rows.Count)
For row As Integer = 0 To count - 1
x = DateDiff("d", dgOrderReport.Item(row, 3), DateTime.Today)
dc.Expression = x
Next row
Now I only have one question... What's "dc"? You never assigned it in any of your code. You probably want to set it equal to a particular cell before setting its expression.
|
|
|
|
|
Thanks Ian for the Reply I've figured it out...
Ian Shlasko wrote: What's "dc"?
DC is a datacolumn - and Expression is a class with in it. I will never ever - use datacolumn.expression again well maybe if I was using to columns in the grid it would of worked fine...
My resolution was so simple that it does not surprise me - the easier things are they harder they come
Dim cm1 As CurrencyManager = Me.BindingContext(dgOrderReport.DataSource, dgOrderReport.DataMember)<br />
Dim dv As DataView = CType(cm1.List, DataView)<br />
Dim row As Integer<br />
For row = 0 To MyDataSet.Tables(0).Rows.Count - 1<br />
If row = dv.Count Then<br />
Exit For<br />
Else<br />
x = DateDiff("d", dgOrderReport.Item(row, 3), System.DateTime.Today)<br />
dgOrderReport.Item(row, 7) = x<br />
x = 0<br />
End If<br />
Next row
Such a easy resolution - One day I will need datacolumn.expression but on that day I will forget all about it...
Thank You
|
|
|
|
|
hi everybody,
I hope you can help me.
I have a small 3 layer solution. It works but now I want update my DAL using patterns.
I will use data application block from enterprise library 3.1. It's my first time using patterns and I don't know how start.
My questions are:
Must I use the code from quickstart?
What section of code?
What is the best way to personalize the code to my DAL?
A small example will be excellent.
Thanks in advance
Si crees que estás vencido, vencido estás.
|
|
|
|
|
jesusnaun wrote: I will use data application block from enterprise library 3.1.
Why?
The reason I'm asking is that I feel that many people use the Enterprise Library without really knowing why. They seem to think it is a good idea, but when you ask them the answer doesn't necessarily add up. Sometimes a lightweight DAL is enough. So far, I've come to the conclusion that the Enterprise Library is, for many projects, just bloatware.
jesusnaun wrote: It's my first time using patterns and I don't know how start.
I'll bet it isn't. The way you have said that tells me that you don't quite know what patterns are... Yet.
I found when I first read a book on patterns many years ago that I'd actually been using many without realising. And I'll bet that you have been using many patterns as well without realising.
-- 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
|
|
|
|