|
|
setting Format to Custom has worked for me in the past. In fact, I just checked on VS 2k5. If you feel you must then you can set CustomFormat to MM/d/yyyy h:m . Either way, it shouldn't throw any exceptions.
If you're doing this, check the events for the instance of the control to ascertain just where your problem is occurring.
-JC
|
|
|
|
|
THANKS
Have Fun
Never forget it
|
|
|
|
|
Hey all,
The query goes like this...
While browsing the internet on the web browser component,any pop-ups are by default opened on the IE.Is there any way to supress this kind of event and let my own browser open the pop-up?
Thanks in advance....
|
|
|
|
|
Aditya Baraya wrote: Is there any way to supress this kind of event and let my own browser open the pop-up?
It's not your own browser. If it was your code would be parsing the HTML and script and executing the script so yes you could do it. Since it's not "your own browser" then the answer is in the documentation for the browser you are using.
led mike
|
|
|
|
|
There must be some way to do this....
Are you really sure theres no other way to accomplish such a task????
|
|
|
|
|
WOW. Ok that was to a reply from the guy below and he deleted it so it wound up going to you, maybe, if you got it. Anyway.
Aditya Baraya wrote: Are you really sure theres no other way to accomplish such a task????
Not sure what you mean. If there is a way you will have to find it by reading the documentation for the browser control and all it's interfaces, that's all I said in my post.
led mike
|
|
|
|
|
Alrite,but I sadly havent been able to figure out where such a property is exposed....
So if you could tell me about it,I ll be really glad n grateful....
Thanks in Advance.....
|
|
|
|
|
Aditya Baraya wrote: Alrite,but I sadly havent been able to figure out where such a property is exposed
Did you check the article on MSDN about using the popup blocker interfaces?
led mike
|
|
|
|
|
I have declared a Hashtable.
The "Value" field of the hashtable refers to an ArrayList.
The Array List contains a list of objects.
Now how can I refer to a particular object in the arraylist referring to its respective "key" from the hashtable?
To make it clear I'm embedding the code here.
<br />
ArrayList errorlist = new ArrayList();<br />
Hashtable errorstable = new Hashtable();<br />
<br />
error = new Errorcodes(tokens[3].ToString(), tokens[4].ToString());<br />
errorlist.Add(error);<br />
errorstable.Add(tokens[2].ToString(), errorlist);<br />
<br />
<br />
foreach (DictionaryEntry de in errorstable)<br />
{<br />
if (de.Key.ToString() == fetchcodes[4].ToString())<br />
{<br />
string evalue =
SW.WriteLine("\t\t\t" + "public const int ");<br />
break;<br />
}<br />
}<br />
</objectvalue>
|
|
|
|
|
Ravi Mahavrathayajula wrote: Now how can I refer to a particular object in the arraylist referring to its respective "key" from the hashtable?
Have you looked at the documentation for the Hashtable class? If you can't figure it out by reading the documentation then buy a beginners book or take a course at a university.
led mike
|
|
|
|
|
Ravi Mahavrathayajula,
What are you trying to do?, eg: whats the problem your trying to solve. Just because its looks a bit complicated for something as simple as storing a list of "Errorcodes".
Regards,
Gareth.
|
|
|
|
|
Thanks for looking into the problem Gareth.
ErrorCodes is a class as shown below.
<br />
class Errorcodes<br />
{<br />
public string Errorvalue;<br />
public string Errorcomments;<br />
<br />
public Errorcodes(string Errorvalue, string Errorcomments)<br />
{<br />
this.Errorvalue = Errorvalue;<br />
this.Errorcomments = Errorcomments;<br />
}<br />
}<br />
Now I actually need to read 3 fields into a loop, but as hashtables cannot process more than 2, I've read one as key and stored the other 2 fields as objects of the class error codes in a hashtable. Now as I retrieve a "Key" from the hashtable, its respective "Value" field must also be retrieved. But since the Value field in this case is actually an object of ArrayList, I was confused how could I retrieve a particular object that I needed.
|
|
|
|
|
Ravi Mahavrathayajula wrote: I was confused how could I retrieve a particular object that I needed.
You have to cast it from object to ArrayList. NOTE: If you are using .NET 2.0 or higher you should use Generic Containers to avoid the casting.
led mike
|
|
|
|
|
Ravi Mahavrathayajula wrote: but as hashtables cannot process more than 2, I've read one as key and stored the other 2 fields as objects of the class error codes in a hashtable.
Sounds like you should use Collection or List<>. What happen if the key duplicates?
|
|
|
|
|
The "key" is unique and doesn't duplicate in this case. Please correct me know if I misunderstood your question.
|
|
|
|
|
hello
Can i insert a c# code for getting the current date in my code snippet.
best regards
dghdfghdfghdfghdgh
|
|
|
|
|
|
hello
I want to create a code snippet that generate to me the following
//Elie begin : date 12/12/2008 : Fixing ......
//Elie end
i can't generate the date automatically. Plz any help
best regards
dghdfghdfghdfghdgh
|
|
|
|
|
ellllllllie wrote: I want to create a code snippet that generate to me the following
//Elie begin : date 12/12/2008 : Fixing ......
//Elie end
Do not. Since you are using source control (of course you are, right?) this kind of comment is not needed. What is 100000000x more useful in case of nontrivial fixes is detail explanation what you fixed and how, or perhaps bug ID to your bug tracking system if you are using any (and detailed info is there).
[ My Blog] "Visual studio desperately needs some performance improvements. It is sometimes almost as slow as eclipse." - Rüdiger Klaehn "Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
|
I would probably use a macro instead. Put it on a hotkey for convenience.
I wrote one to put a review comment for when I go through files and do a
preliminary review.
Sub ChangeLastReviewDate()
DTE.ExecuteCommand("Edit.Find")
DTE.Find.FindWhat = "Last Review:"
DTE.Find.Target = vsFindTarget.vsFindTargetCurrentDocument
DTE.Find.MatchCase = False
DTE.Find.MatchWholeWord = False
DTE.Find.Backwards = False
DTE.Find.MatchInHiddenText = True
DTE.Find.PatternSyntax = vsFindPatternSyntax.vsFindPatternSyntaxLiteral
DTE.Find.Action = vsFindAction.vsFindActionReplace
DTE.Find.Execute()
DTE.Windows.Item(Constants.vsWindowKindFindReplace).Close()
DTE.ActiveDocument.Selection.EndOfLine(True)
DTE.ActiveDocument.Selection.Text = "Last Review:" & Now() & " [Done by: SRP]"
End Sub
"Run for your life from any man who tells you that money is evil. That sentence is the leper's bell of an approaching looter." --Ayn Rand
|
|
|
|
|
Hi,
My situation is that i have one checkBox and datagrid. I want to do that: if i check checkBox
the datagrid shows only rows with value 0 in spacific colum.
Can enyone tell me how to do this?
thanks M
|
|
|
|
|
Metik wrote: Can enyone tell me how to do this?
I guess you'll have to add a handler for the check-box event of your interest and write the code to redraw your datagrid to display the columns of your interest there.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
1.Create an IceCreamConeException class whose constructor receives a string that consists of an ice cream flavor and number of scoops.
2. Create an IceCreamCone class with two fields:
• IceCreamFlavor
• Scoops
3. The IceCreamCone constructor calls two data-entry methods:
• GetFlavor(), which throws an IceCreamConeException if the flavor isn’t one of the following: vanilla, chocolate, strawberry, peach, or banana.
• GetScoops(), which throws an IceCreamConeException when the scoop quantity exceeds 3.
4. Create a program that establishes several IceCreamCone objects and handles any throw IceCreamConeExceptions.
5. Save your program.
6. Now “build” your program
Can sumone plz help me with this..its urgent....
hey
|
|
|
|