Brian Chavez's Q&A profile
.NET Development dynamically creating a form when receiving an event
Hi. I have an instant messenger app. When a peer receives a message from another peer, his receive_message event is triggered and I'd like to spawn a new IM window. However, when I do so, it freezes. This class raises the event public class ClientProcess: MarshalByRefObject, IamShtoClient { //This event is used to notify us that we received a message. public delegate void message( object sender, messageWrapper mw); public event message messageReceived; //Raise an event when we receive a message [System.Runtime.Remoting.Messaging.OneWay] void IamShtoClient.receiveMessage(string message, string senderUsername) { if(_debug) log("received message: "+message+ " ...Show All
Visual Studio 2008 (Pre-release) simple type binding
I want to bind a string object to a TextBlock,and I know some sample but it's version is Beta 1,and can't compile now: <Window.Resources> <system:String x:Key="helloString">Hello</system:String> </Window.Resources> <Border DataContext="{StaticResource helloString}"> <TextBlock TextContent="{Binding}"/> </Border> Could anyone help me to translate it to RTM version thanks add this namespace xmlns:s = " clr-namespace:System;assembly=mscorlib " < Window.Resources > < s:String x:Key = " helloString " > Hello </ s:String > </ Window.Resources > < Border DataContext = " {St ...Show All
.NET Development With TableAdapters can I get the connection string from a custom method instead of using the app.config file?
Hello, Is there a way to have the TableAdapter get the connection string from a custom method instead of using the app.config file (and still have the QueryBuilder in the XSD designer work) We are using Typed DataSets and TableAdapters in .NET 2.0. Instead of using the App.Config file we have our own method which returns the connection string. So, I can programmatically say something like: myAdapter.Connection = new SqlConnection(Config.GetConnectionString()); And the code will work just fine (but not the XSD designer). So, there are 2 issues. 1) We have to set the connection every time we create an adapter or we will get a runtime error (I could live with a compile time error, but ...Show All
Visual Studio 2008 (Pre-release) Complex Return Type Error
In my system, I have a DTO that simply holds a bunch of data: public class OrderView { private int _orderId; private string _customerEmail; private decimal _orderTotal, _taxTotal; private BindingList < QuotedGroupView > _quotedGroupViews = new BindingList < QuotedGroupView >(); private string _salesperson; private OrderStatus _orderStatus; //... then we have a bunch of properties that are either calculated or getters/setters for the above properties } Simple enough, right I tried to create a service that passed around this DTO: [ ServiceContract (SessionMode = SessionMode .Allowed, CallbackContract = typeof ( IPendingOrderSubscriber ))] public interface I ...Show All
Windows Forms Working of FindWindow()
HI, Can anyone tell me , how FindWindow("className","DialogName"), works when i use this function with modalless dialogs.................i,e N number of dialogs.....are opened....with same caption then how findwindow() will get the handler to the particular......dialog............THNX in Advance,Sudhakar. hi.............which declaarations are bad.............and wat made u worry about the future.........of MSF T................can u be clear ...Show All
SQL Server How can i determine the Queuing_order of a conversation?
Hi There Is there a DMV or something in the system that can tell me what the current queue message number is for a conversation. I would like to determine what the message queue_order number for a message is before or after i send the message, as i would like to log this information Thank You Hi Remus Thanx that is what i thought just wanted dto be 100%. Any comments on my previous post " Originally i was sending messages in a unique dialog, but what i found was that sometimes the messages from the second dialog where received first , therefore i changed the SB application to use 1 persistent dialog so that messages ordering was garanteed, basically what i am saying that when ...Show All
Visual Studio Express Editions How can I create a template in Visual C++ 2005 Express Edition?
The file menu doesn't have the "Export Template" option. Is there any other easy way to create a template in Visual C++ 2005 Express Edition Have a read of these articles, i hope they help: http://blogs.msdn.com/johanl/archive/2005/04/18/409294.aspx http://jasonkemp.ca/articles/206.aspx ...Show All
Visual Studio Visual Basic Debugger Crash
I have just recently installed Visual Studio 2005 and in my GUI Design class we have opted to use Visual Basic. The problem I am having is that whenever I try to use the debugger by setting a breakpoint, everything goes well until I actually reach the breakpoint. When my program reaches the breakpoint, everything freezes up. I am unable to force quit the program or Visual Studio, or alt-tab to any other applications. The only thing I am ever able to do is bring up the task manager with ctrl-alt-del, but I am unable to kill processes or anything from the window, as it too freezes when I click on the window with the mouse. This is on a fresh install of Visual Studio 2005 on a fresh install of Windows XP Professional SP2. I have all the updat ...Show All
Gadgets I need help.
I tried making a sidebar gadget recently. I used codes from JavaScriptKit.com to do so. Everything went well untill I tested it out on my computer. A screen popped up saying "This is not a valid gadget packet." I'm pretty new to creating gadgets, so what does this mean, and could someone help me make it real Here's my code: <body>The Date is:<script> /*Current date script credit: JavaScript Kit ( www.javascriptkit.com ) Over 200+ free scripts here! */ var mydate=new Date() var year=mydate.getYear() if (year < 1000) year+=1900 var day=mydate.getDay() var month=mydate.getMonth() var daym=mydate.getDate() if (daym<10) daym="0"+daym var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday"," ...Show All
SQL Server Passing array to stored procedure
Can some one tell me the way to pass Table or Array or list of values to stored procedure [Note: I already know some ways which are not useful in my case: - By passing a list of values separting each with a delimeter like comma(,) - Using XML ] Any other way Please, its urgent Thanks in advance A simple row can be passed using a comma delimited string and splitting this on the server to the appriopate values. For more than one row you would have to use a more sophisticated funtionality. The lat option would be to use something like a materialized table, as the previous poster already mentioned. HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Windows Forms Cannot get changes from DataGridView
I am having problems getting the changes from a datagridview. The grid is bound to a dataset. Here are the steps I'm taking: 1. Type text into the first cell 2. Click the save button on the form, which calls: Private Sub SaveChanges() Dim dsChanges As DataSet = dsFlightInfo.GetChanges() ' make sure their are changes to commit. If dsChanges IsNot Nothing Then ' save changes to the database Dim odb As New ABMS.Data.DataSetIO odb.Update(dsChanges, "FlightSchedDetail") odb = Nothing End If dsFlightInfo.AcceptChanges() ' reset the save buttons btnSave.Enabled = False btnCancel.Enabled = False End Sub PROBLEM: dsC ...Show All
Visual C# Running C# Commands from a parsed text file?
Is it possible, say you have your main program, and when it initializes, it will scan this text file, looking and trying to execute all commands that are listed, like running a method inside the program, or if you put MessageBox.Show("",""); In the text file, or is there another way of doing this, I'm not going to make the program only understand commands that I put in it, through a switch statement, or if statements, I want it to directly interpret it. I think I made up my mind, im just going to have preset 'hooks' that are attatched to preset events, and the hooks will be represented by textfiles, that actually do the work. BUT.... A huge problem I just realized, the program th ...Show All
SQL Server SSIS and SAP BW link - How to call OLAP BAPI?
Hi, I'm trying to link SSIS (Microsoft SQL Server 2005 Integration Services) with an SAP Business Warehouse to extract data from a QueryCube. I'm thinking about using the OLAP-BAPI but I don't know how to access it via SSIS. Are there any ideas or comments how to accomplish this Thanks in advance! Markus Thank's for the link. I've been on the page before but I thought there are other ways to link to the Business Warehouse too. The issue with the ".NET Data Provider for mySAP Business Suite" is the fact that it needs two RFCs on the server. On most installations it won't be possible to install RFCs "just" for data extraction. Currently I'm on the X ...Show All
Community Chat Developer Solutions team needs you! Well your ideas anyway...
Hi everyone, I'm a PM on the Developer Solutions team (I work with Joe), and I need some input from you all. I'm putting together a roadmap for some of our future Power Toys work, and we need some good ideas. I've posted about what I'm looking for over on my blog so if you're interested in helping us out, pop on over and check out my post. Thanks in advance for all the great ideas I know you'll send us. :) -Jeremy Kelley I think it would be great to have a util that allows us to customize SSMS's interface. Why do I always need two clicks to expand properties far enough to set a column to identity in the diagram modeler When I'm starting a new DB, that's a LOT of extra clicks! edit: also, ...Show All
Smart Device Development Home screen plugin for smart phone
I want's to make a smart phone home screen plugin in which my application[which is a C# application] shortcut icon appear on the home screen. I have make a today screen pulgin for this purpose for pocket pc.But I think home screen behavior is little bit different. In pocket PC I add the registry entries in the HKLM\Software\Microsoft\Today\Items\.... But Like Pocket PC I can't find the registry entry for Home. What I want's is the home screen extension that if user change any of there home screen this link should remain same on each screen thanks oysts it really helps. One thing i want's is to set my pugin in all the existing home screen xml files. And also this sample is for the older version of windows mobille Could it also w ...Show All
