C# - How Does .NET Framework Determine Zones
Nov 14, 2011
I got the following error but am perplexed why .NET thinks this DLL is located in the internet zone when clearly it is on the Intranet.
Here is the error NUNIT is throwing:
Unhandled Exception: System.TypeInitializationException:
The type initializer for 'NUnit.ConsoleRunner.Runner' threw an exception. ---> System.Security.SecurityException: That assembly does not allow partially trusted callers.
[Code].....
View 1 Replies
ADVERTISEMENT
Feb 23, 2010
How can I programmatically determine if .net 2 or any other .net framework is on a computer?
View 4 Replies
Oct 9, 2010
Does anyone know of a way to programmatically determine which version of the .NET framework is installed on a computer? I was thinking of trying to scan the registry, but my main worry is that a user would need admin rights if trying to use the method
View 8 Replies
Jul 9, 2009
How do I know wich is the current folder of an App?? I mean... Is there a way to know where is the exe located from the running code?
View 5 Replies
Feb 3, 2009
I have developed a small application in VB.NET 2008. It uses .net framework 3.5. But somehow it also runs in computers with .net framework 2 or 2.5. Is there a way to determine thru code what is the latest version of .net framework the pc is running. This way I can give a warning message box that the required framework is not installed.
View 7 Replies
May 5, 2011
I want to filter the SQL Compact Database to get rows that as been synchronized to the SQL SEVER Using sync framework can any one give me an hint on how to get this done. I will prefer a sample code in VB.NET
View 1 Replies
Nov 19, 2011
How is it posible to align each "Column", so that, no matter the size of each value, the columns line up perfectly under each other. I'm using a listbox for the output, I thought I had an understanding of this but apparently I don't. I am using a fixed width font and the screenshot shows my results. I have done this before but not in awhile.how to set up the zones. I know the minus sign in front will left justify the column results but I'm having trouble with the other columns.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim fmtTicketInfo As String = "{0,3} {1,-20:} {2,20:c2} {3,20:c2}"
lstTicketBox.Items.Clear()[code]....
View 3 Replies
Oct 6, 2009
Ex) Dim fmtstr as string="{0,15}{1,10}{2,8}" if I understand correctly the leftmost number is the zone number and the number to the right is the character width?
View 5 Replies
Oct 8, 2009
Is there a rule of thumb used to set the character width of a zone?
For example:
Dim fmtstr As String = "{0,-10}{1,12}{2,14}{3,12}"
lstcolleges.Items.Clear()
lstcolleges.Items.Add(String.Format(fmtstr, "College", "enrollment", "endowment", "public ss"))
This will align the text nicely into a list box. How do I determine how to set the character width?
View 3 Replies
Apr 29, 2012
I am trying to convert CST to 3 different times zones 9.5 ---Afgan and 5----UTC. I Have got this to work 3 ways now But i need it in "HHmm" format with no : currently going from value to text to string is the only way i can get the look i want. I need to either Add +5 to the write string (assuming that will still stay in 24 format if that's done) or i need a solid way to convert to HHmm without the coloHeres what i got,
oonwH = Convert.ToDateTime(oonwHr.Value)
oonwM = Convert.ToDateTime(oonwmin.Value)
I KNOW these lines are useless just haven't taken them out yet
[code]....
View 4 Replies
Dec 5, 2009
I tried and tried to understand it. but i need a simple explaination....
View 1 Replies
Dec 3, 2011
I've got this assignment for my class and I need to assign a grade to each each student using a select/case statement and for some reason visual studio is making me put in extra code that doesn't make sense to me and the case statement doesn't even return a value for what i need. Here is the case snippet...
[Code]...
View 13 Replies
Jan 30, 2012
I want to create an object like the shape which is shown in the below picture. This picture is divided into different zones. I want to know how can I handle different events by clicking on different zones. For instance when the user click on zone 1 something is activated and when the user click on zone 2 another event is called.
View 5 Replies
May 21, 2010
I am work on VB.net 2003 Framework 1.1 for last 3.5 years in windows Application.We are currently migrating to VB.net 2008 framework 3.5, but i don't know about the features which related to ADO.net and which is important to performance. I know linq to SQL but our architecture is made in .net 2003 so we should follow this.Any features which is very important to enhance the performance?
View 2 Replies
Feb 2, 2011
I have a solution that I wish to upgrade from Vb.net framework 1.1 to framework 4.0. The solution consists of a number of projects, all but one of which compile to dll's. The master project compiles to a executable which provides a menuing system which dynamically loads the dll's and connects to entry points.
The projects contain normal classes, numbers of forms and also controls, which are either usercontrols or are inherited extensions of standard windows controls.There are a number of third party components (eg reporting and grid controls from Component One, Ribbon control from DevExpress etc).
[Code]...
View 4 Replies
Feb 20, 2011
I have trying to complete an assignment where I have to convert a string from user input to all different US time zones and then display them. At first I tried doing this just by using math but it seemed extremely inefficient and messy so I was told to use the DateTime function which seems easier with the exception of one thing - I have found absolutely no examples of converting time to different time zones. I was able to take the string and convert it to UTC time thinking it would make it easier but now I don't know how to convert them to PST, EST, MST, or CST. I included the function below:
Private Sub timeDifference()
Dim meridiem As String
Dim ante As String = " AM"[code].....
View 2 Replies
Apr 7, 2009
How come software created in an older framework version won't run on a newer framework version? Actually whenever i try to run some old specific software having .net 3.5 framework on my PC they show they needs .net framwork 1.1 . What a bad thing?My newer version of Photoshop ans Ms office open all lower version files.
View 6 Replies
Nov 24, 2011
I work for a small company and we are planning to build our own framework using .net . For example if a dropdown is placed in the form and set the custom property to Users, then the users list from db from has to populate. The developer will drag and drop the custom control and set the connection string in config file. Other things are to be managed by the framework.
View 4 Replies
May 13, 2010
c# - Are Microsoft Entity Framework and ADO.NET Entity Framework (.edmx) the same?
View 7 Replies
Sep 17, 2009
I need to change where I save my program and support applications based on which Operating System is running.davidbell
View 1 Replies
Jul 19, 2010
i havea dropdwonlsit (loads on the page_load event) and a unbound CheckBoxList is based on the selection from DropDownlist, the checkboxList is display CheckBox (might be one or two or three or any numbers)..... i just want to know after the page is loaded on the browser and user click on the checkbox's, i need a way to know what checkboxs users have selected... what is the best way of doing that? so far i have come up with this...
<asp:CheckBoxList AutoPostBack="true" ID="chkbox" runat="server" RepeatColumns="2" RepeatDirection="Horizontal" RepeatLayout="Table">
</asp:CheckBoxList>
[code]....
View 1 Replies
Aug 25, 2011
I have a need to figure out which adapter is used when a connection is created. In other words, if I have multiple NIC cards (i.e. wireless, lan, etc) on my machine, which card is being used for the connection?
If anyone can point me in the right direction...
View 3 Replies
Mar 2, 2012
I wonder if there is any value I can check on win32_process to see if it is a x86 or x64 process?
[URL]
View 1 Replies
Jul 17, 2009
I want to determine whether datagridview add new row or not.
I use rowadded event but when i load my form , That event raise many t�mes = number rows.
View 14 Replies
Mar 22, 2012
How do you retrive a given device IRQ in VB.Net? I can find no examples of this anywhere.
View 4 Replies
Aug 15, 2009
I'm intend to use Aero glass in my program. It require use Black background to use this. If user is using Basic style, it will be very bad :( (although there's no error). How can I know if user is using Aero?What is big but light?
View 6 Replies
May 17, 2007
I can use MDI to detect if x86 or x64, but it's painfully slow. How can I quickly, using VB.NET 2005, determine if the Windows OS is x86 or x64?
View 10 Replies
Jun 7, 2009
Trying to write a DLL logger that is independant of the executing application. How can I determine the DLL path?
View 1 Replies
Jul 13, 2010
I want to get the name of months base on the datediff result. What i've done is that i determine first the number of months in datediff function
Datediff(Months, "13/07/2010", "13/03/2011")
The result of that is 8. Since 8 is the result i want to convert that into months witch supposed to be:
[Code]...
View 3 Replies
Nov 11, 2011
Does anyone know of a way to detect recent activity in a VB.net windows forms application?
We have a retail store where users share floor computers, the application will be on each machine and require a log in before use. I am trying to find a way to automatically close the application if it has been idle for lets say 10 minutes.
I guess I could do something similar with the current windows log on session - set a gp that logs the user out after 10 minutes of inactivity - but if there is an easy, non memory intensive way to do it in vb.net i would rather use that method
View 4 Replies