|
Have you changed the property of the "anchor"?
|
|
|
|
|
Yes I changed it ,
Is any problem on that .?
thanks for reply
jooooo
|
|
|
|
|
What did you think it did ? It moves the control.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I think that Anchor propery is keep a constante distanse between a certain aidge of the form , like Top:Left ,,
I think that is useful on resizing the form ,,
it's it ,,,
if that is true then why the location of components is changing but themselfes ,, really
jooooo
|
|
|
|
|
you are correct. the anchor will also resize the control if you have both either off the opposite sides of the anchor set top/bottom or left/right.
if you have the windowstate set to maximize in design time, when you run the app, it could possibly move the controls depending on how you have the anchor set. if you have everything set as top/left (default) then none of the controls should be moved around...
|
|
|
|
|
Thanks for reply
I mean that the controls is changeing it's location at design time not at run time ,,
on every time I open the project I found that the location of controls is cahnged , on every time I found that the items is go to the right and bottom may be 2 point , on my project I'm using some components whick is designed by some friends like panels ,,
I'm installing vb.net 2005 service pack 1 ,
and the prlblem is still ,,
Really it's a thing make me wondered
jooooo
|
|
|
|
|
have you asked your friends if their components use anchors? maybe it's there stuff that is causing the confusion...
|
|
|
|
|
Allah bless you !
Thanks my frind and I will do ,
jooooo
|
|
|
|
|
hi could anybody help me with this problem.. im trying to extract icon form a file and put it into the imagelist and display this icon to the picturebox.. but i got error saying "system.drawing.icon cannot converted to system.drawing.image"..
|
|
|
|
|
If the icon you are extracting is of proper .NET icon format then you should be able to use the methods of the icon class to convert to a bitmap (.ToBitmap() possibly). If the file is not carrying any .NET native icons you will need to use icon API commands. Try searching the site here, I think I have seen at least one article on this.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios[ ^]
|
|
|
|
|
I am working on a Console application at I wish to use arguments with.
I am using VS2005 system.environment.getarguments...
This returns a string array separated by a space. This does not help if the arg I am trying to pass has spaces.
How to I set the GetArgs to use a - or / as the separate (switch)?
At present I am writing the array back as a single string and using split to separate in the - but this is wrong I know.
Does anyone have advice / tutorial explaining this.
Please NO cut and paste code....
Thanks
When people make you see red, be thankful your not colour blind.
|
|
|
|
|
japel wrote: This does not help if the arg I am trying to pass has spaces
Arguments usually are preceeded aith an escape character. Either '\', '/', or '-' for example. You can do your split and check out for that escape character at each of the splitted strings. If it starts with your escape char then it's a new argument. As long as it doesn't then simply append it to the previous one.
Regards
|
|
|
|
|
In the past I have done this with a getargs sub but why is there a system.environment.getarguments if it is so limited.
It must be how I am implementing it.
This was the way I was doing it.
<br />
Function GetCMDArgs() As String()<br />
' Declare variables.<br />
Dim separators As String = " "<br />
Dim commands As String = Microsoft.VisualBasic.Interaction.Command()<br />
Dim CMDargs() As String = commands.Split(separators.ToCharArray)<br />
Return CMDargs<br />
End Function<br />
When people make you see red, be thankful your not colour blind.
|
|
|
|
|
hi dear friends
how can i change datagridview header color in
.net 2005 - windows application(programatic or in design mode)
thanks & regards
zahra yousefi
yousefi105@yahoo.com
|
|
|
|
|
For example:
DataGridView.Columns["ColumnName"].HeaderCell.Style.BackColor = Color.Red;
Regards
|
|
|
|
|
Dear Friends,
I have a datbase with one table with 8 filed and about 400,000 records,
I use VB.Net and connect to my Access Datbase but during the runtime the query and openning the databse is very slow,
Any Help??
Rafik Mouses
|
|
|
|
|
rafikmouses wrote: I use VB.Net and connect to my Access Datbase but during the runtime the query and openning the databse is very slow,
Care to provide more information? For example: What information do you need? what queries are slow? How is the database structured?
|
|
|
|
|
what is differeence between i.equal(j) and i=j in vb.net.
|
|
|
|
|
sathyan_8294 wrote: what is differeence between i.equal(j) and i=j in vb.net.
What's equal ?
Do you intend Object.Equals() , don't you?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
|
How have you declared i and j ???
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
CPallini wrote: If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
"There is a theory which states that if ever anyone discovers exactly what the Universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarre and inexplicable. There is another theory which states that this has already happened." - The Guide.
|
|
|
|
|
It could be that it was placed in the framework so it would be more familiar to developers who are coming from the Java programming language.
In Java, the == boolean expression returns true if two strings share the same memory address and false if the two memory addresses are different. The .equals method in Java would properly determine whether each of the memory addresses contain the same information.
For VB and VC# I would imagine that the == and .equals (or in VB's case: = and .equals) should have the same purpose, but this is just a guess as neither of the languages really use pointers.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios[ ^]
|
|
|
|
|
That depends very much on the data types of the variables.
The Equals method of the i variable is called with whatever data the j variable contains, while the behaviour of the = operator depends on the data types. If the data types are the same or can easily be converted to the same type, the = operator method for that data types is used, which usually does the same as the Equals method. Otherwise a huge method (hundreds of lines of code) in the Microsoft.VisualBasic library is called, that determines how the values can be compared and how it should be done.
---
Year happy = new Year(2007);
|
|
|
|
|
.equals is for comparing things other than numbers or words, like controls.
if textboxTMP.equals(textboxName) kind of thing, if you're working with say, forms or addressbooks and you need to have some sort of checking rather than a loop or select for each control. Personally, I don't use it, so I can't think of a useful instance, though I'm sure there are a few.
Daniel
|
|
|
|