My question is sort of linked to this existing question
http://stackoverflow.com/questions/1262836/how-to-deploy-a-desktop-net-application-with-custom-settings-per-user
However, I understand the idea of using Application Settings what I can't find information on is, how should I deploy the application settings for different customers?
...
What operating system has .NET 2 version built in? I plan to deploy a .NET application and wonder whether I should include a dotnetfx in the package. Where can I find such information?
...
Hi!
I am using this functions for sharing folder:
Protected Sub CreateShare(ByVal path As String, ByVal shareName As String)
' Create a ManagementClass object
Dim managementClass As New ManagementClass("Win32_Share")
' Create ManagementBaseObjects for in and out parameters
Dim inParams As ManagementBase...
Change the cell border width and also make the cell border only all,left ,right,top,bottom or none in winform datagridview.
In datagridview the problem is to change the border style of each cell , as we could do in excel sheet.
I have tried following but it didnt work.
DataGridViewAdvancedBorderStyle mystyle = new DataGridViewAdvancedBo...
Hello folks, a question about class design. Currently I have the following structure:
abstract Base Repository Class
Default Repository implementation class (implements some abstract methods, where logic is common thru all of the Specific classes but leaves other empty)
Specific Repository implementation Class (implements what is left...
We have a type called Action in our library. We support VS2005, 2008 and now trying to support VS2010 too. When I include the namespace containing our 'Action' type and also 'System' together in a file and try to use it, it cribs saying ambiguous reference call between our Action type and System.Action delegate. This is happening only in...
Hi guys.
I'm gonna insert a Separator in a ListView in WPF , something like this :
image
I've used the following XAML code, but it dosn't work !
<ListView ItemsSource="{Binding ListViewItemsCollections}">
<ListView.View>
<GridView>
<GridViewColumn Header="Name" Width="200" DisplayMemberBinding="{Binding GridView...
Given this code
public override void Serialize(BaseContentObject obj)
{
string file = ObjectDataStoreFolder + obj.Slug + ".xml";
if(obj.GetType() == typeof(Page))
{
DataContractSerializer dcs = new DataContractSerializer(typeof (Page));
XmlDictionaryWriter myWriter =
...
In Windows Form, I would like to generate a calendar (in month view), I would choose the month, and then I would like to generate an image I could save.
I know MonthCalendar control, I know how it works but I don't know how to get the image programatically. (of course, screengrabs are useless here, ;-)).
...
I was trying to convert some C# code to Vb.net but there was a variable with an asterisk, which apparently VB.net doesn't support. (pointer variables I think they were called, were it refers or something)
How would I convert that into VB.net
...
Strings are usually enumerated by character. But, particuarly when working with Unicode and non-English languages, sometimes I need to enumerate a string by grapheme. That is, combining marks and diacritics should be kept with the base character they modify. What is the best way to do this in .Net?
Use case: Count the distinct phonetic ...
We have a ClickOnce deployed application deployed at 2 different places.
Both need some different settings in the app.config (In addition the devel environment)
Right now the process of generating these installations is for someone to manually change these settings from visual studio and rebuild. This is ofcourse a pain.
Some suggest...
Hi,
I have a Pl/Sql procedure signature that look like this
foo(param1 IN type1, param2 IN type1, c OUT REF CURSOR).
This stored procedure is being called in C#. In the C# code, I fill a DataTable with this cursor. I would like to know when the cursor will be closed.
Should I close it in the SP? In the code? Or is the object OracleRef...
I have an Excel spreadsheet that is used to collect data from a user, and is used to populate our database. I need to produce an asp.net page that can be used to collect this data instead.
I'm having some difficulty coming up with the best way to get this data, the current spreadsheet is used to allow the user to define a number of pack...
I have an xml that I am querying. One of the nodes is missing. So when I call XElement.Value I get a null exception.
What is the best way to guard against this? I know I can write an extension method, but I am wondering is there something build into the language for this?
...
What would you recommend to someone whose boss told : "your work planning of 1 month and half isn't acceptable. I need this web app (online employee evaluation system) demo done by day after tomorrow".
What steps would you take ?
I started this job on monday. I gathered requirements and constructed a product backlog on Monday. on Tuesd...
When obfuscating your source code, are there any differences between Java and .NET web applications?
or is the resulting obfuscated .dlls/.jars pretty much the same?
Can you apply better obfuscating techniques in java versus .net, or again its the same pretty much?
(not looking to debate how obfuscation won't hide intellectual propert...
In the example below, will the returned pen be destroyed(disposed) or not?
' VB'
Public Function GetPen() As System.Drawing.Pen
Using pen As New System.Drawing.Pen(_Color, _Width)
pen.DashStyle = _DashStyle
Return pen
End Using
End Function
// C#
public System.Drawing.Pen GetPen()
{
using (System.Drawing.Pen pen = new S...
Is there anything that helps provide structure for good separation of concerns in a thick client or smart client app like asp.net mvc does for web?
...
Hi everyone,
I just started a new project in dynamic data. I didn't add or remove any external libraries in the project. But for some reason my table is coming up as readonly. I tried going to the database with the same login information and add data and it works. But doesn't work in my dynamic data application.
Can any please give m...