RDLC Making Call To Obsolete SecurityAction Enumeration

Nov 23, 2011

I'm using Microsoft.Reporting.Webforms version 10 in order to parse an RDLC file and produce a PDF. The RDLC is a simple invoice with a couple of embedded expressions. When I run the application I get an exception that a call to the obsoleted SecurityAction.RequestMinimum has been made when compiling the expressions. Is this a known bug or something I can remedy?

[Code]...

View 2 Replies


ADVERTISEMENT

IDE :: IntelliSense Doesn't Display Certain Enumeration Values In A .NET Project If Enumeration Is Declared Within A C# Assembly

May 28, 2010

I have just received an interesting feedback from a VB.NET customer using our product - for some reason intellisense hidden a certain enumeration value.After a small testing I have found that this is likely a bug in IntelliSense: [URL]..To be honest, I did not expect this problem with such a basic stuff like this. Have you seen this in the past? For me, it doesn't work in all VS versions...

Anyway, feel free to track this issue if you are coding in VB.NET.

View 1 Replies

Making A Call Using Skype Api

Jun 20, 2009

how do i include the skype libraries in my vb.net app?how do i make a call on skype through vb,net?

View 2 Replies

C# - Making AJAX Call Back In ASP.NET With JQuery?

Oct 7, 2010

I accept both C# and VB.NET If you visit this [URL].. and then click on the link like the image below you'll see in-line pop-up DIV which displays a busy status of Ajax callback before it displays the information. So, the information is not there yet until you click on the link.

I'd like to do the same but ASP.NET and jQuery. If there's any place to help me get started on the right track?

View 2 Replies

Devexpress - Making A Call From One Usercontrol To Another Form

Aug 28, 2010

I have a tabcontrol that creates tab pages from a "User Control" I created (a separate form in vb.net) using this code: (MainTab is the separate user control I created which has text boxes etc in it)

Dim tmpTab As New MainTab
myTabControl.TabPages.Add()
Dim tmpTabCount As Integer = myTabControl.TabPages.Count
myTabControl.TabPages.Item(tmpTabCount - 1).Controls.Add(tmpTab)
myTabControl.TabPages.Item(tmpTabCount - 1).Text = "Untitled"

I'm using the devexpress xtratab control so the code might look a bit different than the default vb.net tab control.

Now in my MainTab user control file file, I can't for the life of me figure out how to call a control in the form1 where the xtra tab control is placed on. "Me.Parent.Dispose" works for closing the tab when executed via the MainTab control, but that's as far as I can get for communicating with the parent from.

I'm not sure if I have to reference something in the MainTab user control or what in order to communicate with any objects on the default form1.

View 1 Replies

Encryption And An Obsolete Warning

Oct 26, 2011

I wanted to know how to encrypt data.And I've found a solution at this web site.This script works if I use it as a function.Nonetheless, Visual Studio throws a warning that says the following.[code]Visual Studio underlines the second line after the equal symbol above.I have no idea what that means.Does anybody have any idea how I can resolve this warning?

View 6 Replies

Suppressing Obsolete Warnings In .Net?

May 13, 2009

I have VB.Net code in VS 2008 using an obsolete method, and would like to suppress the warning.Unfortunately, following the recommendation is not a good solution, because it requires using a different class, which works differently, in important ways.I'm trying to suppress the warning using System.Diagnostics.CodeAnalysis.SuppressMessage, but I don't know what to write as the parameters for the attribute, and can't find any relevant reference.

I should also say that, right-clicking on the error in the error list I don't have any 'Suppress Message' option.

View 2 Replies

VS 2010 Obsolete Property

Sep 27, 2009

I got this warning:

Quote: Warning1'Public Property Address() As Long' is obsolete: 'This property has been deprecated. It is address family dependent. Please use IPAddress.Equals method to perform comparisons. http://go.microsoft.com/fwlink/?linkid=14202'E:\_Visual Studio_2008VBPingerclassPingerpingerbib.vb16738pingerbib

with this

Dim ipaddress As IPAddress
Dim ip As Integer = CInt(Net.IPAddress.Parse(IP_adresse).Address

View 5 Replies

VS 2010 XmlDataDocument Obsolete?

May 18, 2011

I just found out that the XmlDataDocument will be obsolete.I have the code below wich retrieves connection data from a very simple xml file:

Public Sub ReadXML()
Dim xmldoc As New XmlDataDocument()
Dim xmlnode As XmlNodeList
Dim i As Integer
'Dim str As String

[Code]...

View 3 Replies

Asp.net - Replacing The Obsolete System.Xml.XmlDataDocument?

Sep 20, 2010

I have a System.Web.UI.WebControls.Xml control (Xml1) in a webforms app that I have upgraded from .NET 2.0 to .NET 4.0

I am getting two warnings from the code-behind page that I'd like to do something about.

...
Dim ds As DataSet = app.GetObjects
Dim xmlDoc As New System.Xml.XmlDataDocument(ds)
Xml1.Document = xmlDoc

[Code].....

View 2 Replies

C# :: Possible To Mark .net Function With Obsolete Attribute?

Aug 8, 2011

I have created a few WebRequest extension methods that support cancelling. Is it possible to mark related .net framework methods as Obsolete. That will allow other developers to get warning and encourage them to use a new extension methods.

View 3 Replies

Find A Multithreading Example That Won't Show Up As Obsolete?

Aug 5, 2009

I have VB 2008 and am trying to find a multithreading example that won't show up as obsolete. (seems like most examples are releavant for vb 2005) I found an example on the back ground worker. Is this true multi threading?I am working on a project that needs to go out and get data often but still allow the user to interact with the menus and graphics.

I'd like to put the data grabbing on a timer on a seperate thread. how to make a timer and related data grabbing a seperate thread so I don't have "starts/stops" in the gui?

View 7 Replies

Fix RegisterClientScriptBlock Is Obsolete Warning In Visual Studio?

Jan 29, 2011

I have the following Sub Routine in my vb.net project which runs fine, but I constantly get build warnings:

'Public Overridable Sub RegisterClientScriptBlock(key As String, script
As String)' is obsolete: 'The recommended alternative is
ClientScript.RegisterClientScriptBlock(Type type, string key, string

[code].....

View 2 Replies

GetHostByAddress Obsolete ... But Replacement Doesn't Always Work?

Feb 25, 2012

When using: vb System.Net.Dns.GetHostByAddress it states that it is obsolete, and to use GetHostEntry instead. But for some IP's this errors whereas GetHostByAddress does not... for example:

[Code]...

View 3 Replies

List Obsolete Classes / Methods In Msbuild

Jun 28, 2010

I have upgraded a visual basic 2005 project to visual basic 2010 (.net framework 4.0). I want to list all obsolete functions used in this project in order to change it with newer ones. How can I treat obsolete functions warnings as errors in visual basic 2010 ms-build?

View 1 Replies

Mark Native Methods As Deprecated / Obsolete?

Aug 22, 2011

In .NET you can mark certain methods as obsolete so that developers are alerted when they attempt to use the deprecated method.

<Obsolete("Do not call this method.")> Private Sub FormerMethod()

The thing is you can only do this within classes you control. What do you do when you want your developers to avoid using certain methods on classes provided natively in .NET or by a vendor?

For example, what if you want your developer to prefer some custom extension method on DataTable rather than Select. I'd hate to have to define a custom version of the DataTable class if only to deprecate Select. That would leave us having to police whether or not the custom table was being used.

View 1 Replies

Suppress Obsolete Warning On Factory Method In .net

Apr 30, 2009

Is it possible to prevent compiler warning caused by a static factory method returning an instance of an obsolete class? For example if an instance of an obsolete class (Foo) is created through a static method (Create) a compiler warning is caused by the factory method.

<Obsolete()> _
Public Class Foo
Public Shared Function Create() As Foo

[code]....

In C# the warning could be suppressed using "#pragma warning..." but I don't think that this exists within VB.Net. Migrating to C# is not an option due to business requirements.

View 2 Replies

Suppress Obsolete Warning On Factory Method In .net?

Jan 21, 2011

Is it possible to prevent compiler warning caused by a static factory method returning an instance of an obsolete class? For example if an instance of an obsolete class (Foo) is created through a static method (Create) a compiler warning is caused by the factory method.

<Obsolete()> _
Public Class Foo
Public Shared Function Create() As Foo

[code]....

In C# the warning could be suppressed using "#pragma warning..." but I don't think that this exists within VB.Net. Migrating to C# is not an option due to business requirements.

View 1 Replies

Threading In Shared Function GetCurrentThreadId Obsolete/deprecated?

Aug 13, 2007

Here is a VB.NET Console module I'm testing to understand how Multi-Threading/Threads work.

Imports System
Imports System.Threading
Module Module1
Public Class SimpleThread
Public Sub SimpleMethod()

[Code]...

View 3 Replies

Warning: 0 : Use Procedure Bodies Is Now Obsolete.Use Check Parameters Instead

Apr 2, 2012

I'm getting this warning in my Output window (which doesn't affect functionality but I don't really understand it:

Warning: 0 : Use Procedure Bodies is now obsolete.Use Check Parameters instead

I'm using MySql.Data 6.3.7.0?

View 1 Replies

Enumeration Already Finished?

Dec 17, 2009

Is there a way to check to see if the enumeration is already finished?

View 3 Replies

Get The Value Of A Enumeration Item?

Oct 3, 2009

I have the following enumeration:

Code: Enum E1{ LOW = 'L', MEDIUM = 'M', HIGH = 'H' }

I have loaded those values to a combo box, but how do i display the value of "MEDIUM" (I.E. M), when i select "MEDIUM" from the combo box.

View 3 Replies

Use Enumeration In A Loop?

Feb 27, 2010

Can I use enumeration in a loop? something like this:

Enum Days As Integer
Monday = 1
Tuesday = 2
Wednesday = 3
End Enum

[Code]...

View 2 Replies

Using Enumeration Across Projects?

Dec 4, 2009

I have a Windows Forms UI, a Class Library, and a WebService. I need to be able to pass an Enumerated type through each of these layers (SystemType). For instance, the UI passes the type to the class library, which then passes the type to the Web Service.My question is, where do I define this enumeration type so they all know about it.

Options so far:

- Each project contains the exact same enumeration.

- Put the enumeration in its own project and reference this assembly from each of the other projects.

View 3 Replies

Can Sort DayOfWeek Enumeration

Jun 21, 2012

I am trying to figure out if the DayOfWeek Enumeration list can be sorted by using the integer value (ie Sunday = 0). Ultimately I want to take the DayOfWeek Enumeration list and population a dropdownlist with the days of the week from Sunday - Monday and I do not want to hard code the items in the HTML markup. Is this possible?

View 1 Replies

Enumeration Operation May Not Execute?

May 18, 2012

I have some code that i cant work out why its happening and how to fix it. What im attempting to do is loop through the controls in a gridview and replace it with another control along with the text

Dim i As Integer
Dim row As GridViewRow
Dim rowCell As TableCellCollection = row.Cells

[Code].....

View 1 Replies

Enumeration Select Using Variable Vb

Nov 6, 2011

I have a case where my enumeration is like this:

Public Const PREVIEWCREATE As Integer = -3
Public Const SETUP As Integer = -2
Public Const PREVIEW As Integer = -1

I then have a form post where i recover a string like:

Dim mode_custom_mode = request.Form("custom_mode")

I can do

Select Case UCase(mode_custom_mode)
Case "PREVIEWCREATE"

[Code].....

is there a more direct way in VB to do something like:

t.StartupModeId = StartupMode.(mode_custom_mode) ?????

View 2 Replies

Enums - .NET Enumeration Representation?

Apr 16, 2010

Is it guaranteed that the numeric values for an Enum with only uninitialized values start at zero and increment by one in the order defined?

View 2 Replies

The Given Key Was Not Present In The Dictionary. - Enumeration?

Aug 15, 2011

I've been getting the following error from time to time and have been unable to determine the cause of it:"The given key was not present in the dictionary."The line that this is occurring on is:If CType(ViewState("FieldType"), MYClass.FieldType) = MYClass.FieldType.ShowOnDirectory ThenI have no idea as to why it is throwing this exception on this line. I thought that perhaps an invalid value was being placed in the ViewState so I tried while debugging setting the value to Nothing and setting it to a value that wasn't in the enumeration and it still works. I was originally storing the enumeration in ViewState and then went to storing just the Integer equivalent in there

View 4 Replies

Use A Keyword As A Constant In An Enumeration?

Jan 19, 2011

I would like to use a keyword (reserved word) as a constant name in an enumeration.The reason I care about the name is I set a ListBox.DataSource to the .GetValues of the Enum Type.This way the list of constant names show up in the list box and the ListBox.SelectedValue can be tested to determine which constant value has been selected.What I would like to be able to do is as follows:

Enum
Style
As
Byte

[code]....

This was an attempt to override the Name property from S to Single However I get a pre-compile error stating: "Too many arguments to 'Public Sub New()'."

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved