|
Hi, anyone can help me in making COM in C#, i have a inventory system can i convert it into COM, or COM+. please tell me about good web-link or basic steps to foliow. thanks
|
|
|
|
|
|
it seem to be good, to clear the concepts, can u help in coding, or can suggest any coding tutorial,thanks
|
|
|
|
|
Why not search for yourself? There are many articles here on CP showing you how to code COM classes in C#.
mav
|
|
|
|
|
I have an app that creates a panel that has the docking style set to fill (filling up the whole program) and another panel added to the control list of this first panel, which is quite large btw (about 5Kx5K). Now I'm wanting to add little Forms to this larger panel and that seems to work ok. Right now I do "myFrm.Parent = bigPanel" where myFrm is of course a Form() and bigPanel is Panel(), obviously. So I see my form there and can move it around, but once I move the scroll bars which come up from the first panel (AutoScroll set to true) it appears that the form moves around like it should, but it's really not. I can't then move the form around until I do something to the main app that causes a paint, like shake the program around, or resize it, etc. Also when the form "sticks" like this, I can actually click and drag it around if I click where the title bar of the form was BEFORE I scrolled, which usually for me is near the center of the form. This seems quite odd and I'm not sure how to fix it. Maybe somehow I need to update the position of the form when the panel scrolls or something, I'm not really sure. Any one know why this could be happening? You can see it for yourself easily if you re-create a test app how I described to see what I'm talking about if I'm not 100% clear. Thanks!
|
|
|
|
|
Well, you're not supposed to put a Form-derived class as a child window of another form (unless it is a MDI child, which is another story). I don't know why what you do works, but I wouldn't expect it to.
For your situation, if you want a form that can be moved inside another form, try MDI parent/child forms. It will work much better.
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
|
|
|
|
|
I was kind of thinking I needed to do MDI but I thought maybe I could make it work the other way, o well. Thanks though, I'll changed things around so I make use of MDI. Hopefully everything will go smoother now.
|
|
|
|
|
Yes. You could maybe hack up something that could barely work, but MDI is designed exactly for that, so I guess it's a better idea. And the .NET Framework makes it *soo easy* to make your form MDI that it really becomes a very valid option.
Good luck!
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
|
|
|
|
|
can anyone pls help me to explain what is the meaning of the regex
variableSyntax = new Regex("\\w+(\\.\\w+)*[ ](?<variablename>\\w+)\\s*(=|;)");
what's the ?<variablename> meaning???
|
|
|
|
|
Nothing.
You can use it in the meaning of {0,1}: [a-z]?
You can use it to make matches non-greedy: [a-z]*?
You can even use it to make ? in the form of {0,1} non-greedy: [a-z]??
You can use it in several extensions in the form (?x...) where x is any of the characters: iLmsux:P#=!<(
There is however no form where it will appear first in a parenthesis followed by the \ character.
If it is allowed, it has no special meaning, and it will be one of the few cases where it actually matches a question mark without needing to be escaped.
---
b { font-weight: normal; }
|
|
|
|
|
I tried to build a test commandbar in Infopath following the direction in Microsoft.Com. However, I found that the command bar is only available when I preview the template. Now, I want to code a command bar so that it could help users to submit the templates to WebService (not those data but the template). So my question is how can I estable a command bar which could execute codes in design mode. THANK YOU ALL!
|
|
|
|
|
Is the .exe file in the bin folder the real .exe file that you would distribute, if not how do I make that distributabel .exe?
|
|
|
|
|
Make sure that you perform a build in Release mode. Then use the *.exe file from the [project_directory]\bin\Release folder. Good luck with your projects.
John 3:16: "For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life."
|
|
|
|
|
|
And don't forget any *.dll files in the same folder, in case your project has some dependencies.
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
|
|
|
|
|
When you say dependencies do you mean references?
|
|
|
|
|
|
And what do you mean same folder. Does it always need to be present with the .exe?
|
|
|
|
|
In .NET, yes, unless the assembly is registered in the global assembly cache. But most of the time, if you reference a .DLL, it will be copied to your .EXE's folder.
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
|
|
|
|
|
Where do I find the .DLL?
|
|
|
|
|
It depends. If you don't reference any DLL, your program will only use DLLs included in the .NET Framework, and thus installed on the client system if your app is to run.
If you use any non-standard DLL (say, a library of reusable utility routines) then you must reference it (select it in the References dialog in Visual Studio). Most DLLs referenced this way will be copied to your EXEs folder, so just search there (in the bin\Release folder).
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
|
|
|
|
|
You mean only copy a DLL if I make a DLL myself?
|
|
|
|
|
Just copy all the DLLs with your EXE in the bin\Release folder. That should do it.
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
|
|
|
|
|
Can a picture box display multiple images? If it can can you easily determine where they are and change the values?
|
|
|
|
|
Unless mistaken, I think you can only display a single image at a time in a picture box. Depending on your needs, you might want to consider using multiple picture boxes if possible. I hope this helps.
John 3:16: "For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life."
|
|
|
|