Jump to content
Xtreme .Net Talk

Celeron

Members
  • Posts

    21
  • Joined

  • Last visited

About Celeron

  • Birthday 11/23/1987

Personal Information

  • Occupation
    Executive Vice President, IT Department
  • Visual Studio .NET Version
    VS.NET 2003
  • .NET Preferred Language
    C#, VB.NET

Celeron's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. After much investigation into the subject of referencing my core to compiled scripts, I have been confronted with a simple loop which my code already included, however I was ignorant to it's purpose. For Each asm In AppDomain.CurrentDomain.GetAssemblies myCompilerParameters.ReferencedAssemblies.Add(asm.Location) Next
  2. Put that code into the aforementioned button.
  3. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim i As Integer Dim done As Boolean If Not ListView1.Items.Count = 0 Then Do Until done = True If ListView1.Items.Count = 1 Then If ListView1.Items(0).Selected Then ListView2.Items.Add(ListView1.Items(0).Text) ListView1.Items(0).Selected = False ListView1.Items.RemoveAt(0) done = True End If End If For i = 0 To ListView1.Items.Count - 1 If ListView1.Items(i).Selected = True Then ListView2.Items.Add(ListView1.Items(i).Text) ListView1.Items(i).Selected = False ListView1.Items.RemoveAt(i) Exit For End If done = True Next Loop End If End Sub This will move all selected items.
  4. I have a script compiler similar to that outlined in Using .NET Languages to make your Application Scriptable thread. How would I allow the scripts access to functions inside my hardcoded source? For example, I have a console like application, and I want my scripts to be able to have a Console.WriteLine function which would have access to the hardcoded console.
  5. I doubt you can change it via code, you'd be better off just making your own form and make your own MsgBox function to call it(with whatever sound you want of course)
  6. Private Sub NotifyIcon1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles NotifyIcon1.Click Me.WindowState = FormWindowState.Normal Me.ShowInTaskbar = True NotifyIcon1.Visible = False End Sub Private Sub Form1_SizeChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.SizeChanged If Me.WindowState = FormWindowState.Minimized Then Me.ShowInTaskbar = False NotifyIcon1.Visible = True End If End Sub
  7. If there is only 1 item, try using ListBox1.Items.Clear()
  8. Simply a public HasChanged boolean that is set to True everytime certain fields are changed and False during save. You've got the right idea. Unfortunately, you'll have to go into every input control and tell HasChanged to be True when something has changed. Use handles to get this done quickly.
  9. Private Sub Form1_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing e.Cancel = True End Sub This will not allow you to close the form at all, unless you use the End keyword or create a special function that is called from Form1_Closing.
  10. That is reasonable, it just seemed like those forums were for moderators/veteran users, and I didn't see anything that said otherwise. Thanks for clearing it up
  11. Yes, I have seen those forums. However, when I try New Topic(or reply), I get: Celeron, you do not have permission to access this page. This could be due to one of several reasons: Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system? If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation. Maybe this is an error and my request is moot all-together :)
  12. A forum for user submitted guides would be convenient. It might create extra work moving posts that were in the wrong place, but I think users who aren't inclined to throw together websites could use this as an outlet for their urges to mentor the community. Not too important, just a suggestion.
  13. childForm.MdiParent = Me.MdiParent ?
  14. Create a global variable in a Module, at the beginning of your program, have that variable be a reference to frmMain frm = frmMain Then from the child forums, just use frm(the global reference to frmMain) to create new MDI children.
  15. If I were doing that, I would generate some random numbers beforehand with Random Number class and then call all rows with ID's of those random numbers.
×
×
  • Create New...