Noli San Jose's Q&A profile
Windows Forms DisplayMember nonaccessible
Hallo Group!! here is my first doubt :) This is the code: VB: -------------------------------------------------------------------------------- If Cont.Controls.Count = 0 Then If Object.ReferenceEquals(Cont.GetType, GetType(System.Windows.Forms.ComboBox)) = True Then <B>Cont.Controls(0).DisplayMember = Selection</B> &nb ...Show All
Visual C# Open file using default handler
I would like to automatically open a file in Winforms at a specified path using the default handler (E.g. xyz.doc opens in Word, jpg in Pbrush etc.). How would you go about this from C# Process.Start, which basically does the same as ShellExecute. http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfSystemDiagnosticsProcessClassStartTopic.asp ...Show All
Windows Forms Getting raw visibility of a control not based on parent form visibility.
Hi all I'm struggling with this one but hopefully its simple. I need to get the "raw" visibility of a control irrespective of whether the parent Form is visible or not. As far as I can tell, looking at the Visible property of a control will always return false if the parent Form isn't visible. Regards Jero That's how Window Manager does it; it checks the parent and child is visible (with WS_VISIBLE flag set). The same also applies to IsWindowVisible API function. If you want to get the "raw" visibility of a control, then I suggest you need to extract the styles of the control, and check ...Show All
.NET Development Populate DataSet from CSV
Hi there! I'm trying to populate a DataSet from a CSV-File. The CSV-File looks like: "Name";"Given name";"Department";"E-Mail";"Telephone" "Test";"Test";"Dep 1";" Test@Test.com";"+49 555 555 555" And my Code looks like this: string strConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=" + System.IO.Path.GetDirectoryName(strFileName) +";" + "Extended Properties=\"Text;HDR=YES;FMT=Delimited\""; System.Data.OleDb.OleDbConnection conText = new System.Data.OleDb.OleDbConnection(strConnectionString); new System.Data.OleDb.OleDbData ...Show All
Windows Forms NullReferenceException in Unknown Module when binding 2 checkboxes.
Hi, I am getting a nullreferenceexception in Unknown Module, additional information: Object reference not set to a instance of an object when databinding 2 checkboxes in my form. This form is a secondary form called modally from the startup form. When I step through the code slowly, I don't get this error, I also don't get this error when I call show instead of ShowDialog. When I comment out one of the binding statements, I also no longer get this error. What am I missing It seems like there is a validation event occuring somewhere but I can't find the actual code that is running Any help would be appreciated. Kevin ...Show All
Visual C# Some question about messagebox
1-How can I write more than one line in a messagebox For example I want to write "Hello" in the first line and "Goodbye" in the second line. And If I can't write more than one line in a messagebox what can I do 2-If I can write more than one line in a messagebox how can I write it right to left shakalama wrote: HI, thats because you has a conditional statment in the messageboxoptions if the form right to left make the messagebox right to left too ( : ) if you want it to be just right to left you can remove those conditions and make it like this MessageBoxOp ...Show All
Software Development for Windows Vista Calling a workflow exposed as a web service (beta 2)
I have an interface with a method that I use in a workflow and I expose this workflow as a web service. Basically, my inteface looks like this: public interface IAddNum { int AddTwoNumbers( int fNum, int sNum); } So, I drop in an WebServiceInput activity, point to the interface and method. I set parameters, and then drop in a WebServiceResponse activity to return the value. Now, I add a seq workflow project to this solution and add a InvokeWebService activity, point to my referenced web service and get the return value. After I run the invokeweb service, I get an error: Cannot detach from one or more proces ...Show All
Smart Device Development deployment
Hi there. I am using cabwizsp (VS.NET 2003) to deploy project cab file for SPV's (ARM devices) I have noticed that not all the cab files will install/run on any MDA/PDA device because of the proc. Currently by default it works for ARM procs (v4). I noticed that there is a switch to specify what CPU type you wish to deploy the files to - I need to create a cab file for the t-mobile MDA platforms. I think it is an intel XScaler proc. How would I deploy it for that type of device using the cpu-type switch any guidance is much appreciated! Thanks! Ilya - signing the CAB file - what is this and how can I do it Or is this one ...Show All
Windows Forms add customized combo box in datagridview
i have my customized combo box found in the other site. i need this to add in dfatagrid view the combox box have multiple columns which i find it suitable for me.for now, the problem is aading it in datagridview heres the my code public class mycombo inherits datagridviewcomboboxcolumn public withevents columncombobox as mtgccombobox ---this mtgccombobox is mycombobox found on the other site ........ end class then in datagrid when form loads dim col as new mycombo datagridview1.columns.add(col) --- the combox box shows but the data inside combo box does not show any missing code in my c ...Show All
Windows Forms TextBox, decimal field and null values
Hi all, As the username suggests, am new to all this- so appologies for what seems to be a silly question... Working on a small application on VS 2005, I've noticed that when binding a textbox to a table ('price') column of decimal value that accepts null values, whenever I erase the contents of the textbox, it gets 'locked' till I fill it back with a numerical value. In the "price" column's properties in the TableDataSet.xsd I've changed the dataType to string and changed NullValue to (empty), which ends with an FormatException thrown since the attempt to convert an empty string (Nothing or "") to decima ...Show All
Visual Studio Getting validation results
Hi, I got some validating rules programmed in my DSL. I want these validation rules to be fired before my DSL user is going to generate code. This is standard behaviour, but here is my problem: I'm starting code generation manually from a menu click. The menu click first saves the instance of the DSL and thus fires the validation rules. But my codegen ofcourse just starts anyway because it doesn't know that there are validation errors. Any idea's how I can solve this problem Can I start the validation engine manually under the menu click and get back the results or something like that Thanks! Gerben [Avanade] ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Specular reflections aren't working right
I'm having a problem with specular reflection. It flickers as I move around my object. Sometimes when I'm looking at a face, and I swivel the camera just a few degrees, I get specular reflection. When I swivel a few more, the reflection is gone - leading to the flicker. But specular reflection is only based on the position of the camera, not the direction it's looking. So it confuses me that swiveling the camera would change the specular reflection in any way, much less so drastically. Also, I find it confusing that I should see specular reflection at all ...Show All
Visual Studio Report based on MS Access query
I have a report that is based on a MS Access query. The query pulls data from 2 linked tables 1 in SQL2000, 1 in Excel (exported from canned app). The report is designed in CR10 and can be previewed correctly. When I try and view the report from a VB app that will be linked to our production software I get the following. "Error rptMaterialAvailability.rpt: The request could not be submitted for background processing." and then the report viewer form is displayed with a blank window. Thanks David Davis I linked 2 Excel sheets and one SQL table in Crystal Report. The problem cannot be reproduc ...Show All
.NET Development .NET 2.0 Interop: What does MarshalAs want from me?
I have an application that has been happily hosting the web browser component and sinking it's interfaces for quite some time now. I finally got Visual Studio.NET 2005 and, rather than getting to experience all the incredible new productivity gains, all I've been is hobbled by new backwards compatibility issues. Here is what one of my current interfaces looks like: void ShowUI( uint dwID, [ MarshalAs ( UnmanagedType .Interface)] IntPtr pActiveObject, [ MarshalAs ( UnmanagedType .Interface)] IntPtr pCommandTarget, [ MarshalAs ( UnmanagedType .Interface)] IntPtr pFrame, [ MarshalAs ...Show All
.NET Development Deploying a Web Service (VS 2005 Beta 2) Problem
Hello, I am having the most difficult time trying to deploy a web service created with Visual Studio 2005, Beta 2. I'm hoping that I'm just missing one small detail and that someone can point it out to me. I have stripped this down to the most basic "Hello World" web service. In fact, all I did for this was create a new web site, ASP.NET web service and left everything as is. Here are the steps to reproduce: 1) In Visual Studio 2005 beta 2, create a new web site, ASP.NET web service and leave everything as is. The HelloWorld web method will work fine. 2) Compile the application/Build the website. Right clic ...Show All
