KushMishra 38 Senior Technical Lead

You could probably design an intermediate service which would have some events regsitered to notify whether any changes to the database were made or not.
Is that what you're looking for?

KushMishra 38 Senior Technical Lead

Hi All,

Could anyone please suggest on how to apply multiple styles to multiple elements at runtime and that too the styles should be applied at the same time on all elements.
For instance, I want to animate two buttons but their styles are different. Now if I apply the style to both, the style which is applied first at runtime by the compiler would be invoked and so, I will not have the blinking effect at the same time for these 2 buttons.

Any suggestions please?
Thanks.

rproffitt commented: I see you reposted. I'm interested to see if you crack this nut. +12
KushMishra 38 Senior Technical Lead

Hi xrj, I know that using the x:key would surely solve this problem but this would not be a generic solution as I would need to apply this key to every window's style which I don't want to.

Hi rproffitt, probably you're new to WPF (first of all consider reading and rather implementing other books too) as this is a basic thing about applying styles to the controls (that includes Window itself too). Let me tell you a basic thing. All the elements are derived from "FrameworkElement" class whether it is a Window or any control because Window is itself a control. Also, to your first reply, I already mentioned that I want to make this approach generic and by using keys, I would need to manually apply that style in all the windows which is NOT a general approach (I am clearly usiung only "x:Type") (Please read first before posting, as I already saw your replies to my previous post).
Also, rproffitt, do not consider this as a rude response because this is exactly like what you've posted inside my previous article (I believe just to earn reputation points or increase your posting score).

rproffitt commented: Points can go either way. Chill. +12
KushMishra 38 Senior Technical Lead

Another one..but this time its someone else's.....

"Fear is the lack of faith" :)

KushMishra 38 Senior Technical Lead

Could you please post in the full method for the enter command ?

KushMishra 38 Senior Technical Lead

Ok, another one comes here....
"When a lion is in trouble, even a frog kicks him."

KushMishra 38 Senior Technical Lead

So, in my opinion if you want to inter-relate data of 2 or more tables, what you can possibly do is keep a common field like foreign key from 1 table in another.
As per your information provided, I'd recommend you to maintain Customer-Orders relationship and Order-Product relationship...I don't see a use of OrderDeatils table here as you may use a common Order table for both Customer and Product tables but again I cannot recommend you to use this same strategy because it may vary from need to need purposes. I can only suggest you if the same suits your requirements too :)

ddanbe commented: True also +14
KushMishra 38 Senior Technical Lead

Nice one :)

KushMishra 38 Senior Technical Lead

Unfortunately not however it would be great if you could please let us know about the same :)

KushMishra 38 Senior Technical Lead

Good one :)

KushMishra 38 Senior Technical Lead

Hmm...true indeed :)

KushMishra 38 Senior Technical Lead

Let me also ask for forgiveness then to all of you because now I realized I got driven away into something that caused this thread to become very serious and monotonous.
Another thought anyways :-
"A short useful life is better than a long useless one, its same as living like an Oak tree which lives for 100 years but is of no use".

KushMishra 38 Senior Technical Lead

Hi,

I do keep an open mind and that's the reson why I quoted your previous comment and supported that.
Also, we meet people that intentionally shake our core beliefs but that doesn't justifies that the person is really correct and also beliefs are not built in one single day and neither they can be shaken by such things if they are firm and have points to support.
I said that there are points with me to support this one but I didn't mention I was uncomfortable.
Talking of such things in "Thoughts & Poetry" thread or in any thread won't signify that someone is true or he's always right.
I requested you in a kind manner not to discuss such things that you cannot prove and also it is your personal belief and we all have no issues to the same beause its very good to keep intelligent thoughts like you do but speaking Japanese to an American won't signify that you are really very Intellectual and know many languages.
I hope you also do keep an open and intelligent mind :)

KushMishra 38 Senior Technical Lead

Hi, I think to read some text file you may use FileStream concept and then you may parse that text file in order to search a particular value.

KushMishra 38 Senior Technical Lead

Hi zaidiSEO,

C# is a programming laguage as we all know however what all you can do with C# is a question that has something close to infinite limits.
Moreover, what Visual Studio (one of the IDEs in which you can do C# stuff) has got for you and which is most frequestly in used are :=

  1. Windows Forms Applications.
  2. ASP.Net (Web Applications).
  3. WPF (Windows Presentation Foundation).
  4. Silverlight.
  5. Console Application.
    And many more to go.....

To start a quick learning of C#, you may proceed with the Console application as the above mentioned points are technologies or approaches we need to apply in order to achieve a particular requirement whether for web or windows.
So, I'd suggest you to kindly try out the basic OOP (Object Oriented Programming) concepts before C#, then go through the syntax of C#, try implementing the OOP concepts in C#, and then proceed to developing some project in Console/WinForms etc.

There's a lot you can learn, trust me :)

KushMishra 38 Senior Technical Lead

You are welcome....and also to mention that it really was a nice question :)

KushMishra 38 Senior Technical Lead

Hi, in my opinion if its a single page application, you may put all the contents in particular tabs however if its a huge application with multiple scenarios and pages, I advise you to use user controls as they are reusable and have many advantages and also you need not change the contents again and again in every page, just make the changes in the user control and you are good to go.
Hope that helps :)

KushMishra 38 Senior Technical Lead

Hi, I don't think that the TabPage has any event like Activated.
For further clarifications, you may refer TabPage Events

KushMishra 38 Senior Technical Lead

Hi, Please go through this one :-

http://basiccalcu.blogspot.in/

Hope, that helps you :)

KushMishra 38 Senior Technical Lead
strRusty_gal commented: Thanks +2
KushMishra 38 Senior Technical Lead

It would be like as follows :-

private string _myProperty = string.Empty;
public string MyProperty
{
   get 
   { 
       return _myProperty; 
   }
   set
   {
       _myProperty = myLabel.Text;
   }
}

And so it would set a public property as MyProperty and you can access the label value throughout the page.

KushMishra 38 Senior Technical Lead
KushMishra 38 Senior Technical Lead

Hi, have you tried MySQL as its absolutely free and if I am not wrong it doesn't have such data limitations.

KushMishra 38 Senior Technical Lead

Hi, for this pupose you need to first create a database and table(s) of course. Correct me if I am wrong, I think you need to refer to a particular table data to a listbox item on selection and for that you need to create a click event on that particular listbox item.
I will surely post the code related to the same but first could you please confirm on this that is this you intend to do ?

KushMishra 38 Senior Technical Lead

Hi, as suggested by "Assembly Guy", a student information system can be very large depending upon the needs and requirements. So it would be better if you could possibly ellaborate on the exact methodology you need to know.

KushMishra 38 Senior Technical Lead

Hi, you may try accessing that particular coulmn of the ListView so as to get access to that number which you are referring to.

KushMishra 38 Senior Technical Lead

Hi, a simple approach would be to create a property that would get and set the value(s) and then you can easily use that property value.

KushMishra 38 Senior Technical Lead

Hello, it would be a bit confusing if someone provides their own code for this as you may face problems again when integrating back in your application so it would be great if you could possibly post in your code here so as to get a quick reply and also understand the error reason you are facing.

KushMishra 38 Senior Technical Lead

Hi, this one could possibly help you :-
http://converter.telerik.com/

This converts your code from VB to C# and vice-versa.After code conversion you may face some issues and then you can possibly post them here so that we may help you out with the same.

KushMishra 38 Senior Technical Lead

Star pyramid is no big deal however I am unable to get the use of textbox here. Could you please ellaborate this one ? If I am getting this right then, are you willing to show the textbox text in form of a pyramid ?
5
55
555
5555

Please correct if I am wrong at this ?

KushMishra 38 Senior Technical Lead

Hi, you may try this one but some syntax you need to rectify on your own or you can post them here also.
http://converter.telerik.com/

KushMishra 38 Senior Technical Lead

Can you change the data type from image to nvarchar or something ?

KushMishra 38 Senior Technical Lead

So, Reverend what according to you may be true...is there a heaven or... ?

KushMishra 38 Senior Technical Lead

I think you can follow Ketsuekiame's approach as of now and kindly inform if that works out for you :)

KushMishra 38 Senior Technical Lead

Hi,

If I am getting your question right (please correct if I am wrong), you need to change the language of your console and so as to achieve the same, you may go through the following links :-

http://stackoverflow.com/questions/6926058/c-sharp-changing-sytem-locale
http://stackoverflow.com/questions/2927406/how-to-make-multilanguage-c-sharp-console-application
http://stackoverflow.com/questions/18814500/how-to-detect-language-changes-while-runtime-c

KushMishra 38 Senior Technical Lead

I would suggest you to use CollectionViewSource if possible as it has got in built search functionality and that may ease the issues you are facing a bit :)

KushMishra 38 Senior Technical Lead

If I am getting your problem right and as suggested by "ddanbe", I would suggest you to use CollectionViewSource if possible as it has got in built search functionality and that may ease the issues you are facing a bit :)

KushMishra 38 Senior Technical Lead

Awesome quote and much appreciated :)

KushMishra 38 Senior Technical Lead

Come on guys, don't you have anything to post...Please share some motivational thoughts so that we all can learn and earn...!!!

KushMishra 38 Senior Technical Lead

Contains 'M' from KM499

KushMishra 38 Senior Technical Lead

Slumdog Millionaire

KushMishra 38 Senior Technical Lead

Could you please ellaborate what exactly are you willing to do ?

KushMishra 38 Senior Technical Lead

Hi,

Technically there's a lot of stuff you may do and also learn side by side in WPF if you really are interested for the same.
But as you saide you need it ASAP then please find your code on the following links :-

http://wpftutorial.net/DragAndDrop.html
http://www.codeproject.com/Tips/442276/Drag-and-drop-WPF-controls
http://blogs.msdn.com/b/jaimer/archive/2007/07/12/drag-drop-in-wpf-explained-end-to-end.aspx

Hope that helps :)

KushMishra 38 Senior Technical Lead

Hi try something using foreach loops in your DataGridView and then compare using

foreach (DataGridViewRow r in myDataGridView.Rows)
{
   if (r.Cells["ColumnName"].Value.ToString() == myTextBox.Text)
   {
      // Whatever you wish to do with this condition matching.
   }
}

Hope that helps.

KushMishra 38 Senior Technical Lead

Hi,

I asked a similar question on DaniWeb. Please go through my artcle in daniweb that may give you some idea about the same (just trying to help but not sure exactly if this would help you or not) :-
http://www.daniweb.com/software-development/csharp/threads/465824/c-wpf-combobox-with-checkbox

KushMishra 38 Senior Technical Lead

Hi Mansi, like Tags in ListView, you may try FormatString for each item using foreach loop and then bind back again to your GridView.

KushMishra 38 Senior Technical Lead

Try using the following code :-

namespace Browser
{

    public abstract class iDataConnection
    {
        TcpClient tcpclient { get; set; }
        StreamReader streamReader_connect { get; set; }
        StreamWriter streamWriter_connect { get; set; }
        NetworkStream networkStream_connect { get; set; }
    }

    public class CoreServer : iDataConnection
    {
        iDataConnection dc = new CoreServer();
    }

    public partial class Browser : Form
    {}
}

Hope that helps :)

KushMishra 38 Senior Technical Lead
KushMishra 38 Senior Technical Lead

Hi,

I would suggest to please check your code first as you are getting a NullException which generally comes when you have some object set to null and you are performing some actions on the same.
Moreover, if you don't have any code written and still facing the same issue, I would suggest you to uninstall Visual Studio, clear your registry and then after rebooting your system, install Visual Studio again and if still the problem prevails, you need to update your silverlight and/or Visual Studio.
I hope that would help.

KushMishra 38 Senior Technical Lead

Hi, its a nice suggestion by _avd and I would like to add to the same that if you wish to select all the person table's records you may use Select * from Persons_Table; in your SQL IDE and moreover for further help in SQL queries you may go through Click Here