|
We have an ASP.NET forum.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi
I need to remember the position of the toolbar if the user has changed it.
Also every time I open the browser the tool bar should be showed in a new line.
for that I added the code
dbi.dwModeFlags = DBIMF.BREAK | DBIMF.ALWAYSGRIPPER;
In order to remember the position of the tool bar what shoudl I do. I tried this
dbi.dwModeFlags = DBIMF.NORMAL | DBIMF.VARIABLEHEIGHT | DBIMF.ALWAYSGRIPPER;
It is coming up fine in IE6 but it is not working in IE7. Also it is not coming in the new line.
Please help me in this regard
Thanks
jp
|
|
|
|
|
Hey everybody!
I was just wondering if anybody knows an easy and quick way of importing multiple files into a listview control? I know how to import just a single file. But, I'm not quite sure how to import multiple ones, and I couldn't find anything on google or msdn, it seems as though when i actually need help, google is NOT my friend lol.
regards,
j.t.
j.t.
|
|
|
|
|
jay_t55 wrote: importing multiple files into a listview
A ListView doesn't have a collection of files, it has a ListView.ListViewItemCollection to which you can add ListViewItem instances. Each of those instances also has a ListViewItem.ListViewSubItemCollection . To add multiple items to your ListView at once, use the AddRange method and pass either an array of ListViewItem s or a ListView.ListViewItemCollection . The same theory applies to each item's sub items.
How you create the above from a given file and it's attributes is up to you. Personally I would create a ToListViewItems method that takes a collection of files as a parameter.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
Here is how it can be done using LINQ:
DirectoryInfo dir = new DirectoryInfo(@"c:\temp");
FileInfo[] files = dir.GetFiles();
var fileList = from file in files
select new ListViewItem(file.FullName) { Tag = file };
listView1.Items.AddRange(fileList.ToArray());
Regards,
Lev
|
|
|
|
|
Of the current executable file you are running from??
Thanks
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
Can you bit detail?
Cheers!!
Brij
|
|
|
|
|
it's vb I know
Dim Ass As System.Reflection.Assembly = System.Reflection.Assembly.GetExecutingAssembly()
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Thanks, and I thought I can help you with C# yesterday
System.Reflection.Assembly ass = System.Reflection.Assembly.GetExecutingAssembly();
MessageBox.Show(ass.ManifestModule.Name);
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
I have a database having names in urdu(datatype of column is nvarchar). Now i want to convert them to english. Could anyone help???
Do good and have good.
|
|
|
|
|
Conversion, No.
You need to add a field to the table [EnglishName] and enter the name manually. I don't think there is a program to translate names to english.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I have a form which I am using as a progressbar and in the worker thread I am doing some long running background processing. As soon as I am done with the processing I invoke a function in the main thread so that the progressbar is closed.
The behaviour of this progressbar is modal, but at the time of its closing, I am able to click some links in the main form. Though it does not throw any error or cause any unexpected behaviour, I get to see the progressbar form's title bar, which should not be there. At design time I have hidden this title bar.
I want to remove this title bar so that it will not be visible in any case. or you can suggest some other solution as well. Please help.
|
|
|
|
|
I think I have configured log4net SMTP appender correctly
<appender name="SmtpAppender" type="log4net.Appender.SmtpAppender">
<to value="myAddress@gmail.com" />
<from value="myAddress@gmail.com" />
<subject value="test logging message" />
<smtpHost value="127.0.0.1" />
<bufferSize value="0" />
<lossy value="true" />
<evaluator type="log4net.Core.LevelEvaluator">
<threshold value="INFO"/>
</evaluator>
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%newline%date [%thread] %-5level %logger [%property{NDC}] - %message%newline%newline%newline" />
</layout>
</appender>
I know I've configured log4net appender correctly because after logging code executed successfully, I was able to found notification/logging email under H:\Inetpub\mailroot\Queue
The problem is, I don't know IIS SMTP admin well enuf these email always sit under Queue directory and never get sent out to my gmail account "myAddress@gmail.com"
Thanks!
dev
|
|
|
|
|
Hi,
I have a program running in windows .net that looks for active directory information. Is there a way I can use the object Active Directory in VS 2008 for web application?
In windows you have the object from the toolbox under components but if you create program for web it's not there. any Idea on how to use it for web purposes?
Thanks
Dabsukol
|
|
|
|
|
There is no equivilent control in the Web Forms ToolBox. You just have to write the code manually using the classes in the System.DirectoryServices namespace.
|
|
|
|
|
I am a fairly good VB.NET programmer.(Please don't laugh) I have been programming in VB.NET for 2 years. I took C++ classes in college and love C syntax in general but never got into developing real applications so I am missing much of the important information I am sure. I have been scanning the job sites for a while and find that there are many less opportunities for VB programmers while there are many jobs for C# programmers. Can someone point me toward a good tutorial in C# and it would be nice if it was one that was for someone coming from VB to C# and at the same time understand that I do know VB and not teach me obvious concepts.
Thank you for your time.
Humble Programmer
|
|
|
|
|
Try www.asp.net both all examples are thought in c# and VB codes.
go to learn.
Dabsukol
|
|
|
|
|
This site is full of C# tutorials and articles you can work through.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
There are a lot of tutorials (actually MSDN documentation has a lot of them), just google for them.
But I would recommend to read Jeffrey Richter's "CLR via C#" book, it will not only give you the basics of C#, rather it will show you the guts of .Net. This is IMO one of the best .Net books around.
Andrew Troelsen's "Pro C# 2008 and the .NET 3.5 Platform" is also very good, but read Richter first
Regards,
Lev
|
|
|
|
|
I found this link usefull clickety[^]
I also get a C# - VB conversion pocket reference from OReilly which was also usefull.
You have the advantage of some grounding in C++.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hello,
I am implementing search functionalities in C# windows form application. I want that the TextBox which accept the search text should persist the text when entered, and, whenever user types in next time, it should display the similar text as dropdown list.
It is very similar to what Google's search text box or Rediffmail's userID text box supports.
How we can implement it?
Thanks in Advance.
|
|
|
|
|
I thought the textbox in winforms had this by default, you just need to specify an autocomplete data source ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Indeed
AutocompleteSource
Autocompletemode
Are the property's
|
|
|
|
|
Ok. i've never done this before but after readn your question I decided to give it a go. All you need to do is add a textbox control to your form in designer view, click on it, then in the proprties pane, scroll all the way down the bottom til you see "Misc" and beneith that you'll see three options. play around with those it's real easy. Works for me.
j.t.
j.t.
|
|
|
|
|
Thanks all,
Still i am not able to save my custom inputs of the text fields which can be populated next time. I can see the url's from history as suggestion but not my custom entries.
I have set AutoCompleteMode = "Suggest" and AutoCompleteSource = "CustomSource".
Do i need to fill the source programmatically on each entry OR how to do it?
Thanks.
|
|
|
|