Good Source for Learning How to Work with XML in F#
Does anyone have a good source for learning how to work with XML in F#? Multiple sources would be nice if available. ...
Does anyone have a good source for learning how to work with XML in F#? Multiple sources would be nice if available. ...
I'm trying to loop over distinct values over a dictionary list: So I have a dictionary of key value pairs . How do I get just the distinct values of string keys from the dictionary list? ...
There is the first time I'm going to do a particular control in C#. The control is a ListBox of items that will have an up arrow and a down arrow on the side. When you select an item in the ListBox, you can use the up and down arrow arrows to reposition that item in the ListBox. My two questions are: (1) Is there a prebuilt control for...
I'm trying to query an existing Paradox database that a third-party application populates. My application is now blocking the third-party app and I'm wondering if there are any "query hints" or connection string properties that will query/open the database without blocking. The database is queried using ".NET Framework Data Provider fo...
I have created MS Access Database using C# ADOX library. I have created one table with several columns. What I want to achieve is when I insert date in one column, the date format should be YYYY-MM-DD and not MM-DD-YYYY. I know its just display format, but I want to access the property which we set when we open access table in design mod...
Is there a recommended process for creating reusable ASP.NET assemblies that contain UserControls that can be shared across projects in separate solutions? We have currently have a set of post-compilation steps that run aspnet_compiler.exe on the project, generate the precompiled assemblies using a given name, followed by aspnet_merge.e...
I have the application which needs a permanent Internet connection. But sometimes we have difficulty with our provider. In this case it needs to be switched on a reserve channel. In our network we just change a gateway address. Now I want to automate this action. So, how can I change the gateway in Windows programmatically? And are there...
We have a .NET web application installed on our server at the location: C:\Inetpub\fmtool\ One of our utilities uploads a file to a subfolder of the installed directory. We create the folder structure for this uploaded file programmically to ensure the folder structures integrity. This works just fine. However during the actual file...
Is there a way to add a method to a class, but allow it still be inherited by the base class? I have the following public class ListWithRandomize<T> : List<T> { public void Randomize() { // Randomize function} } I'm going to have a bunch of List objects that will need to be randomized. Is it possible to have a List object that I...
I have a webrowser in my form that accesses a website that is too wide for the control. I would like to know if there is a way to resize the control to fit the website. It seems simple, but i have not found a way yet. I know how to resize the control, I just need to find the width of the website. Just like when you press the green button...
I'm trying to decrypt an encrypted XML file and put it into a stream then load it into a dataset. I am able to do this if I decrypt the file, and write it back as a file. Then do the Dataset.ReadXML method. However, so I don't defeat the purpose of the encryption I'd like to leave it in memory. I see that .ReadXML does accept a syste...
I am trying to use code written by someone else in my own project. Their code was shipped as a .netmodule file. It seems that I have to build my project from the command line using the /addmodule option. Is there any way to do this in the Visual Studio IDE? ...
I am writing a small utility that, among other things, will allow the user to run his/her logon script. It is a .NET application that will run on Windows XP/Vista/7 PCs that are joined to an active directory domain. The PCs belong to different organizational units and will be running different scripts. Is there an environment variable...
Anyone have a good way to output an Exception in C# to a string that handles inner exceptions and the such? I am sure every developer has her own implimentation of this, but I can't find my old one and want to see what better ones are out there. Here is one without recursion for inner exceptions as an example: var Message = String.For...
When TransactionScope first came out, I ran into some serious issues getting it to work between my dev machine (XP) and our database server (Windows Server 2003). When I looked into it more, this appeared to be a tricky and widespread issue that had a chance of becoming a headache in production, so I decided not to handle transactions t...
Hi, I'm trying to populate a treeview from a list of folder path, for example: C:\WINDOWS\addins C:\WINDOWS\AppPatch C:\WINDOWS\AppPatch\MUI C:\WINDOWS\AppPatch\MUI\040C C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\MUI C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\MUI\0409 with an ouput ...
Okay, so here's the scenario. Project A has a class library developed for it (lets call it MyLib). I release project A (in house project) with version 1 of MyLib. I begin development on Project B, but expand MyLib to version 2, including a few optimizations to existing types. If I release Mylib 2 to both Project A and Project B, I'm...
I have an updatepanel that has an Image button: <asp:ImageButton ID="btnChangeMedium" OnClick="Change_Click" runat="server" /> When the page loads, based on some logic, I set the onclick attributes in the code behind. btnChangeMedium.Attributes.Add("onclick", "ChangeMedium();"); Works greate in IE. In FF, the imagebutton causes a p...
This stackoverflow question explains in detail how to bring up/hide the virtual keyboard on getting/losing focus on a control. However in my TextBox, I want the user to type numbers, so it were nice if I could switch the virtual keyboard to numeric input directly. Do you have any proposals how to do that? ...
I need to create a application in vb.net that puts out those cool <> links, which I can prefill with our events and milestones. While I have figured out I need to use DDay.ical.dll to get the events into an ics file, I am not clear about how to get these to publish. I was thinking of using an RSS feed, but that defeats the purpose of usi...