Joos's Q&A profile
Windows Forms CheckBox Checked
Hi there I have a class that derives from Checkbox and is basically a toggle button. I also have the ability to group the class instances so that they behave a bit like radio buttons and reset the checked state of any other buttons of this class on the form. Trouble is, changing Checked to false also triggers the CheckedChange delegate. Can anyone think of a way to temporily stop the CheckChanged event from firing from with the class itself. To explain a little further, the class has a method ResetChecked and this sets Checked to false, but in doing so it fires the CheckChanged delegate. I can't remove the delegate and add it after because I just can't find a way to do that Any ideas anyone Thanks Dave Si ...Show All
.NET Development Secure FTP through proxy server
I tried using the FTPWebRequest object to do a secure FTP download through my proxy server. However, with the proxy object set correctly and EnableSSL=true, when I execute the getResponse method I get an exception of "SSL cannot be enabled when using a proxy." I will likely be using a production server that is behind the firewall and will thus need to communicate through the proxy server. Is there a .NEt way to do secure FTP through a proxy server I could use the IPSwitch ws_ftp program to do it, but don't want to go through our purchasing process if there is a simple way to do this with .net code. and how do you get trough a firewall my problem is that I want to run my ftpUploadApp ...Show All
SQL Server SSIS package runs in Development Studio but not as a job
When I run a package I created in the development Studio it runs fine but if I create a job and run it I get an error "The AcquireConnection method call to the connection manager "ODS" failed with error code 0xC0202009" I have the package setup to use a XML config file and it works fine on all the other packages but this one will not work. Try using this technique: http://blogs.conchango.com/jamiethomson/archive/2005/10/10/2253.aspx to work out what connection string is being used. -Jamie ...Show All
SQL Server Howto impersonate code to use specific role in SQL2005
Hi there, in SQL2000 Analysis Services I used a very complex script to authenticate as a specific user/role to create offline graphs and Pivot-Table pictures via script for users concerning their own security rights. I read out the role of this user and used the security settings within this role to filter the owc-element so that the user only gets to see the elements/data he is allowed to. This was necessary since the script (DTS) was run with administrative rights and therefore had access to all data. I built a serverside OWC, applied the security-filtering, exported to excel or picture and sent it via email as subscription. now for the question: Is there any way to tell a script to use a specific role when accessing the c ...Show All
SQL Server Mirror goes down... Affect client transactions?
If the mirror server goes down for any reason, then what happens to client transactions against the principle Will any client transactions fail Thanks in advance Quick answer - no, they should not be affected. However, if you have witness set-up and the principal cannot connect to both the witness and the mirror then it will stop serving the database and the transactions will fail. Take a look at this article: http://www.microsoft.com/technet/prodtechnol/sql/2005/dbmirror.mspx#ETPAE Thanks, Kaloian. ...Show All
SharePoint Products and Technologies Index Server combo box greyed out
Hi I am trying to create 'New Shared Services Provider' on newly installed sharepoint 2007, but combo box is greyed out. How do I assign index server role. in central admin, go to "operations" and "services on server" and then start the microsoft office search, with atleast the "index" role turned on. good luck! ...Show All
Visual Studio Express Editions Passing variables from one form to another
Hi I do not understand how to do this. I have a listbox with values (page A)and I want to allow the user to choose a value. I have a button on this page that would close this page (page A) and send the value to a button thus changing the value on the button on another page (page B). Please, if someone would help here! Shihan Here is a good simple link that will show you how to pass data between forms. There are 4 examples http://www.vbdotnetheaven.com/UploadFile/thiagu304/passdata12262006073406AM/passdata.aspx have a good new year ...Show All
Visual Studio Team System SharePoint Team Portal
We already have a SharePoint Server running where some of the teams have set up sites. We are in the process of implementing TFS for our development team and wonder if there is a way to consolidate all SharePoint sites and team portals so that we would not have to maintain two separate SharePoint servers. Can you give me some suggestions how this is best approached ...Show All
Visual C++ Problem with managed interface containing native types
Problem with managed interface containing native types Hi everybody :) I am having some troubles trying to implement an interface class that contains native types in the methods signature. I have this: ...... ClassLibrary.dll : namespace Native { struct NativeStruct; } public interface class IClassInterface { virtual NativeStruct* WhatEver (); }; #pragma make_public(NativeStruct) ....... ClassApplication.exe: (references to ClassLibrary.dll) namespace Native { struct NativeStruct; } public ref class IClassImplementation : public IClassInterface { public: virtual NativeStruct* WhatEver (); }; I get a compiler error that says that the signatures for the WhatEver return type differs between the interface and the class in th ...Show All
.NET Development Fatal Flaw in the Large Object Heap?
Hi All, After playing with the GC I find the following interesting. The problem domain I typically work in requires the allocation of very large arrays for image processing. We have discovered some issues when our processes are long running. We run out of memory and can not reclaim it. Our only recouse is to restart our processes. In an effort to discover why I uncovered the following: The LOH (Large Object Heap) is never compacted. I think this is a fatal flaw in the GC. I understand MS stated reason for this, but shouldn't there be someway to compact the LOH if necessary, at least a method call that forces the issue Does anyone know of anything that can be done Any workaround is better than killing the process... Here is a demo ...Show All
Visual Studio Express Editions Live webcam viewer
It might be a big job, but I'd like to know the (basic) code for a program that displays my webcam video (live), and what control to display the webcam video. I have just tried his and I cant figure out how to do it. sdfImage is not declared and SendMessage(hHwnd, WM_CAP_DLG_VIDEOFORMAT, 0&, 0&) has got a VERY long error mesage: Error 5 Overload resolution failed because no accessible 'SendMessage' can be called without a narrowing conversion: 'Declare Ansi Function SendMessage Lib "user32" Alias "SendMessageA" (hwnd As Integer, wMsg As Integer, wParam As Integer, ByRef lParam As Integer) As Boolean': Argument matching parameter 'wParam' narrows from 'Long' to 'Integer'. 'Declare Ansi Function SendMe ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Save As for an entire project?
Greetings! When I create a new project in MS Visual C# Express, a full set of folders (bin, obj, Properties) and files are created. I'd like to be able to "source" my projects, but can't figure how to use Save As so that Express will create new folders and files using whats currently open, just with a new name. Hope that makes sense. Thanks! You have a few options, but the easiest would be what Jim said. Anytime you want to version your code, just navigate out to the folder above your project, CTRL-CLICK, DRAG and RELEASE the folder. Rename the copy to comply with your naming standards for versioning and go back to work on the original. All done. Other, more complex options, include ...Show All
SQL Server Using stored procedure as OLE DB source with parameters from package variables
Hi Guys, (I have searched this forum extensively, but still can't find the solution to this problem) Here it is: I have step in my ETL process that gets facts from another database. Here is how I set it up: 1) I have to package variables called User::startDate and User::endDate of data type datetime 2) Two separate Execute SQL Tasks populate those variables with appropriate dates (this works fine) 3) Then I have a Data Flow Task with OLE DB source that uses a call to a sproc of the form "exec ETL_GetMyData @startDate = , @endDate = " with parameters mapped accordingly (0 -> User::startDate, 1 -> User::endDate) When I run this I get an error 0xC0207014: "The SQL command requires a parameter nam ...Show All
Windows Forms Programmatically editing rows in bound DataGridView
I have a DataGridView which I have bound to a datasource. bindSource = new BindingSource(); bindSource.DataSource = eventList; bindSource.DataMember = "Events"; eventsGrid.AutoGenerateColumns = false; eventsGrid.DataSource = bindSource; The user can enter data only through a form, which is displayed as a modal dialog. After he fills it in and clicks OK, the data he entered should be added to the DGV as a new row. eventsGrid.EditMode = DataGridViewEditMode.EditProgrammatically; eventsGrid.BeginEdit(false); eventList.Events.Add(tempEvent); this.BindingContext[eventsGrid.DataSource].EndCurrentEdit(); The problem is that when I do this, I get the following error message : "Operation ...Show All
Game Technologies: DirectX, XNA, XACT, etc. I have to write an article about XNA Game Studio : user point of view needed
Hello everyone, I have to write a dossier for a french videogame monthly magazine, where I should present the "product" to the readers, most of whom are teen gamers. It's no tech article, but a "perspective" one, about what is and may become XNA. If it can spark something inside a few of our readers, and have them try game development, that will be nice. Therefore, I'd like to have an idea about XNA reception on the users' side . I have a serie of generic questions. I'd be really happy that some of you cared to answer. Basic questions : - Why choose XNA over DX C++ dev - Why or how is XNA more suited to indie/homemade developements - Is there a reason why one would choose not too dev How would you describe XNA framework, refering to - th ...Show All
