Gseese2's Q&A profile
Windows Forms listing files whose folder is in selected directory.
private void button1_Click( object sender, EventArgs e) { string s, p; s = textBox1.Text; listBox1.Items.Clear(); listBox1.DisplayMember = "FileAttribute" ; foreach ( string p in System.IO. Directory .GetFiles(s)) listBox1.Items.Add(p); } I can have a list of the file names in adress of string s.(folder of string s) But I want to have a list of files whose folders are in string s's folder. I answered my question with this method. Thanks for all helps to me. -------------------------------------------------------------------------------------------------------------- private void button1_Click( object sender, EventArgs e) { string s = textBox1.Text ...Show All
SQL Server SQL views accessed in MS Access via ODBC (Blocking issues)
Hello, We have allowed one of our clients to create views in our .net /sql application so they can build reports using MS Access. They have been doing so successfully for years. However lately they are experiencing Timeout Expired messages when in the actual web application. I have confirmed that several of the views when opened in Access do cause blocking, the locks are promptly realeased when the the access odbc of the sql view is closed. When the views are opened in SQL query analyzer, there is no sql blocking. Would this be related to how the tables are linked Any suggestions would be greatly appreciated. Hi, Access will use the base objects until you decorate the views with the option CR ...Show All
Visual Studio 2008 (Pre-release) Security Pain (Vista basicHttpbinding)
I am struggling to get my server running with the basicHttp binding over https on Vista (it is a self hosted server). The server starts up and doesn't complain but the client exceptions when I try to start it up: "An error occurred while making the HTTP request to https://192.168.1.64:8081/Server/G2SServer . This could be due to the fact that the server certificate is not configured properly with HTTP.SYS in the HTTPS case. This could also be caused by a mismatch of the security binding between the client and the server." My first question is whether configuring http.sys is required for an application running with the basicHttp binding (this help page implies it is only necessary for WSHttpBinding ms-help://MS.MSSDK.1033/MS.NE ...Show All
SQL Server Archiving and Pruning growing transaction tables
Hi, I am using SQL Server 2005. I would like to know best approaches for archiving and pruning couple of growing transaction tables in a database. Possible approaches which I could think of 1) Take a backup of the database and delete records from tables based on date. (Issues - Deletion from existing tables takes a long time and the Indexes are disturbed requiring reindexing.) 2) Partition the table based on Date and possibly backup only the older partitions and remove them. (not sure if this can be done seemlessly). Please let me know your thoughts. Thanks, Loonysan I would suggest you look into partitioning, as you can drop a complete partition instead of doing a lot of deletes. I worke ...Show All
Visual Studio Express Editions Datagridview looses column ordering information
I’m using datagridview, and builds up the columns in Visual c# wizard. I then re-arrange the columns so that I get each column where it should be (still in design mode). When I click Run from VS, it shows perfectly as it should be. However... When I click Build, the column order is completely destroyed each time I do that, already in the designer. It’s pretty hopeless ;) It happens at the same time I push Build. I have also tried to lock the gridview, but it doesn’t help at all. Build destroyes colum ordering each time. How can I solve this I would absolutely love to know how to solve this problem, i've been dealing with it for over 6 months now... What i end up doing is writing a method that rebuild ...Show All
Visual C# Memory Usage
Why is it when you click on a forum with just one button that does nothing, the memory usage keeps adding up. Any program in c# so far I seen keeps adding o the memory usage. Ctrl alt del to see the mem usage of any program. I am making a game and if it keeps increasing like that it will eventually make the computer not be able to handle that much usage. Any ideas I dont think it is memory leaks in my programming because it does the same on a basic applacation with a single button on the form. There is an article about memory usage here: http://msdn.microsoft.com/msdnmag/issues/06/11/CLRInsideOut/default.aspx ...Show All
Visual C# How to design these classes?
Hello all I currently have quite a large project that contains several classes that relate to various objects in a database. For example, the Orders class contains methods that have anything to do with orders. At the moment I think I've designed it in a very simple way, for example: public class Orders { public Orders() { } public int CreateOrder(int storeId) { // Code to create an order and return the ID. } public OleDbDataReader GetOrder(int orderId) { // Code to return the order record. } } Basically, to use any of the methods, I first create an instance of the Orders class, but this doesn't seem like a very good way of doing things. Would it be better to have static methods for things like CreateOrder() and non- ...Show All
SQL Server Difficult times deploying a few packages to SQL Server and running as a job
Hi Guys! I have created a big list of packages, some calling others. They all work fine from my computer using Visual Studio. When I try to deploy them (building them with deployment turned on and running them either directly from Management Studio or as a job) I get the errors with the password of connection strings. From what I read so far its the encryption process that kills it. I have tried to add a password to some packages, but it still didnt work (only when run directly on my computer in management studio after deploying to SQL Server, but not as a job). I have tried to change ProtectionLevel to SecurityStorage, wouldnt let me save in Visual Studio (I understand it is ot allowed in VS because you are saving to File Syst ...Show All
Software Development for Windows Vista Vihang's Re-hosting Workflow Designer example errors
Vihang, I am receiving the following message when using your Re-hosting example code: Property value is not valid. The Service 'System.Workflow.ComponentModel.Design.IExtendedUIService' musy be installed for this operation to succeed. Ensure that this service is available. Have you seen this before Is there a reason I cannot view the Invoked handler in the properties windows I look forward to hearing from you soon. Thanks in advance, John P. Jon, I am still getting the same errors. This template causes error when running my code. I commented out certain things in this template so that I can run the code, but I get the same errors when trying to access properties via the UI designer. Let me know if y ...Show All
Visual Studio 2008 (Pre-release) What's the property control should I use to present text paragraph?
I use the control to present textblock maybe like this: "Hi, {FriendName}, Glad to receive your letter! Yours leo." Three key points: The format should remain in this way; {FriendName} is databinding; The content need not to be edited. What's the control in WPF should I use Thanks. How about TextBlock <TextBlock> Hi, <TextBlock Text="{Binding FriendName}" />, <LineBreak /> <LineBreak /> Glad to receive your letter! <LineBreak /> <LineBreak /> Yours leo. </TextBlock> If you can't edit the text, consider creating a converter to create this structure. ...Show All
Windows Forms in a form i have six text boxes for auto fill
in a windows application i need to autofill six textboxes by parsing a resume can any one help me in a form i have six text boxes and a button when ever i press the button it should parse a word document and extract name mobileno email http age experence all these details should be filled in the text boxes ...Show All
Visual Studio Tools for Office Integrating Active Directory & Excel
Is there any way to integrate active directory with excel workbooks I want certain areas in my excel workbook restricted or totally unavailable based on a users' windows authenticated login. Would've been awesome if Excel had something analogous to website admisnitration in ASP.NET websites. There's nothing special in vSTo to support this. You might try asking in the excel.programming newsgroup . There may he some way using IRM (Information Rights Management). ...Show All
Visual Studio Tools for Office Visual Basic For Excel - Search in Word
Would anyone be so kind as to maybe give me some advice on how to use a find and replace or find and change command from within Excel in a word document. The problem is this, My brother would like to from within excel open a word document and within the word document find and replace a particular string using VB for Apps. Thank you. Hi Pieter In this case, you need to ask in a Word newsgroup for the details http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.word.vba.general&lang=en&cr=US the first steps you'll find in articles at word.mvps.org. Search for the article that describes how to work with Word from within Excel, as well as for the articles that discuss how to use Find in Word. Go to the ...Show All
Microsoft ISV Community Center Forums DirectShow / C++ talent in DFW
I signed up... never heard back. I do widows forms in C# in Dallas. .V SiSTeR Technologies is seeking a Visual C++ Guru with a strong background in Microsoft DirectShow Editing Services to take our media generation platform to the next level. Successful candidate will be familiar with the inner-workings of Windows Media and most of the Microsoft APIs and toolsets related therein. See examples of our AUTOMATED VIDEO RENDERING system at: http://www.videocarlot.tv/vcl/demos/vcl.html Required skill set (in order of relevance): Microsoft DirectShow Editing Services Microsoft Windows Media Encoder Microsoft Windows Media SDK Microsoft Visual C++ preferred (however Visual B ...Show All
Windows Search Technologies C:\ explorer opened when click 'search' button in deskbar
Hi, I am using WDS 3.0 RTW, when i want to search something, i will click the 'search' button in deskbar. Normally a explorer with title 'Windows Desktop Search Results' will popup for searching, but sometimes a explorer with title 'C:\' appeared instead (where c:\ is my WinXP installation drive). I don't know when will popup a correct / wrong window for searching, but for my memories it seldom happen. Please provide help if you can. Thanks~ Andriy G. Seneschal wrote: I have the same exact problem, gonna try uninstalling and reinstalling. I think it only happens on the first search after I run the program, but it is annoying anyway. Reinstalling didn't work. It sucks because I have 250 ...Show All
