Hey guys, I am desperated right now. Im my application i want to export some data from an entityset to excel. So far so good. But i want to exclude some properties. So i thought creating a custom attribute for those properties is might a good idea to make things more general. Anyway, for some reason the Metadata get not applied at all. I've searched the web for hours but always the same examples with the same result. I have created a small test code to make testing easier. If someone could tell me how to solve this problem (or …

Member Avatar
+0 forum 0

Thread title sounds weird, but what i meant is following thing: For the sake of Karma i am not willing to help users, who need help with coding trojans, viruses, worms and other harmful things, and also users who are not willing to mark their threads as solved (not talking about forgetting it once or twice). I hardly can remember what i have eaten yesterday, so I of course can't remember all user names on my personal blacklist. So if the developers of DaniWeb could add a button next to the "Flag Bad Post" a "Add to my blacklist" and …

Member Avatar
Member Avatar
+0 forum 5

Heya guys, I have a very small snippet that drives me crazy right now. [CODE=csharp] int arg1; int expr1 = arg1 = 16; [/CODE] That silly online translators giving me the following output [CODE=vb] Dim arg1 As Integer Dim expr1 As Integer = InlineAssignHelper(arg1, 16) [/CODE] Great but what should i write in the "InlineAssignHelper" function? What should that function return?

Member Avatar
Member Avatar
+0 forum 2

Not quite sure if im in the right section but lets try ... In my project i want to use a "Local Database Cache" and sync it with my online MYSQL server. Problem here is, the MySQL data-provider is not showing up when doing the wizzard for the Server/Client properties. based on the msdn website it is possible to sync the client and server. [QUOTE] In Synchronization Services, the database used on the client-side is SQL Server Compact Edition 3.5 SP1. Synchronization Services provides an infrastructure to track incremental changes in the client database. The server-side database can be any …

Member Avatar
+0 forum 0

Hey guys... With the old forum style we had few quick links at the right side of the forum just like (search this forum) Right now there is only the "normal search" bar on top which searches in ALL forums. thats pretty unhandy. Also the "Mark forum as read" links me to the "Software Development Category". just coz i mark all threads as read doesn't mean i am done in that forum o.O is it possible to bring the quick links back and not redirecting on marking as read please?

Member Avatar
Member Avatar
+0 forum 1

Hey, I have created a new AppDomain with a unique name. But i do not want to store that name during the whole application runtime. So i ask you guys if it is possible to get that created AppDomain by name back. [CODE=vb] Sub Main() AppDomain.CreateDomain("TestDomain") End Sub [/CODE] so How do i get the AppDomain with the name "TestDomain" back so i can unload it later without storing that AppDomain globally?

Member Avatar
Member Avatar
+0 forum 1

I have created a thread which have to do some xml parsing in its class. The class Inherits from System.Windows.Threading.DispatcherObject while its parsing i wanna get the dispatcher to add the items to a ObservableCollection(Of T) i will add my code here and describe the problem in the comments [CODE=vb] Private Delegate Sub NewsDelegate(ByVal news As NewsItemClass) Public Sub ReadAllNews() Dim th As New System.Threading.Thread(AddressOf StartReadNews) th.IsBackground = True th.Start() End Sub Private Sub StartReadNews() Dim xDoc As XDocument = XDocument.Load("myXML.xml") For Each newsElement As XElement In xDoc.<news>.<item> Dim id As Integer = CInt(newsElement.@id) Dim newsItem As New NewsItemClass With …

Member Avatar
+0 forum 0

Hello guys I just want to make a few suggestions to the new design on Daniweb... Is it possible to also have this "Mark This Forum Read" Link on top of the forum? Right now it is not possible to open threads in a separate tab any more if I do a mouse wheel click on the last reply. Is it possible to bring that back?

Member Avatar
Member Avatar
+0 forum 4

I have created a CustonControl (NOT a usercontrol) and defined a DependencyProperty as following: [CODE=vb] Public Shared ReadOnly HelpBrushProperty As DependencyProperty = DependencyProperty.Register("HelpBrush", GetType(String), GetType(ComboBox_with_helpBrush), New UIPropertyMetadata("Select..."), New ValidateValueCallback(AddressOf StringProp_Validate)) Public Property HelpBrush() As String Get Return DirectCast(GetValue(HelpBrushProperty), String) End Get Set(ByVal value As String) SetValue(HelpBrushProperty, value) RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs("HelpBrush")) End Set End Property Private Shared Function StringProp_Validate(ByVal value As Object) As Boolean If Not (TypeOf value Is String) AndAlso value IsNot Nothing Then Return False End If Return True End Function [/CODE] Then i added the Control Template into the ResourceDictionary and in one of my triggers i …

Member Avatar
Member Avatar
+0 forum 1

Im trying to inject my vb.net dll into the notepad process to hook one of its functions. Now it seems i face two problems.... GetProcAddress returns 0 (it also does if i call that function via c++ dll) Its might be Vista? anyway next problem is that i want to write the address of the new function into the memory on the procaddr (if i ever will get it). Someone have an idea how to get the proc address on another way that is Vista supported? i have created two functions for getting the adress of the new function but …

Member Avatar
+0 forum 0

Hello I am coding an FTP program, the downloading/uploading happens in a seperate thread. The problem is now how to pause/resume the download (even on servers that don't support file resume), an easy/working way is to pause/resume the working thread with thread.suspend but it tells me that this function is obsolete. Is there a simmilar method to achieve this? I've tried looking up Mutexes, Monitor, Event, Semaphore stuff but that would only allow me to pause the file transfer after the file is done. So the code that 'lives' in the thread that I want to suspend looks something like …

Member Avatar
Member Avatar
+0 forum 2

The End.