|
Hi mike,
My application is some thing like threre are 2 datagridviews 1 with main data and the second displays the if any sub items in the main item. sub items can be value range, few selections, true or false type. In the second gridview I have NumericUpDownCell, ComboBox Cell. In the Sub Items there are only 2 values for the comboBox but the range of values can be 0 to 255, so when user selects ComboBox I need to display 0 ("Initial Value") and 255 ("Invalid Value"). When NumericUpdOwn is selected I have to increment/decrement values range from 0 to 255 and the 1 to 254 shall display in the ComboBox.
I have done some mimik based on your input but differently. When ComboBox is selected I have removed the rest of the items, if there is no event selectionchanged I have restored the item, but it causes a blank ComboBox for a short duration.
SomaShekhar
|
|
|
|
|
I'm having a difficult time understanding what your requirements are. For this reason I cannot suggest a specific solution. However in general, for cases that might require more complicated behavior a custom column might be a good solution.
led mike
|
|
|
|
|
Mike,
Thanks for your guidence, I will check it out, mean while what i did was I have added a Item when the value is changed in the Numericupdowncell and removed when combobox is selected. Now it is working fine.
SomaShekhar
|
|
|
|
|
I'm starting to work with Windows Forms application and need to show PDF files in my application. In future I might want extend functionality to show also Microsoft Office documents and HTML content.
I was thinking to use WebBrowser control, but is there any other options that I should consider? There is no need to let end-users to modify documents, just simply showing them.
|
|
|
|
|
Hi,
If you want to show the PDF files only for the time being then you can use MicrosSoft PrintPreview Control or you may go for any third party control. Take a look at http://www.componentone.com/[^][^]
Hope this helps .
Regards,
John Adams
ComponentOne LLC
|
|
|
|
|
Hello, I've got a question: How do you determin a user change to a trackbar to one done with the Value property (in code). Or if there is somewere to only catch the user one.
|
|
|
|
|
|
Can any help me in my query.
As i want to know how to build application that expired after installation of trial version.
THanks & Regards
Fahim
fahim_sk@hotmail.com
|
|
|
|
|
Do you have the code for the program?
If you don't, you can't.
Anyway, re-building it doesn't work! You need (if you have the code) to remove the liscense part.
|
|
|
|
|
I think he may have meant "that expires after..."
In which case, you probably need a third-party registration system. There are several available--I think CNET Download.com offers one, but don't know much about it. There are probably better ones out there.
Of course you could do it yourself, but I'm assuming that since you're asking how, you probably don't want to figure it out on your own. Not that it's that hard, but I suggest doing a bit of research on the topic and asking a more specific question if you can't figure something out.
“Time and space can be a bitch.”
–Gushie, Quantum Leap
{o,o}.oO( Looking for a great RSS reader? Try FeedBeast! )
|)””’) Built with home-grown CodeProject components!
-”-”-
|
|
|
|
|
There are some nice tools availeble for this, for example: Software Shield[^].
You can create your own, just store the time of installation somewhere and when you application starts it checks if the trial time isn't expired. If it is expired you inform the user and exits.
When you create your own, you have to remember that the user can adjust his system clock. So you have to build in that simple security also.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
I am working on a Windows Application where I have a button that creates tabs in my Tab Control at run-time. The controls inside of those tabs are obtained from a User Control which I created. I would like to now add functionality to allow a user to close each particular tab with a button inside each tab that gets created at run-time. I am having a hard time figuring out how to access the tab control (located in the main form area) from within the User Control to accomplish this purpose. If anyone has any ideas or suggestions, it would be greatly appreciated!!!
|
|
|
|
|
Probably delegates
There ws something similar in one of my earlier projects and Delegates made that possible.
|
|
|
|
|
It's not considered polite.
|
|
|
|
|
I think d@nish has the right idea. I assume (probably a big mistake ) you're creating the "close" button from the same level you're creating the tab control, like so:
Form1::someFunction(){
this->Controls->Add(tabControl);
tabControl->Controls->Add(closeButton);
}
Maybe not in the constructor necessarily, but you get the idea. Anyway, I set the closeButton's click handler to a function in Form1 in this case, that would somehow close your tab (as for the actual close operation, I'm not sure how to do that, I haven't done much with tab controls).
Dybs
|
|
|
|
|
I am connecting to a printer and when it's offline, it takes about 20 seconds before the exception. The printer is called from a timer that fires every 20 seconds. Is there a way to make the faster, or to check the status and get an immediate response, like in 1 or 2 seconds?
Code:
Public Shared Function SendStringTCP(ByVal Hostname As String, ByVal Port As Integer, ByVal StringToSend As String)
Dim bSend() As Byte = Encoding.ASCII.GetBytes(StringToSend)
Dim MyTCP As New TcpClient 'create a TCP client
Dim MyStreamTCP As NetworkStream
Try
MyTCP.Connect(Hostname, Port)
MyStreamTCP = MyTCP.GetStream
If MyStreamTCP.CanWrite Then
MyStreamTCP.Write(bSend, 0, bSend.Length)
End If
MyTCP.Close()
Return True
Catch ex As Exception
MyTCP.Close()
Return False
End Try
End Function
mossie01
|
|
|
|
|
Hi all,
I have an .exe which is working fine. Now I have to make a schedular programatically which will invoke the .exe(console app) every day at 6.00PM and performs the operation and then quit after completing the job.
Kindly help me in doing that....
Thanks
|
|
|
|
|
Hello !
You can use a timer or a thread in your C# application testing current time. When current time is 6.00 you call Process.Start method
see
http://msdn.microsoft.com/en-us/library/system.diagnostics.process.start.aspx
I think that the best way is to use windows task scheduler.
Regards,
|
|
|
|
|
Don't double post, your question has been answered in c# forum.
Giorgi Dalakishvili
#region signature
my articles
#endregion
|
|
|
|
|
I dont understand this some time.
His last post is still on the first page of Windows Forms Forum, he made a new post asking same question.
By the way, here is the link(though its just 3 messages below)
http://www.codeproject.com/script/Forums/View.aspx?fid=387161&msg=2674203[^]
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
In that case it's a triple post, he posted in C# forum too
One more[^]
Giorgi Dalakishvili
#region signature
my articles
#endregion
|
|
|
|
|
If he would have spent half of this time(posting 3 posts) in Google, I bet he would have got the right solution on the very first page it self.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
I'm afraid he still hasn't learn anything from these posts.
Giorgi Dalakishvili
#region signature
my articles
#endregion
|
|
|
|
|
Most of the times I see that people don't even read all the responses to their posts.
This is nothing but negligence.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Simplest approach would be to use the Windows Task Scheduler.
"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
|
|
|
|