|
John Simmons / outlaw programmer wrote: Six months of "learning VB.net" makes you a rank amateur, a newbie, a mere child
I agree 100%.
Who said that I want from you to consider me an expert?
Just take into consideration my programming experience because it make a lot of difference from dealing with no experience.
Like car accidents, most hardware problems are due to driver error.
Samir R. Ibrahim
|
|
|
|
|
Errr , i dont know alot , but sound like subclassing/inheritance..
Me.Version = "1.0" is a setter thingie in this class, you are setting version to 1 , that will set property version to 1 , that will set version to 1 etc..
Version = value is also a setter thingie in this class.
-did you ever type mybase in your subclass ? use and abuse !
-if you have a inherited control , then this class uses a already made class , maybe you'll have to dive into private/protected/public/must overidde/overiddes stuff..It's weird in the beginning but extremely helpfull in the end.
-did you put your usercontrol in a different project and referenced that project into your inheritee project , (cause that how it works with me here) ? A usercontrol sometimes wants to be build first in a seperate project , before it wants to be patched up with new code by a different project.
Jarno Burger
Video Jockey
|
|
|
|
|
Thank you for your answer. Appreciated.
Like car accidents, most hardware problems are due to driver error.
Samir R. Ibrahim
|
|
|
|
|
You really are a muckfit aren't you! You say thanks for a little and rant at a lot.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
If you can read and understand, you will know that I am trying to end this post and end this discussion. but it seem you don't.
Like car accidents, most hardware problems are due to driver error.
Samir R. Ibrahim
|
|
|
|
|
I normaly type my variables and properties in .NET like so:
Public Class UserControl1 ' I add Textbox
Dim m_Version As String
Property Version() As String
Get
'Version = "1.0" ' Worked Fine
'Me.Version = "1.0" ' Warning 3 Property 'Version' doesn't return a value on all code paths. A null reference exception could occur at run time when the result is used.
'Return "1.0" ' Worked Fine
Return m_Version ' Worked Fine
End Get
Set(ByVal value) As String
m_Version = value ' Works Fine
'Version = value ' Warning 3 Expression recursively calls the containing property 'Version'.
End Set
End Property
End Class
But it probably realy would make sense to make the Property readonly.
Regards: Didi
|
|
|
|
|
Hi all I hope someone can tell me to use crystal report viewer of Crystal report viewer Application to use as crystal report of VB.net thank for reading
|
|
|
|
|
|
Thank for your reply, but I have been try to do again and again but I still can't call Report viewer of other application(Crystal Report 9.0 or upper) to use as Cristal Report Viewer of VB.net I hope I got more batter answer then this. note(The report Viewer Of other application from VB.net Like Crystal Report 9.0, 12, ...)
thank.
modified on Saturday, May 30, 2009 6:15 AM
|
|
|
|
|
Should I or should I not be using the 'Me' keyword to reference local objects and properties? Is it recommended or is it just a matter of coding style?
|
|
|
|
|
It seems to be a matter of personal choice.
Microsoft recommends its use, but many decry it. I am mainly a C# coder and I tend to use the C# equivalent 'this', as it helps me to distinguish between members which are local - to a block and those that are local - to a class.
I have yet to see anything that might be called definitive, except for the MS Coding Style Guidelines[^], in case you are interested.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Ok great, thanks for the help
|
|
|
|
|
I am able to create a structure inside a structure in vb.net but i am confused as to assign values to the inner structure. I want to send the root structure (which contains the value of its own as well those of the inner structure) to another procedure. Someone please help. Thanks in advance
modified on Wednesday, May 27, 2009 6:07 AM
|
|
|
|
|
Something like this?
Public Structure InnerStruct
Public InnerTest As String
End Structure
Public Structure RootStruct
Public Test As String
Public myStruct As InnerStruct
End Structure
Public Class Form1
Public Sub ShowInnerText(ByVal whatStruct As RootStruct)
MessageBox.Show(whatStruct.myStruct.InnerTest)
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Button1.Click
Dim newStruct As RootStruct
newStruct.myStruct.InnerTest = "Hello world"
ShowInnerText(newStruct)
End Sub
End Class
I are troll
|
|
|
|
|
Expanding on Eddy's example:
Public Structure InnerStruct
Public InnerTest As String
Public Sub Init
InnerTest = "initialize your vars here"
End Sub
End Structure
Public Structure RootStruct
Public Test As String
Public myStruct As InnerStruct
End Structure
You can have subs etc, within a struct. You can also have a CTOR; although it must have parameters. Just another option for you.
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
Thank you very much for your help. Your code works fine. You have taught me how to do that. Previously I placed the InnerStruct inside the RootStructure and was groping around. Can it be done that way or was it a wrong approch ? Thank you once again.
|
|
|
|
|
You mean like this?
Public Structure RootStruct
Public Test As String
Public myStruct As InnerStruct
Public Structure InnerStruct
Public InnerTest As String
End Structure
End Structure That's valid too. Just don't forget to include a field that instantiates the struct in the RootStruct
I are troll
|
|
|
|
|
Okay, i got it. Thank you very much for your time and help.
|
|
|
|
|
Launch a process with ShellExecuteEx, I wanted to ask if it was possible to freeze, pause the process and subsequently restart it?
Of this process for now I have available hProcess(Index) = SIX (Index).HProcess
Thank you.
With SEI(Index)
.cbSize = Len(SEI(Index))
.fMask = SEE_MASK_NOCLOSEPROCESS Or SEE_MASK_FLAG_NO_UI
.hWnd = OwnerhWnd
.lpVerb = "Open"
.lpFile = Filename
.lpParameters = Parematri
.lpDirectory = vbNullChar
.nShow = SW_SHOWNORMAL
.hInstApp = 0
.lpIDList = 0
End With
r = ShellExecuteEx(SEI(Index))
|
|
|
|
|
No, it's not possible to "freeze" another process and then restart it. If you don't want it running, don't launch it.
|
|
|
|
|
HI ALL,
I am trying to run my application as a Operating system(Directly from Boot menu).is any one help for about this topic please help.
Thanks
If you can think then I Can.
|
|
|
|
|
First, you need to have written an operating system...
Have you written an operating system?
|
|
|
|
|
No i have not written an Operating System. But i wanna try for it. Give me some idea for written an Operating System.
If you can think then I Can.
|
|
|
|
|
Before you learn how to bake pie, you must learn how to create a universe.
Go Cosmos[^]
I are troll
|
|
|
|
|
A bootloader is 512 bytes long, and has a specific two-byte signature at the end of the file. It gets loaded at 0x7c00:0x0. You get put in real mode. BIOS interrupts are available. But before you even start writing an operating system, make sure you know C++ and assembly language (especially pointers). If you need to get any more knowledge then go to the OSDev Wiki and read anything you can find. Write some code, and follow tutorials to start with
|
|
|
|