|
Mike Kitchen wrote: like the current colordialog in the toolbox to the side of the design window.
Then you need two things. You need the custom control with a designer implementation so it can be in the toolbox and dropped on a form by a developer. The interface (API) you create for the control supplies the mechanism that is used at runtime to launch the Windows Form that is also in the assembly (or in another assembly I suppose).
|
|
|
|
|
OK. I am being a bit slow with this. So could you point me in the right direction to achieve this please. If I get it sorted I will post the dialog as an article.
|
|
|
|
|
I doubt you will find an example of doing exactly what you intend. You need to piece the inforamtion together. I suggest you first learn how to create a custom control. That's pretty simple but then you need to learn about implementing the Visual Studio designer support. From there you should be able to see how your non windowed control is used by a developer to implement the showing of the form that is in the assembly. My original post contains the key words you would use in google to start researching, something like:
MSDN Windows Forms custom control designer
|
|
|
|
|
Hi
Yep, started doing a few google searches and I have come up with a few links, so hopefully I am on my way with it now.
Thanks for the help, and if I get it sorted I will post the control as an article.
|
|
|
|
|
I have a ClickOnce application downloadable on the web set to be Online only - no install on user's machine.
One user couldn't get it to work. Then, looking at screen shots she sent me, realised that the custom error messages did not match the text that I could see in front of me in VS.
So I changed the title of the form in question, bumped up the build number, just to be sure there hadn't been a typo and I was publishing a lower number, re-published and when the screen shots came back, it was an older version of the app that was running(which doesn't exist on the web server)
It works perfectly on my PC.
The user claims to have cleared all Temp files and browsing history to no effect.
All I can think of is that this might be related in some way to the WINDOWS\Prefetch folder. Could the app have gotstored on the PC even though it's designed not to install locally?
Anyone have any ideas?
Rich
|
|
|
|
|
How to Generate the Crystal report in Asp.Net using C#
nadi
|
|
|
|
|
Is to export the report to PDF and then render the pdf.
Need a C# Consultant? I'm available.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
|
|
|
|
|
hello can somebody tell me how to get the binary data sended by a joystick connected on my pc through a serial port
regards
dghdfghdfghdfghdgh
|
|
|
|
|
|
originSH wrote: Is google broken?
Always works fine here.
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
|
besmel wrote: but... nobody had the same trouble moving from MFC ?
Yes and I used that article as a basis to create a framework for a solution. I basically refactored that design to use Generics in .NET 2 platform to eliminate the use of "object" all over the design. I have found it very useful so far.
|
|
|
|
|
It is invalid to show a modal dialog or form when the application is not running in UserInteractive mode. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: It is invalid to show a modal dialog or form when the application is not running in UserInteractive mode. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
Source Error:
Line 27:
Line 28: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Line 29: MsgBox("")
Line 30: End Sub
Line 31: End Class
Source File: c:\inetpub\wwwroot\WebApplication2\WebForm1.aspx.vb Line: 29
Stack Trace:
Thankyou,
Kalyan.
|
|
|
|
|
2 points.
1. This is the Windows Forms forum, not the ASP.NET forum. Please don't post into inappropriate forums.
2. You're trying to show a messagebox in code that runs on the server, where normally there won't be a logged in user. Don't do it.
|
|
|
|
|
You are best to ask asp.net related questions in the asp.net forum.
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
how can i get correct code
Thankyou,
Kalyan.
|
|
|
|
|
Step one - rephrase your question so it makes sense. Do you want to launch a second form ? Pass data between forms ? In any case, it sounds like the logical answer to this question will be to tell you to buy a basic book and work through it so you have a rudimentary understanding of the framework you're using.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
we just testing the code that is if we create new project,aaaaand drag the button,in button whenever we click that button new form will be display,how to write code for that.thank you 4 ur reply
Thankyou,
Kalyan.
|
|
|
|
|
OK, it's as I thought. Programming is more than dragging buttons onto a form. You create an instance of the new form in the click event and you show it. If you can't understand what I just said, that just proves you need to buy a book.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hello,
i am working on C# 2.0 winforms.
I have a ListView, in this there are 5 columns, in second column an icon need to be displayed.
my code as follows...
listView1.Columns.Add("");<br />
listView1.Columns.Add("");<br />
listView1.Columns.Add("two");<br />
listView1.Columns.Add("three");<br />
listView1.Columns.Add("one");<br />
listView1.Columns.Add("two");<br />
listView1.Columns.Add("three");<br />
<br />
listView1.FullRowSelect = true;<br />
listView1.GridLines = true;<br />
listView1.View = View.Details;<br />
listView1.SmallImageList = imageList1;
<br />
for (int I = 0; I <= 10; I++)<br />
{<br />
ListViewItem item = new ListViewItem("");<br />
item.SubItems.Add("");<br />
item.SubItems.Add("aaa"); <br />
item.SubItems.Add("bbb");<br />
item.SubItems.Add("cccc"); <br />
item.ImageIndex = 0;
listView1.Items.Add(item);<br />
}
my problem is... item.ImageIndex = 0; is showing icon in only first column. i have to show icon in second column.
how to to do?
any sounds will be greatly appriciated.
Ramana
|
|
|
|
|
Hi All,
Even I am also having same requirement. Please let me know is it possible to display icon in second colunm? otherwise I will make use of datagrid..
-Sangmeshwar Patil
|
|
|
|
|
Hi Everyone,
i have 2 Forms( Form 1 & Form 2 ) i have Button 'Add' on Form 2 & i need when i press it (in runtime) the values added on form 2 appears on form 1;
Regards
Geronimo_p3
|
|
|
|
|
Phoenix_p3 wrote: i have 2 Forms( Form 1 & Form 2 ) i have Button 'Add' on Form 2 & i need when i press it (in runtime) the values added on form 2 appears on form 1;
Well, I'm sincerely delighted for you. Just this morning, I was saying to my wife - "if only I had two forms, one of which has a button 'Add' on it which could be pressed and the value appears on form 1." And ye verily, she did say to me "Get a life you sad idiot".
I assume that there's a question lurking about in there somewhere. I'm also going to go out on a limb and assume that the question is "How do I get a value from form2 to appear on form2?" Try reading this[^] article. (Sidenote - I hope that you use better names for your forms than this).
|
|
|
|
|
Pete O`Hanlon wrote: How do I get a value from form2 to appear on form2?"
I assume one of those 'form2' instances should be 'form1'. I didn't even get that was the question, I assumed he had a bizarre bug that no-one could solve without seeing the code.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Christian Graus wrote: I assume one of those 'form2' instances should be 'form1'.
You're right - I was so busy trying to make some sense of his post.
|
|
|
|