Debendra Modi's Q&A profile
Visual Basic Error Message that I can't resolve...
I am fairly new to writing in VB and in reality it is actually my first true language that I am trying to learn. I am currently writing a small application for where I work that will be used internally by only a couple of people. The purpose of this project is to record and maintain records for troubleshooting calls. This is in essence a CYA (cover your *ss) ploy that also helps us maintain with compliance rules. So essentially what I did was create a small program that would refernce back to a database out on one of our servers. This was supposed to be something that I assumed would be very easy, and at first it did seem to be working properly. Now I have run into a problem that I do not have a solution for. The following is the error I g ...Show All
Visual Studio 2008 (Pre-release) Callback and exceptions
Hi, Can I send an exception to the cliente when I use a callback I have a duplex communication with a callback, therefore my services are IsOneWay=true, why my services don’t send an exception Example: [IsOneWay=true] void CreateUser(User user); if the service create a user, all clients receive the notification of a new user, but if the service has an exception (the user is not valid) How do I send this exception thank you Thanks for clarifying, that's what I meant when I said OneWay can't throw faults, but I realize that my second comment about wrapping FaultExceptions for Request/Reply might have been confusing... ...Show All
.NET Development Problem inserting data to SQL
well here is my code of ISERT in C# =========================================== InitializeComponent(); SqlConnection coneccion; coneccion = new SqlConnection("Data Source=sagara\\sqlexpress;" + "Trusted_Connection=yes;" + "database=Hospital; "); SqlCommand orden; string q = "INSERT INTO prueba (nombre, apellido) VALUES (@txtNOMBRE, @txtAPELLIDO)"; orden = new SqlCommand(q, coneccion); orden.Parameters.Add(new SqlParameter("@txtNOMBRE", SqlDbType.Text)); orden.Parameters["@txtNOMBRE"].Value = this.txtNOMBRE.Text; orden.Parameters.Add(new SqlParameter("txtAPELLIDO", SqlDbType.Text)); orden.Parameters["@txtAPE ...Show All
Windows Forms Yahtzee game: see the dice's rolling.
Hello, I've just made myself a yahtzee game that contains 5 dices. Now I want to see the dices rolling if I push the "throw" button. I've already got a random but u don't see them letteraly rolling. Anyone can help ...Show All
.NET Development What is the best approach for mapping external data? Any ideas?
Hi all: My boss and I are having discussions on what is the best way to migrate data from one (unknown) database to our database. Let me explain: We are looking to develop an application that should be able to attach to any ODBC database to grab data or individual records and import them into our database. Here's the problem, we may be unfamilair with the database or how the tables are laid out, we don't know where the data is located (up to their DBA), it could be normalized where our database or table is not, etc... I wanted to have the DBA for the database we are attaching to create a view of some sort or "export" the data into a specified format and then our application just do a field-to-field read into our da ...Show All
SharePoint Products and Technologies Cannot Access _layouts on sharepoint
I have been working on our Sharepoint Server with Project Server 2007. We are using this as a test platform and will probably be purchasing the software and server in the near future. Here is the background then onto the problem. We have 2 distinct forests and had problems getting people in forest1 able to access the server in forest2, even though we are planning on everyone migrating to forest2 in the coming months the powers that be decided we would not be migrating the test base to the new forest yet. While working out the problem, I somehow locked myself out of being able to use any file in the _layouts directory. So things like Site, People and Groups, Site Hierachy, Personal Settings & Server Settings all fail with the ...Show All
Visual Studio Tools for Office publishing excel values as HTML using VSTO
Hi, I have a C# VSTO application that grabs values from database and display reports in Excel showing market positions and Profit Losss figures. Does VSTO provide any functionality to display some of those calculations as HTML so that these figures can be viewed on company intranet that way not everyone in the company needs to have this excel sheet running all the time..user can simply view relevant figures on HTML. Thanks, Thanks, great..that was easy.. I saved the worksheet as HTML and selected the "Add interactively" option. My Excel worksheet keeps on updating every second or so..its almost real-time...but the published HTML does'nt get updated itself even though I selected publi ...Show All
Visual Studio 2008 (Pre-release) Serialization of an Image Type in .net 3.0
The image property (Decorated with [DataMember]) of an entity is in a custom collection. How to serialize an image using [DataMember] and send it across WCF service. Please give insight on the same. . The .NET Image class is an abstract class; its two subtypes (Bitmap and Metafile) are serializable on WCF - you should be able to serialize them as is. The thread at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1033270&SiteID=1 contains more information about serialization of images. ...Show All
Software Development for Windows Vista SQLPersistence not persisting Properties of my state machine
Hi, I'm having a statemachine to wich I pass the parameter normally , that I can retrieve through the proper Property within my state machine.... But that param is not persisted in sql (property value is null)..... Any idea Do I have to decorate my property with some attribute (like Serializable ). Many thanks. Fred - The Global Fund Sorry about that. You will get these samples if you will install Windows SDK http://www.microsoft.com/downloads/details.aspx FamilyId=7614FE22-8A64-4DFB-AA0C-DB53035F40A0&displaylang=en ...Show All
SQL Server Custom Data Flow Component Column Mapping Question
Hi, I'm having my first go at developing a destination adapter which will send data to an update Web Service. I've got some rather big gaps in my understanding. I've been following the various samples I've found on the net and have validated my mapping and picked up all the available column names and datatypes which are appearing in the Input and Output Properties tab of the Advanced Editor but I only have a tab for "Input Columns" and not "Column Mappings". Which method defines the availble columns for the user to map Let me know if I haven't given enough information. cheers sorry - I had searched already but somehow missed this post which answered my question: http:// ...Show All
Smart Device Development Display sort indicator (Up & Down Triangle) in datagrid column header
Does anyone know how to add sort indicator (up & down triangle glyph) in datagrid column header I'm using C#. Please help, thanks in advance. You might try handling Paint event on the grid and drawing these indicators as needed. ...Show All
Visual C# How do i use keyboard shortcuts and use cut, copy, paste, and undo?
Can someone show me a couple lines of code to make shortcut keys. Also it would be handy if someone can show me how to write some code to use undo, cut, copy, and paste. Thanks. well the cut/copy/paste is usually in the Control that is TextBox based... this.theTextBox.Paste(); this.theTextBox.Copy(); //you need to set the selectionstart/selectionlength properties so it can copy it from that. in regards to shortcut keys - in what sense The standard Windows shortcut keys for cut/copy/paste still apply even for your app as they are standard Windows shortcut keys. Otherwise to make your own I guess you need to implement the keydown event of the control and check the KeyEventArgs for which key they pr ...Show All
Windows Live Developer Forums Polylines cover pushpins -- can the pushpin be put on top?
How can the pushpin be put on top of the polyline <html> <script src=" http://dev.virtualearth.net/mapcontrol/v3/mapcontrol.js "> </script> <script> var map = null; function GetMap() { map = new VEMap('myMap'); map.LoadMap(); map.HideDashboard(); map.SetZoomLevel(10); } function AddPin() { var pnt = new VELatLong(50, -100); var pin = new VEPushpin('pin1',pnt,null,' ',' ',' ',' ',' '); map.AddPushpin(pin); } function DrawLines() { DrawPoly('Line1',[new VELatLong(50,-99.95),new VELatLong(50,-100.05)], 7, new VEColor(50,200,50,1)); } function DrawPoly(id,points,width,color) { poly = new VEPolyline(id,points); poly.SetWidth(width); poly.SetColor(color); map.AddPolyline(poly); ...Show All
.NET Development Appending to the byte array
Hi, A Novice here. I am converting the unicode character into its integer value and converting it to a byte array. I want to append this array to my existing byte array Eg: Dim byffer() As byte Dim myString as String = "abcd" Dim I as Integer = 0 While I < myString.Length Dim charValue As UInt16 = Convert.ToUInt16(myString.Chars(I)) Dim temp() as byte = System.BitConverter(charValue) 'buffer = buffer + temp <--- How to do this part I += 1 End While Thanks in Advance, Noorul Dim buff(ByteList.Count - 1) As Byte should take care of it. Remember that the number you specify is the upper bound of the array, not the number of elements. But it's easier to just call th ...Show All
.NET Development What happens to original reference if I upgrade .NET assembly?
Hello, I have 2 projects (front-end and business code) front-end is referencing business code project. I install business code assembly into GAC. If I update business code project later on and change version number on it, recompile it and put into GAC which version of assembly my front-end application will be using The one which it was compiled with or latest one in GAC How do I control this Yes when you reference a project it will use the output from the build process rather than a specific file version. Michael Taylor - 10/13/06 ...Show All
