hmm, try dropping the
toolstripmenuitem = new ToolStripMenuItem();
As you are creating space you dont need.. Other than that, that should work..I'll experiment more when I get to work
hmm, try dropping the
toolstripmenuitem = new ToolStripMenuItem();
As you are creating space you dont need.. Other than that, that should work..I'll experiment more when I get to work
new or not, I seriously doubt theres any lectures whod set a task like that who hasnt showed them ways to do it, or at least suggested reading material..
I am astounded.
if you're doing this and you havent *any* ideas to those questions you should really consider going and telling your professor you either havent listened or your on the wrong course!
You also should read the stickies we *WONT* do your work for you. You need to do that - either that or you give use your qualification at the end.
If you had looked at the keywords you'd know it doesnt have to be XML - but it is one of the options. If you dont know what XML is - try google, its a tad popular.
As for the code.
Look at the code, and what he wrote, what do you *think* it might do?
Well, firstly the keywords I gave you should have been enough to read through the microsoft examples showing you exactly how to make it work - so not understanding shouldnt be an issue
Secondly, Jugortha even posted you the code? For which you havent tried.. So.
I ask again, what exactly dont you understand?
Thats because its looking for one called "Edit" ... it is case sensitive other issues can be you may need to check the name you gave it, as well as if checkbox is in a panel and the edit is in another, then the .parent wont be sufficient
But you've had example code - what exactly dont you understand - and if its for your homework - I would like to bet you've already been shown ways you could do it..
And he already said he didnt want to use a 3rd party library
But thats the behavior they want..
Can you then post the whole code, as it should indeed be working.
Does it work now?
a variable is a direct reference to a specific item.. where as the non variable kind is a reference to something thats changing. if that makes any sense
Ok did you try instead of repeatdly referencing the (ToolStripMenuItem)menuitem) make a variable in your foreach loop and use that?
You can do a test app with buttons and text boxes and it most certainly will and should work
What Im doing is creating an event on the fly and telling it to click the toolmenuitem in question.
The only difference between you and me is I assigned a variable to my item, so rather than keep referencing ((ToolStripMenuItem)menuitem) I had assigned it as a variable, try that, as it most certainly does and should work.
I dont believe you can retrieve deligates assigned to an event, however, i would have thoguht you could cheat! And make an anonymous method that would work something like:
RowHeaderMenu.MenuItems.Add(((ToolStripMenuItem)menuitem).Name, delegate(object ssender, EventArgs se) { ((ToolStripMenuItem)menuitem)..PerformClick(); });
He tries to with his
seek(UserFile, filesize (UserFile));
For short, there is no such thing "putting in the name". You must have a reference (memory address) of the object you're going to use. When you say you put in the name of something, it may be a name of a global (like Form1) holding the reference for that object, or a field of the form which has that method (like writing Button1, it's like Self.Button1). The earlier case is just nc (globals=deprecated), and the later is a valuable shortcut set up for you by the IDE. But then if you use a field of an object, you must have a source code of it in the same file or in the uses clause to allow the compiler to calculate the offset of that field related base address.
thank you for your pedantic post, putting the name of the component in is not an unrealistic question - it hadnt been mentioned before it was created on the fly - hence it seemed that the issue was being over complicated.
Ive been coding in delphi for over 20 years, I can assure you I know more than well the name of the component is for my convienience not the computers.. In fact I feel at this point, if you look in the special thanks of delphi 2006, 2007 you'll find my name there, similarly its in the team for 2009.. So, believe me I do know what Im talking about - I just was asking a simple question and …
grep comes with delphi - its a reg expresion file seacher..
Services do not run in the same session as a user, and should not be user specific. If you need it to run as a specific user then they need to enter their details in the service credentials so it runs as them, however, the user session when they log into the desktop is always going to be separate.
Someone should always have to confirm credentials to use a service - or there is a gaping chasm of issues with vulnerability!
So you needed to post another answer to a nearly 11 month old thread that was marked answered?
Please use code tags, as well as explaination dont just throw code.
If you use streams with serialize and deserialize you can read and write them
You mean call this?
CheckBox.OnClick := DisableEditBox(EditBox);
And then disable the EditBox in the method? I've tried every possible combination, it always says there's a type mismatch when compiling the code. Or did I misunderstand you?
No but the Checkbox_OnClick method could just say
Editbox.Enabled:=false;
You seem to be over complicating what you want to do
Its logic, you can put in the cell anything you like, not all cells are necessarily the same you could make them different on content. Sure its the same class - but no one says that class has to do the same thing for all the values it supports.
You can though if you do your own as the ms article shows implementing a non standard dataview control , as you can have it display dependant on settings.
Then I guess microsoft dont know their own product
http://msdn.microsoft.com/en-us/library/7tas5c80.aspx?ppud=4
Yes you have raison dikersonka but I try to simplify the existence to gooki2005
What on earth does that mean?
Then you need to include with it a number of debugging statements that either write to a file or messages to screen or use something like smartinspect to direct various debug informations there...
then most likely its complaining because its trying to redraw something you just deleted
Sounds like its trying to say you cant remove either the first tab or have no tabs
This is going to sound stupid but why cant you just put the names of the components in the original click method and enable/disable them?
Use grep and look you'll find somewhere in one of the files the paths have been embedded
What was the errror?
With what specifically? We dont do home work, you give us code and what the exact problem is, we'll then help you try to see how to fix it
Someone probably googled and thought hey I can help with that.
I think I know what he meant but as ddanbe has said, the code supplied produces nothing other than compilation errors and logic errors.
I would say call Edit.Click but edit boxes dont have such a function
If you know the control you want, make a routine you pass the edit box too, and call the routine with that from your onclick method.
You have a few choices
1. Read the entire file in, and then write out the stuff you want
2. While reading through your file, output to a new file the stuff you want and move it.
3. Have a flag in your structure that says "ignore this line its for reuse" and then allow your code to reuse those records
4. Read through the file, and find the point you want, and then read the record after, and put it over the top of the old.. but this only works when you have fixed record sizes.
5. A semi combo of some of the above where you find the point in your file you want, read whats left, remove the bit you dont want and write back the results
There goes the learning process..
"SHOP_CODE" is a string.. it wouldnt need to be.
However, debugging it and watching what happens after B is made, and checking what you see as B is what you thought would seem very simple and should provide most of the answer
If you need something else to see them they have to be public.
Try disabling the picturebox.
Dont you need to set some more details about datatable before its usable?
When you've created "B" and you debug it, what does it show you?
Then you need to reword your question properly as the answer given answered your original question.
I guess you havent checked the length of the entered text?
Make a new thread as the intiial post was answered and this is not your thread. Post with code tags so your code is readable. As well as explain the problem you're having.
Your question is unclear because you have used lots of caps and no punctuation, and barely described the issue.
However..
I believe most of the code you posted is unnecessary, bar the "newuser1" function
But, Im guessing the main part is you need to check your seek worked, and th at you moved to the right point..
You could
[DllImport("advapi32.dll", EntryPoint="RegEnumKeyEx")] public static extern int RegEnumKeyExA(int hKey, int dwIndex, string lpName, ref int lpcbName, int lpReserved, string lpClass, ref int lpcbClass, ref FILETIME lpftLastWriteTime)
Then Id need to see more context, because without seeing more theres no chance of saying why its not working
Hmm, I'll have to mail the person ask why its not working..
PS http://www.xcalibur.co.uk/training/Delphi2005 is working now!
On click needs a procedure assigned to it so if you have
procedure mything.something_click(Sender : TObject)
begin
.. do something
end;
button1.Onclick = something_click;
Probably because you didnt tell it to update the original only the copy in memory
http://msdn.microsoft.com/en-us/library/xzb1zw3x(VS.80).aspx
Not personally but I know people who have.
No they are all "methods" the only difference is if you dont want to return anything you say it returns "void" eg nothing