Visual Studio Question - ambiguous references

Answered
0
0

Why does the editor complain about certain lines of code and want to put this in to resolve ambiguous objects ?

It also put something about “swf” up at the top of the code sometime -not sure if its when i’m adding events on controls via the editor or what ?

using DataGridViewRow = Wisej.Web.DataGridViewRow;
using DataGridViewCellEventArgs = Wisej.Web.DataGridViewCellEventArgs;

 

private void dgv_BusinessServices_CellValueChanged(object sender, DataGridViewCellEventArgs e)
{

// Code is here

}

 

If I remove the “swf” reference and  comment them out inthe using clause they are then OK again without errors

  • You must to post comments
Best Answer
0
0

This is happening in a new WiseJ application (3.5) not converting from Windows Forms to Wise J.

  • Julie(ITG)
    Yes, that makes sense. It’s happening because Visual Studio recognizes that the functions you’re using are Windows Forms functions as well as being Wisej functions. Think of it as autocorrect gone wrong.
  • You must to post comments
0
0

swf is for System.Windows.Forms. It comes from the backwards compatibility that Wisej has with Windows Forms. See here: https://docs.wisej.com/migration/winforms-to-wisej-1/winforms-to-wisej#replacing-winforms-namespaces-with-wisej.net

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.