- Code: Select all
using System;
using System.Windows.Forms;
namespace NoFuncs
{
public partial class FormMain : Form
{
public FormMain()
{
InitializeComponent();
}
private void cmdGen_Click(object sender, EventArgs e)
{
lblCDKey.Text = "Test Functions";
}
private void cmdGenerate_Click(object sender, EventArgs e)
{
txtKey.Text = "Test Functions";
System.IO.File.WriteAllText(@"C:\Documents and Settings\Test.lic", txtKey.Text);
}
private void cmdGetQty_Click(object sender, EventArgs e)
{
MessageBox.Show("Test Functions");
}
private void cmdGenerateA_Click(object sender, EventArgs e)
{
//comment
}
private void cmdCreate_Click(object sender, EventArgs e)
{
txtKey.Text = "Test Functions";
System.IO.File.WriteAllText(@"C:\Documents and Settings\C.lic", txtKey.Text);
}
}
}
Here's another:
- Code: Select all
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace WI
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new FormMain());
}
}
}
I also have issues with vbs files, it lists subs but not functions, the following code doesn't show up in the Function List:
- Code: Select all
Public Function FSIsPt(piShapeType)
FSIsPt = false
If piShapeType = 1 Then
FSIsPt = true
End If
End Function
Are others experiencing this behavior? Is there something off with my coding style or .. How can I get UltraEdit to show Functions?

