Click here to Skip to main content
15,562,223 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: VB 2008 DataGridView Pin
Sebastian Br.31-Mar-10 22:37
Sebastian Br.31-Mar-10 22:37 
AnswerRe: VB 2008 DataGridView Pin
William Winner30-Mar-10 12:04
William Winner30-Mar-10 12:04 
AnswerRe: VB 2008 DataGridView Pin
William Winner30-Mar-10 12:08
William Winner30-Mar-10 12:08 
QuestionCreate autowidth() Property Pin
nyt197230-Mar-10 2:32
professionalnyt197230-Mar-10 2:32 
GeneralRe: Create autowidth() Property Pin
DaveAuld30-Mar-10 5:35
professionalDaveAuld30-Mar-10 5:35 
AnswerRe: Create autowidth() Property Pin
DaveAuld30-Mar-10 12:31
professionalDaveAuld30-Mar-10 12:31 
AnswerRe: Create autowidth() Property Pin
Anubhava Dimri30-Mar-10 21:07
Anubhava Dimri30-Mar-10 21:07 
AnswerRe: Create autowidth() Property Pin
nyt197230-Mar-10 21:27
professionalnyt197230-Mar-10 21:27 
Thanks for reply dear,

The problem is that When I build the Ruler and add it to a form then I set the rulers autowidth property to True and run the Application it shows me the following error.

System.InvalidOperationException was unhandled
  Message="An error occurred creating the form. See Exception.InnerException for details.  The error is: Object reference not set to an instance of an object."
  Source="WindowsApplication1"
  StackTrace:
       at WindowsApplication1.My.MyProject.MyForms.Create__Instance__[T](T Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 190
       at WindowsApplication1.My.MyProject.MyForms.get_Form1()
       at WindowsApplication1.My.MyApplication.OnCreateMainForm() in C:\Documents and Settings\Administrator\Local Settings\Application Data\Temporary Projects\WindowsApplication1\My Project\Application.Designer.vb:line 35
       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
       at WindowsApplication1.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
       at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException: System.NullReferenceException
       Message="Object reference not set to an instance of an object."
       Source="WindowsApplication1"
       StackTrace:
            at WindowsApplication1.nytRuler.set_autowidth(Boolean value) in C:\Documents and Settings\Administrator\Local Settings\Application Data\Temporary Projects\WindowsApplication1\nytRuler.vb:line 45
            at WindowsApplication1.Form1.InitializeComponent() in C:\Documents and Settings\Administrator\Local Settings\Application Data\Temporary Projects\WindowsApplication1\Form1.Designer.vb:line 31
            at WindowsApplication1.Form1..ctor() in C:\Documents and Settings\Administrator\Local Settings\Application Data\Temporary Projects\WindowsApplication1\Form1.Designer.vb:line 53
       InnerException: 


Please help, I will be thankful.
GeneralRe: Create autowidth() Property Pin
nyt19721-Apr-10 1:51
professionalnyt19721-Apr-10 1:51 
GeneralRe: Create autowidth() Property Pin
nyt19724-Apr-10 20:30
professionalnyt19724-Apr-10 20:30 
QuestionVB.NET Date Functions Calculations [modified] - SOLVED Pin
Member 442053429-Mar-10 23:43
Member 442053429-Mar-10 23:43 
AnswerRe: VB.NET Date Functions Calculations Pin
Steven J Jowett29-Mar-10 23:52
Steven J Jowett29-Mar-10 23:52 
GeneralRe: VB.NET Date Functions Calculations Pin
Member 442053430-Mar-10 0:08
Member 442053430-Mar-10 0:08 
GeneralRe: VB.NET Date Functions Calculations Pin
Member 442053430-Mar-10 0:23
Member 442053430-Mar-10 0:23 
GeneralRe: VB.NET Date Functions Calculations Pin
Steven J Jowett30-Mar-10 0:42
Steven J Jowett30-Mar-10 0:42 
QuestionResize external application Pin
csanmba29-Mar-10 11:55
csanmba29-Mar-10 11:55 
AnswerRe: Resize external application Pin
Tarakeshwar Reddy29-Mar-10 13:15
professionalTarakeshwar Reddy29-Mar-10 13:15 
GeneralRe: Resize external application Pin
csanmba30-Mar-10 2:43
csanmba30-Mar-10 2:43 
QuestionOK Going Mad...VB.Net Mail Pin
Dalek Dave29-Mar-10 10:59
professionalDalek Dave29-Mar-10 10:59 
AnswerRe: OK Going Mad...VB.Net Mail Pin
nlarson1129-Mar-10 11:18
nlarson1129-Mar-10 11:18 
GeneralRe: OK Going Mad...VB.Net Mail Pin
Dalek Dave29-Mar-10 22:27
professionalDalek Dave29-Mar-10 22:27 
QuestionNew line to be added to a mail message [modified] Don't Worry, got it! Pin
Dalek Dave29-Mar-10 9:56
professionalDalek Dave29-Mar-10 9:56 
AnswerRe: New line to be added to a mail message [modified] Don't Worry, got it! Pin
nlarson1129-Mar-10 11:23
nlarson1129-Mar-10 11:23 
QuestionStatic Variables for Grade Counting Program [modified] - SOLVED Pin
Adam Wike29-Mar-10 5:39
Adam Wike29-Mar-10 5:39 
AnswerRe: Static Variables for Grade Counting Program Pin
Estys29-Mar-10 6:09
Estys29-Mar-10 6:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.