Jemini Joseph's Q&A profile
Windows Forms Help! Design Time Databinding With DataSets in VS2005
Hello, I have used VS2005 to create a strongly typed dataset by dragging and dropping onto my Windows Form. I then used TableAdapters & BindingSources in the designer to bind the data to my form. I now want to create an instance of the DataSet programmatically, and be able to bind to that object at design time. For example: class Test { /*MyDataSet is a strongly typed DataSet created by the Win Forms designer.*/ private MyDataSet m_AppData = new MyDataSet(); public MyDataSet AppData { get return m_AppData; } } I am a ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Mech commander 2 question
i built the MC2 project and decided to play it all the way through. i bought the game in ages past and love it, so i wanted to play it again before i dive into the source code. there seems to be an issue with the mission 17 .abl file. it crashes with an error about fadetocolor at line 755 having an integer out of range. i looked at the numbers in the mission file and they were within a normal long int range. i changed them to be within a short signed int range just in case, but that didn't help. has anyone else seen this problem my appologies if this is the wrong place for this question. Yeah i ...Show All
Windows Forms new listing contacts in a list box from outlook.
I was able to do this with no problems in vba. I am using vsto 2003. I will not be able to upgrade. When I run the code below I get an error. It stops about a quarter of the way through the contacts. I am guessing it is trying to load something that techically is a contact, but isn't a type string. I would like to use error handling to skip over this contact and move to the next one. or help me figure out a way to filter whatever variable type is causing the error out. An unhandled exception of type 'System.InvalidCastException' occurred in Unknown Module. Additional information: Specified cast is not valid. Private Sub ...Show All
SQL Server The 'A request to send data to the computer running IIS has failed' Exception
Hi guys, When I do the RDA process, this weird problem comes out. I don't think there is any problem with the connction between the SQLce Server Agent and SQL Server agent. Everytime I run the RDA process, it looks like it is waiting for the time out of the connection. And If I cancel this process and rerun it, it works out and seems there is no problem at all. The conclusion is that, if i start the RDA, 20 or 30 minutes after a previous RDA process, this exception is definitely coming out. BTW, the HResult in the exception is -2147012867. Help...... Cheers, Justin Hi Justin, Seems like as if the previous RDA did not rele ...Show All
Visual Studio Pervasive SQL
I'm having trouble connecting to our Pervasive database (V8.6) in Visual Studio .NET 2005 Beta 2. I want to get some info from the database into a drop down menu. These are the steps i'm taking. 1) Selecting the box for the drop down menu (ComboBox), in the properties select DataSource then Add Project Data Source. (Do it this way so it makes the data set as well) 2) Select Database - New Connection - Using ODBC select our Database (CHAHO) - Test Connection (OK) 3) Click next and leave the name as connectionstring1 - Select the required table and leave the name as dataset1. 4) Then i get the following error:- Some Updating c ...Show All
Visual Basic Printing Crystal Report To Server Printer
Hello, I developed a ASP 2.0 VB.net 2005 application on my local machine to print a crystal report to a printer on the server and everything worked fine. The problem is now I moved it over to our main web server and it's not working anymore. When I call the PrintToPrinter function it returns an error saying "No Printers are Installed". I have the same printers installed on the server as I do on my local machine. I ran a quick script to have the page so any installed printers on the server and none show up. Any ideas on what I need to do Thanks! ...Show All
Visual Studio Custom text markers in VS2005 beta 2
Hi All, We have a weird problem with custom text markers under VS2005 Beta 2 (8.0.50215.44). <br> Our AddIn registers about 30 custom text marker types. We tested it under VS2005 and, seemingly randomly, some of them work and some do not. What happens is that markers do appear in the editor (tooltips are showing, for example), but they have wrong colors (not what our implementation of IVsPackageDefinedTextMarkerType says they should have) <br> We investigated this problem, and this is what we have found so far: <br> 1. When we remove all registered external markers (all entries from 'VisualStudion\Text Edito ...Show All
SQL Server WSDL Support in WebService Task
I have a wsdl file that SSIS says it doesn't support. What aspects of WSDL does SSIS not support. I can send the WSDL file to anyone that wants a copy, just use the contact me on my blog. This occurs with the webservice for the reporting services as well It looks like a bug. The problem is in the method CreateReport , and it's because of type of the parameter Definition . Looks like base64Binary data type is not suported by us, but that should not prevent us from enumerating the methods exposed by a webservice. HTH, Ovidiu ...Show All
Windows Forms Accesing a form from another one
I have created a VB .net 2003 application with a main form and 3 other forms that sould be called from several place in app code. The problem is that if i use the "myform = new Allready_defined_formed" in every form which wants to use that form, i have each time a new instance of the form. So how should i do to have the&nb ...Show All
Smart Device Development Numeric Up Down Focus() Doesn't work
When setting the focus via numericUpDownControl.Focus(), the focus property is set, yet I can't type anything into the control. Using click etc to set the focus works (when manually clicking...) How can I set the focus to the control so I can type manually Thanks! ...Show All
Windows Forms How to reduce the form transition delay ?
I'm currently working on this app with over 40 different forms: None of the forms have titlebar/controlbox and are set to maximize - so they cover up the whole screen area inclding the taskbar. Now my problem is: my forms suffer a significant time lag when I switch from one to the other (and believe me, it's necessary for me to have so m ...Show All
Visual Basic Function parameter passing and objects
What is best practice for passing objects as parameters to a function I have a class that receives two objects which will be used for calculations. These objects are going to be used throughout the class so what I had done is instantiate two class objects of the same type and set them equal to the ones being received from the function 'Declaration dim InternalTotoObj as TotoObj dim InternalTotiObj as TotiObj function SomeName (curObj1 as TotoObj, curObj2 as TotiObj) as AnotherObject internalTotoObj = CurObj1 intervalTotiObj = CurObj2 'Some calculations return AnotherObject end function The problem is see with u ...Show All
SQL Server Column-order an access speed?
Is there any truth to this: the placement of fields in a table relates to field access speed. So, frequently accessed fields should be placed in the beginning of the table while fields infrequently used can be placed toward the end. TIA, Barkingdog I agree with Euan. I do think that his is just nit-picking in performance optimization. Being on the battleground in my consultant work I always see that the most optimization regarding indexes and writing queries was not considered by the customers. *If* this *should* get you a performace gain, this should be that small you you probably will not feel th ...Show All
.NET Development graphics Override
can the graphics object within the printdoc object be pointed to other graphics object already build. For example can pass the pointer of me.creategraphics or the richtextbox.createbox to a report You should change your approach... Don't use creategraphics. Draw into a bitmap instead. If you are updating the drawing frequently then draw the bitmap to the control or form in the paint event. You can trigger the paint event with control. refresh, or control. invalidate. Invalidate lets you specify the area to redraw - you use this to speed things up. If you are not updating it frquently, then use a pict ...Show All
Visual Studio Express Editions Header Problems
Hi, I was experimenting with DirectX and the PSDK, when suddenly when I attempted to compile the solution I recieved an error about the compiler complaining about the syntax of one of the PSDK files!! Is this a bug in my code or is there really an error in the PSDK libraries, which i find unlikely. Any ideas Thanks, Mike You probably forgot to include a header file. Shows us the error message and the list of #include statements and we might give you a more accurate answer. ...Show All
