|
POST
|
I had this conversation, I think it was version 8.1 something, apparently ArcMap keeps a reference to the featureclass so it can re-add it faster if you chose undo... Have you tried the com releaser on the featurelayer.featureclass?
... View more
07-19-2011
12:03 PM
|
0
|
0
|
1141
|
|
POST
|
http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#/Oracle_initialization_parameters/002n00000003000000/
... View more
07-19-2011
07:38 AM
|
1
|
0
|
949
|
|
POST
|
This is an oracle problem, not a code problem. By default I think Oracle has 50 or so maximum cursors (not sure the exact number but it is low.) Now most applications use a 1 to 5 cursors so that is ok. ArcGIS uses much much more, I believe the recommended max is like 10 000 for an SDE database.
... View more
07-19-2011
07:20 AM
|
1
|
0
|
949
|
|
POST
|
Yes the whole keyboard events in controls is a bit of a mess. I get that problem with a windows control too. I did something like this in the windows control. Basically create my own handlers. I don't have list boxes but I think that is just the up and down keys.
Public Sub Initialize()
WorkaroundTabIndexDefect()
End Sub
''' <summary>
''' Works around the tab index defect.
''' </summary>
Private Sub WorkaroundTabIndexDefect()
For Each ctr As Control In Me.Controls
SetKeyDownHandlers(ctr)
Next
End Sub
''' <summary>
''' Sets the key down handlers.
''' </summary>
''' <param name="ctr">The CTR.</param>
Private Sub SetKeyDownHandlers(ByVal ctr As Control)
Dim txtCtr As TextBox = TryCast(ctr, TextBox)
If txtCtr IsNot Nothing Then
txtCtr.AcceptsTab = True
txtCtr.AcceptsReturn = True
Dim evh As KeyEventHandler = New KeyEventHandler(AddressOf WorkaroundKeyDown)
AddHandler txtCtr.KeyDown, evh
Else
ctr.TabStop = False
End If
If ctr.Controls.Count > 0 Then
For Each subCtr As Control In ctr.Controls
SetKeyDownHandlers(subCtr)
Next
End If
End Sub
''' <summary>
''' Workarounds the key down.
''' </summary>
''' <param name="sender">The sender.</param>
''' <param name="e">The <see cref="System.Windows.Forms.KeyEventArgs" /> instance containing the event data.</param>
Private Sub WorkaroundKeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs)
Try
If Me.ActiveControl IsNot Nothing Then
Select Case e.KeyCode
Case Keys.Return
Dim btnCtr As Windows.Forms.Button = TryCast(Me.ActiveControl, Windows.Forms.Button)
If btnCtr IsNot Nothing Then
btnCtr.PerformClick()
End If
Case Keys.Tab
If e.Shift Then
Me.SelectNextControl(CType(sender, Control), False, True, True, True)
Else
Me.SelectNextControl(CType(sender, Control), True, True, True, True)
End If
End Select
End If
Catch ex As Exception
Trace.WriteLine(ex)
End Try
End Sub
... View more
07-19-2011
07:14 AM
|
0
|
0
|
661
|
|
POST
|
I suggest you try using the COMReleaser to explicitly release the resource from either the layer or the featureclass that is the layer source.
... View more
07-19-2011
07:03 AM
|
0
|
0
|
1141
|
|
POST
|
callout margins can be set in the ArcMap GUI for the background properties so it should be doable in code. ITextMargins has a getMargins and putMargins. I have never used it but my bet would be to start there.
... View more
07-14-2011
05:10 AM
|
0
|
0
|
515
|
|
POST
|
With a TextElement, the only way I know to set the background color is to set the background to a balloon callout. But this has some likely unwanted callout features. Probably best to use ParagraphTextElement, which gives you control over background, outline, etc. There is a sample of how to use it in the thread: Paragraph text in Pagelayout You can get around the balloon callout problems by setting the leader tolerance to the maximum, 32767. A bit of a hack but it works. Marker text background can work also depending on the needs and the properties. Another solution is to create a group element with a text element and a polygon or rectangle element grouped together.
... View more
07-12-2011
10:35 AM
|
0
|
0
|
515
|
|
POST
|
Windows user name is fine if you are using OS authentication in your connection. If not, this won't tell you what user is connected to the database.
... View more
07-12-2011
05:35 AM
|
0
|
0
|
818
|
|
POST
|
I too have this problem. There is the isbeingedited property on the iworkspaceedit, however, this only returns true if the process in which it is called is the one edited. In my case I had a file geodatabase, where the same user could be editing it from two different processes (.exe) The only way I found was to check for the presence of edit locks in the file geodatabase folder (*.ed.lock.) Does anyone have a better way?
... View more
07-08-2011
10:01 AM
|
0
|
0
|
509
|