Message 1 of 2
Translate C# into vb.net - map-processbar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
hi!
i get follwing C#-Code for show map-processbar:
Autodesk.Map.IM.Forms.Desktop.StatusForm<Object> statusForm = new Autodesk.Map.IM.Forms.Desktop.StatusForm<Object>( delegate (Autodesk.Map.IM.Data.Util.IStatusDisplay status, Object[] parameters) { try { //start process //values for processbar status.Minimum = 0; status.Maximum = 100; //set status-text status.Status = "Verarbeitung beginnt..."; //stop graphic update using (this.Document.Map.InitiateDrawBurst()) ' <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< { //process to work for (int i = 0; i < 100; i++) { //validate if cancel if (status.CancelRequested) { //info for user System.Windows.Forms.MessageBox.Show("process stopped!"); //cancel return; } //sleep-for time to work System.Threading.Thread.Sleep(100); //update status status.PerformStep(); } } // update grafi //user-info System.Windows.Forms.MessageBox.Show("process finished."); } catch (Exception ex) { //catch error System.Windows.Forms.MessageBox.Show("error: " + ex + " " + ex.StackTrace); } }); //type of status statusForm.Type = Autodesk.Map.IM.Forms.Desktop.ProgressBarType.ProgressBarWithText; //bei unbekannter Größe //statusForm.Type = Autodesk.Map.IM.Forms.Desktop.ProgressBarType.ContinuousProgressBar; //Abbrechen-Knopf anzeigen und aktivieren statusForm.CancelButtonVisible = true; statusForm.CancelButtonEnabled = true; //Verarbeitung starten statusForm.ShowDialog(); }
my problem is to translate the first lines!
could someone help me ???
regards Jan