Dragan Jankovic's Q&A profile
Visual Basic Window with transparent background?
I have a window with a transparent background. How can I get the background to be transparent in 32-bit color mode Hm I figured it out for myself... I created a region object around the edge of the background image and used Form.Region=myRegion to assign it. Seems so simple now... ...Show All
Visual Studio 2008 (Pre-release) Rolebased Security & controls
Hello, For my WPF application, I need to use rolebased security to: a) Disable buttons b) Make controls readonly or read/write I'm planning to use an access matrix for each role. Each control has a boolean that indicates if it is enabled or if it is readonly. It just seems like a lot of work, and lot of binding code (in xaml-binding and cs-properties). aya-yaya... Is there a way out of this Is there a better approach Thanks Houman Josh, not all controls have a Command property...(just buttons and menuitems at the moment). We'd need to put an attached property for those controls that don't have Command properties. This property could be as simple as an Identifier for a Command ( ...Show All
.NET Development how to append xml file
< xml version="1.0" > - < MunnaMobileData > - < Category Type =" Sports " > - < Game Id =" 1 " Cost =" 44 " Description =" 44 " Vendor =" 44 " Image =" 1.jpg " Audio =" 02 Aadat.mp3 " Video =" linkin park-reanimation.mpeg " Version =" 44 " > - < Manufacturer Count =" 1 " > - < Nokia > < SupportedDevices Models =" N90,N70 " JarFiles =" 1.jar " /> </ Nokia > </ Manufacturer > ...Show All
Windows Live Developer Forums How to calculate the zoom level if i have arrays of lattitude and longitude?
Hi, I need to calculate the zoom level dynamically so that all pushpins appear in the visibility of the map. I have arrays of latitude and longitude which can be treated as inputs to caluculate the zoom level dynamically. If anyone has already written a method to achive this, please do share the same with me so that it can be helpful to me. Thanks in advance, Its strangly named but it is called SetMapView() and takes an array of VELatLong so I think you are set. John. <script> var map = null; function GetMap() { map = new VEMap('myMap'); map.LoadMap(); var pinid=0; var locs = new Array; var loc = new VELatLong(40, -123); ...Show All
Visual C# Explicit Interface Methods Implementation
In MC++, I can do the following: - MC++ Sample: __gc __interface ICloneablePerson { Person* Clone(); }; public __abstract __gc class Person : public ICloneablePerson { private: String* _name; protected: Person() :_name(String::Empty) { } Person(String* name) :_name(name) { } Person(Person* source) :_name(source->_name) { } public: __property String* get_Name() { return _name; } }; public __gc class Student: public Person { private: String* _id; public: Student(void) :Person() { _id = String::Empty; } Student(String* name) :Person(name) { _id = String::Empty; } Student(Student* source) :Person(source) { this->_id = source->_id; } Student* ...Show All
.NET Development WSE3 doesn't work in VS2005 (add-in not installed and proxy not generated correctly)
Hi all, I've got a lot of problem using WSE3 with my installation of VS2005 Team Suite. I installed the WSE3 with the "visual studio developer" option but I don't have the add-in for the configuration. I can bypass the problem using manually the Configuration tool to edit the configuration files. But I've also another problem: this happens both with my application and with the quickstart examples: when I add a web reference, the generated proxy is still the old one (which inerhits from SoapHttpClientProtocol) and not the "new one" that should inherits from Microsoft.Web.Services3.WebServicesClientProtocol and should have the *wse class. Any idea on how to solve this problem Thank you Simone ...Show All
SQL Server RECEIVING from QUEUE by ConversationHandle
Is it possible to receive from a queue by a conversation handle In the documentation there is an example that show you how to do it. Yet, if you "read" the whole document it says that the conversation handle can not be an expression. The WHERE clause of the RECEIVE statement may only contain search conditions that use conversation_handle or conversation_group_id . The search condition may not contain any of the other columns in the queue. The conversation_handle or conversation_group_id may not be an expression. Here is what I'm trying to do: ; RECEIVE TOP ( 1 ) @MsgBody = CAST ( message_body as XML ) FROM ProcessingLetters WHERE conversation_handle = @Conversation_Handle It doesn't seem to mat ...Show All
Visual Basic Help writing a Generic Dictionary Collection
In vb.net 2003 I would probably write a dictionary Collection like this. What is the proper way to write in vb.2005 Do I need to implement the enumerator What extra function would be useful to add Can you help converting the below to a more generic type '/ <summary> '/ A dictionary with keys of type String and values of type ClassDeclaration '/ </summary> Public Class CustomerCollection Inherits System.Collections.DictionaryBase Public Sub New() End Sub   ...Show All
SQL Server Hardware Specifications
Is there any documented hardware specification for Analysis Services 2005/2000 This is one question asked frequently to me by people implementing AS 2005. I could not find any documents on this. It would be great if any recommendations are available on this. Thanks, S Suresh Such information is often provided by hardware vendors. For instance; http://h18004.www1.hp.com/products/servers/software/microsoft/sqlserver2005.html jumpid=reg_R1002_USEN www.dell.com/sql You can also take a look at the existing case studies like Project REAL http://www.microsoft.com/sql/solutions/bi/projectreal.mspx see what are the data sizes and what hardware used. Edward. -- This posting is provided "AS IS ...Show All
Smart Device Development cancel resize event
Hi, Is het possible to cancel the resize event I need it because when the keyboard is slide out, it shouldn't go to landscape mode grtz Annihil8 ...Show All
SQL Server SQL Query Help - Table DataType
Hello Everybody, Iam having a problem with a certain query in SQL Server 2005. Please help me find a solution. This query is used as a Stored Proc. The query is as follows: DECLARE @myTempTbl( ID bigint, num bigint ) INSERT INTO @myTempTbl SELECT **** LEFT OUTER JOIN ***** LEFT OUTER JOIN ***** UNION ***** L ON ***** GROUP BY **** SELECT A.*, @myTempTbl.num FROM A INNER JOIN @myTempTbl A ON A.ID = @myTempTbl.ID The error I get at 'SELECT A.*, @myTempTbl.num FROM A INNER JOIN @myTempTbl A ON A.ID = @myTempTbl.ID' is 'Must Declare the scalar variable @myTempTblId'. Please help me out. Thanks in advance. DECLARE @myTempTbl( ID bigint, &n ...Show All
Smart Device Development Dll method problem
Hi Guys I am new bie in Windows mobile platform. I am building a smartphone application using c#. It uses our own NetwrkAction.lib. Can you guys help me how can i use this lib in the project. I have follwoing functions that has to be used in the application. EXPORT CNetwrkAction* CALLBACK CreateNetwrkAction(); EXPORT void CALLBACK DeleteNetwrkAction(CNetwrkAction* obj); EXPORT int CALLBACK Configure(CNetwrkAction* obj,LPVOID aErrorNotifier,LPVOID aEventNotifier, const char *aPrimaryGateway); EXPORT int CALLBACK ConnectToServer(CNetwrkAction* obj); EXPORT int CALLBACK RequestToServer(CNetwrkAction* obj,const char *aPrimaryGateway); Can anybody tell me how to use this DLL with my program. Please do not ask the same question seve ...Show All
Visual Studio Team System Readd of a project which was bind to source control fails
Hi, I have a project which was bind to team foundation source control. Our server crashes and we only have the version in the workspace. How can I readd this project to source control There was this error message (sorry, in German): Das Projekt "D:\TFS\TestProject\5.00\Entwicklung\Entwicklung.sln" kann der Quellcodeverwaltung nicht hinzugefugt werden. Das Projekt uberschneidet ein Projekt im Ordner "D:\TFS\TestProject\5.00\Entwicklung", das bereits in einem unteren Stamm an die Quellcodeverwaltung gebunden ist. Um das Problem zu vermeiden, fugen Sie das Projekt aus einem Ordner unter dem Bindungsstamm der anderen Projekte in der Projektmappe hinzu. I have remove all files added by source control and edit *.sln to remove ...Show All
Smart Device Development Replace standard Bluetooth Hands-Free Profile in Windows Mobile 2005
Hi, I want ed to know - can I replace standard Bluetooth Hands-Free Profile in Windows Mobile 2005 (PPC and MS Smartphone) on my user profile I am not sure that it’s possible generally. Can anybody help me regarding this Any sites..releted documents...releted code.... Have you any ideas about this issue Hi, I want ed to know - can I replace standard Bluetooth Hands-Free Profile in Windows Mobile 2005 (PPC and MS Smartphone) on my user profile I am not sure that it’s possible generally. Can anybody help me regarding this Any sites..releted documents...releted code.... Have you any ideas about this issue ...Show All
Windows Forms VB .NET DataSet adding unknown number of DataTables
I am trying to load from another class unknown number of datatables into one dataset. VB .NET dim dsTmpSet as dataset for i = 0 to count -1 Dim dtTmp as datatable = new datatable(i) dtTmp = a data table returned by another class dsTmpSet.tables.add(i) next This just crashes the for loop. What would be correct way to read my tables to the dataset. Oh already forgot posting this until the alert message came. Acctually I don't know if this is funny or not. As I was told there was this class I was talking about with the method. And I did call around the developers to ensure what it does. Funny part of the story is that I went some trouble to find the source and discovered that there was method coded bu ...Show All
