|
Hi i'm searching for the same Control in WPF.
|
|
|
|
|
Hi all. I'm working on a project where users enter scripts in a richTextBox and syntax-highlighting would help. Can anyone recommend a windows forms control or extender that has this functionality? I've googled and found some, but would like a recommendation from someone who has used one and has had a good experience with it.
thanks --
--mike
|
|
|
|
|
Scintilla.net is a good component for that purpose. In addition it is free.(I am using it in an internal application). The only disadvantage is its learning curve.
|
|
|
|
|
Hi all. I'm a noob and i have a question to you all.
I want to present a datagridview with more then one Header Row and with the first column row
merged like this:
-----------------------------------------
|...............Week......................| -> Week
-----------------------------------------
|..M..|..T..|..W..|..T..|..F..|..S..|..S..| -> Each Week Day
------------------------------------------
Is there a way to do that? I didn't want to use a comercial component
Thanks in advance.
|
|
|
|
|
|
My program is simple. Grab an object and move it by using "regions" as drop points. I'm using transparent borderless forms added to ownedforms(), position them on the screen where my objects can be dropped. I've tried 3 appoaches to this task.
1. tried using drag and drop to drop the object onto the forms and it works great unless you release the mouse somewhere other than one of the floating forms, then the program hangs waiting for a "drop" because I can't determine that the mouse button has been released to cancel the move and therefore can't remove the floating forms and continue.
2. tried using control.mouseposition to track screen movement and pointtoclient when appropriate for placement inside of a floating form. This doesn't work because as long as the mouse button is held down the ownedforms() floating above the main form won't see the mouseEnter, mouseMove or mouseLeave events because capture is stuck in the control I started this action on.
3. Tried number 2 with getChildAtPoint() to try and figure out when I'm over the ownedforms() floating over the main form but whether I use
findform for "f" then f.getchildatpoint() or this.getchildatpoint() or any other control call I can only get single items "children" that are actually part of the main form's control collection. Any answers to any of these ideas would be helpfull.
|
|
|
|
|
In visual c++ 2008 when you create a windows forms application it creates a file called Form1.h
What type of file is that and how do you write a program around that to use the values that you input them, use them and output the values of an algebra question for example.
I am completely new to windows forms so if you could show an example it would be great.
thanks
ps if there are any good books that tell you how to program with windows forms that would be great
|
|
|
|
|
Form1.h represents your Form1 (which is a class Form1 derived from System::Windows::Forms::Form), and contains code related to it. We can declare out objects and controls here.
Just to give you an idea, following is a small code snippet which takes number from two textboxes (which are already on form1) and after adding these numbers, shows sum in a message box. –
-------------------------------------
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
int i;
i=System::Convert::ToInt32( this->textBox1->Text);
i +=System::Convert::ToInt32( this->textBox1->Text) ;
System::Windows::Forms::MessageBox::Show("Sum : "+i.ToString() );
}
-----------------------------------------
As you want to get books on Visual C++, I would advice you to search on google.
-Dave.
------------------------------------
http://www.componentone.com
------------------------------------
|
|
|
|
|
Thanks,
I've got this book: "C++ A Beginner’s Guide by Herbert Schildt" and I ve gone through it all but it doesn't do anything on windows forms unfortunatly.
Thanks again
|
|
|
|
|
Hello,
I am not very sure about book for learning .Net programming with Visual C++… however using Google I found two links which should be useful for you.
1) Good tutorials on different topics –
http://www.functionx.com/vcnet/index.htm
2) Msdn page (I have not checked any of the tutorials available here so don’t know how they are) –
http://msdn.microsoft.com/hi-in/library/60k1461a(en-us).aspx
I hope this helps.
-Dave.
------------------------------------
http://www.componentone.com
------------------------------------
|
|
|
|
|
|
.h files are header files.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Hi there,
Anyone up for challenge to to create a winform combo control dropdown that has visual que's like that of sharepoint combo dropdown control.
Thanking you in advance.
Sk8tZ
|
|
|
|
|
http://www.rentacoder.com
|
|
|
|
|
Along with the rentacoder site that the other CP member suggested, you can also try the Article Request Forum: http://www.codeproject.com/script/Forums/View.aspx?fid=1641[^]
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 Blog
|
|
|
|
|
Hi Friends .
I want to add a MaskedTextBox into column of DataGridView.
how can i do.
please help me.
if you cound not try then
msgbox("you will lose")
else
msgbox("you can change yourself")
end if
|
|
|
|
|
|
Hi,
What is best machinsm to check whether the server is UP or not?
How far ping mechanism is reliable?
If any good machanism is there to check whether server is UP or not?
Kindly help me
|
|
|
|
|
Hi all,
I am trying to write the following logic in c#.Please help me , i could not able to translate the Bolded code in the following logic.
Code in VB.Net
==============
Public Function ConvertPage(ByVal PageUrl As String) As Bitmap
Me.PageUrl = PageUrl
Dim thrCurrent As New Thread(New ThreadStart(AddressOf CreateImage))
thrCurrent.SetApartmentState(ApartmentState.STA)
thrCurrent.Start()
thrCurrent.Join()
Return ConvertedImage
End Function
Private Sub CreateImage()
Dim BrowsePage As New WebBrowser()
BrowsePage.ScrollBarsEnabled = False
BrowsePage.Navigate(PageUrl)
AddHandler BrowsePage.DocumentCompleted, AddressOf WebBrowser_DocumentCompleted
While BrowsePage.ReadyState <> WebBrowserReadyState.Complete
Application.DoEvents()
End While
BrowsePage.Dispose()
End Sub
What is Equivalent c# code for above bolded lines?
Thanks in advance.
|
|
|
|
|
This may or may not get you going:
Thread thrCurrent = new Thread(new ThreadStart(CreateImage));
BrowsePage.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(WebBrowser_DocumentCompleted);
private void WebBrowser_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e )
{
...
}
- S
50 cups of coffee and you know it's on!
A post a day, keeps the white coats away!
|
|
|
|
|
|
|
Hi,
I want to know how Visual C++ experts implement these complicated logical relations between visual components of a form.
For example when user switch between different radio buttons and you need to en/disable other components or some other tasks.
Actually I need some APIs (like EnumChildWindows) or some approaches(which I don't know any!) to make it more covnvenient to do such boring tasks!
|
|
|
|
|
Interaction between controls in a WinForm Application is handled by using events of controls.
Therefore lets say if we want to disable a button control on selection of a radio button, we can use code like this –
private: System::Void radioButton1_CheckedChanged(System::Object^ sender, System::EventArgs^ e) {
this->button1->Enabled=false;
}
Don’t forget to add handler for Checked event of Radio button.
-Dave.
------------------------------------
http://www.componentone.com
------------------------------------
|
|
|
|
|
Hello,
anybody help me out by providing code for a label box to be visible when a condition satisfies.how to set the property.how to get the value from presenter view.
thank u
|
|
|
|