Ron Luebke's Q&A profile
SharePoint Products and Technologies ASP.NET Connected Web Part Under SharePoint
After having spent a lot of time building a two webparts under ASP.NET (one provider, one consumer), and getting them to work flawlessly under the ASP.NET webpart framework, it now comes time to deploy to SharePoint. I have followed the tutorials... strong name the assembly, drop the assembly in the _app_bin, upload the web parts to the WebPart Gallery, create a WebPart Page, add webparts to the page, connect the webparts... But here is where the problem is. There is no option on the edit menu to add connections What do I have to do to enable connections for my custom webpart Is there a definition file that I need to define this in Is it a matter of not having the permission to connect webparts The provider web part seems to work w ...Show All
Internet Explorer Development JavaScript Detect browser close IE 7
We have an application that logs into a system, we need to trap when a user may close the browser with the (X). In IE6 we can do this succesfully with the following code In body tag onUnload = "handleBrowserClose();" function handleBrowserClose() { if (screenTop > 9999) { //handle logout event } } Unfortunetly since IE7 the screenTop now actually contains the actually value of the top position. Does anyone have any suggestions on how to fix this in IE7 or a different way to trap that a user clicks the (X) button to close IE7 I am not the author of the timeout method, but to answer your "timeout javascript" question, here is an example (form here : http://www.htmlite.com ...Show All
Visual Studio Tools for Office cypress DocumentOpen event is not fired in SPS2007 Beta2TR
Hi~. I found cypress bug by design Cypress add-in and Shared add-in is OK in normal open but, uploaded word Doc in SPS2007 Beta2TR is not fired cypress DocumentOpen event ( Shared add-in is OK) ======= <Cypress Word2007-Addin> private void ThisAddIn_Startup(object sender, System.EventArgs e) { this.Application.DocumentOpen += new Microsoft.Office.Interop.Word.ApplicationEvents4_DocumentOpenEventHandler(Application_DocumentOpen); } void Applicat ...Show All
Visual Studio Visual Studio 2003-TestDriven.NET
Hi, I have recently come across TestDriven.NET which is an amazing ad-in for VS 2003 for test driven development.While it has got some amazing features i am facing one problem while using this tool. Problem:- After starting the testing with "Coverage" the tool starts running the test cases.But, after succesfully passing the last test case it is not generating the report.It just hangs doing nothing. Can somebody help me out.Why does it hang and Whats the way out Regards ...Show All
Windows Forms Full Screen App: Tough Print Preview Control Question
I'm sure this problem is unique because the action that causes it cannot be surpressed... but here goes: To setup the question, I'm using a Windows app that runs full screen, over the Windows taskbar. There is a button on the main form that creates a new instance variable used to ShowDialog another form, called ViewCheck, that previews a report generated in code. The ViewCheck form uses a PrintPreviewControl to display the report on the form, not a pop-up view of the report. Setting the Document property of the PrintPreviewControl shows the report on itself: ppcCheck.Document = chk.TabularReport; Ok, here comes the problem and the question: When the PrintPreviewControl is generating the preview, it produces a small pop-up wind ...Show All
SQL Server Delete Multiple IDs
Hi, I am getting doubles for all my IncidentIDs in IncidentID column. Ex: Incident ID 13734 Incident ID 13734 Is there a delete statement to get rid of more then one Replication of the same ID Thanks There are numerous ways available to achieve this Simplest way is Copy the table Data to temporary table, delete the data in original table, select distinct data from temporary table and insert into the original table ...Show All
Microsoft ISV Community Center Forums Confused by "Null"
Hello~ It seems to me that the value NULL has some strange and inconsistent behavior in VBA. I would appreciate if anybody could help me out with the NULL - I guess there is something special about NULL that I haven't realized. Here is a recent example: The codes below is expected to calculate [TwoEstDate] according to the updated value in textbox [Text_OneReturnDate]: if it is null then the [TwoEstDate] is null, otherwise [TwoEstDate] is the 10th Monday after the [Text_OneReturnDate]. To debug, I added a watch for the value of [Text_OneReturnDate]. When I clear the contents in [Text_OneReturnDate], in the watch window, it shows Me!Text_OneReturnDate.Value is Null. So it should be line 1 that is executed. But what actually happened was, th ...Show All
Visual Studio Express Editions I am having a problem with my code.
I was trying to make an application. the application is very simple but when i was typing the code it said there was two errors. The first error was ('ElseIf' must be preceded by a matching 'If' or 'ElseIf'.) The second error was ('End If' must be preceded by a matching 'If'.) I really need help to get this code error free. The code is at the end of this page. Thanks for helping. The code Public Class Form1 Dim door As String = "locked" Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If door = "locked" Then Button1.Text = "Unlock" Label1.Text = "The door is locked" MessageBox.Show ...Show All
Visual C++ Interop ifstream and FileStream C++/CLI
I have a class written in native C++ and I need to wrap it with a managed wrapper so I can reference it in a C# project. My native class takes an ifstream as a method parameter and does a lot of magic with it in its implementation. Instead of converting this whole class to managed C++ , along with a plethra of dependencies, I would like to create a managed C++ / CLI class containing a method with a parameter of FileStream^. Creating and compiling the wrapper class is the easy part but now how do I pass the FileStream instance to the native method Is there some method on the managed code, which would allow me to get a pointer to the file I'd rather not abstract the logic of the ifstream inside of the interop API. Do any of you have any id ...Show All
Visual C# devenv crashes (when opening designer)
Hi all, My Visual Studio 2005 Windows Forms Designer crashes when i opens specific form in Designer mode. "The exception unknown software exception (0x40000015) occured in the application at location 0x7813461a." The project was formerly a 2003 project and has been successfully converted into 2005 format. the project is bound via VSS to our source safe database. I had this in the past, which was solved by deleting bin and obj folders and doing a rebuild. But still two forms stay quite hard in this vs crashing mode. I tried to disable and even uninstall the only add-in i had. I tried removing source-safe binding fully. This issue shows up on more than one computers (including a fresh installed xp sp2 and vs2005 pro), so it must be linked t ...Show All
Visual Studio Crystal Reports VS 2005 Not working with ADO.NET dataset?
Hello, For some reason my Crystal Report works fine when I have it connected to an OLE ADO database, but if I point it to an ADO.NET dataset (which works fine elsewhere in my project), the report is blank. Any ideas I know ths question was posted awhile ago but I just ran into the same problem and found out what was causing it. So I figured I would post the solution incase anyone else ran into it. When I set up my dataset connection I unseleted "Use Windows Authentication" and seleted "Use SQL Server Authentication" and since this was a test I supplied the user name and password stored in SQL Server and then checked "Save my password". You will be prompted about the s ...Show All
Windows Forms how to use a webbrowser control
I want to create a windows form that allows a user to "define" fields (i.e. labels and textboxes) for a web page. I then want to use the webbrowser control to display a web page with the fields specified by the user. However, I am not familiar with the webbrowser control. So, can someone tell me how to pass html to a webbrowser control thanks, Dexter Hi Dexter, to pass html to WebBrowser control, use something like: string htmlText = "<html><body>Basic Html</body></html>" ; webBrowser1.DocumentText = htmlText; Andrej ...Show All
Smart Device Development Determining internet connectivity
Hi all, I have pretty much a common question (only could find examples in VB ...). I have a PDA application that needs to synchronise with SQL Server 2005, which means it has to be connected to the internet in order to do so. I'd like to enable the synchronise button only if internet connection is currently available. Does anyone know about a useful tutorial in C# that will allow me to run a thread that keeps checking the internet connectivity or just has some code that is able to check for internet connection on a PDA Thanks! Hi Miroslav, Well... We are stuck with the same issue as yours. But We want to know as to how one can check the connectivity with the IP what was suggested to you.. For you it seem to be workin ...Show All
Visual Studio How to get list of files in a solution?
How can I get a list of all files on which a solution depends By this, I mean all the files which would be required to build the solution on another, new, machine. I'd prefer a method that can create a file containing the list of files. Perhaps a makefile would have this information. Hi, This is an article I wrote that uses a method GetCurrentIDE which returns a reference to the IDE object. From here you can go to the projects and there files. http://geertverhoeven.blogspot.com/2006/12/reference-to-calling-visual-studio-2005.html Greetz, Geert Geert Verhoeven Consultant @ Ausy Belgium My Personal Blog ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Mesh and texture transparent problem?
Hi all, I created mesh.box object with my game. The mesh has a texture. I want to real time change the mesh transparent from 100 % to 80%. How to change a mesh or texture transparent for c# Below is my source code.Hope somebody help. //create mesh object boxMesh = Mesh.Box(renderer.Device, 100,100,100); //========================================== //on paint renderer.Device.SetTexture(0, texture); boxMesh.DrawSubset(0); //============================================ Best regards, Changing texture transparency in real time is too time consuming because it requires locking the texture and modifying each pixels. So the other idea is better : changing mesh transparency. Mesh transparency can be stored either in vertex colors or in a ma ...Show All
