Daniel Danilin's Q&A profile
Visual Studio Auto Add Child Elements
Hi, In my DSL I have an entity called "Component" which has two childs "Implementation" and "Contract". I created a domain class and a shape for each of these logical entities and a tool for adding a Component. I now want to have 'Contract' and 'Implementation' added automatically each time I drag&drop a 'Component'. I tried to create them by overwritting the Component constructor, unfortunatly this causes side effectes and the childs are created several times. Furthermore it would be cool to have them positioned right beyond the parent (component). Can anybody give me a hint on this thx alot cheerio Silvan Hi SilvanG, If you're only creating your Components from the ...Show All
Smart Device Development Is it possible to build a db program without Activesync?
As title, I need to build a project without Activesync. But how to update the DB file with the DB server Can I use USB connection the share the local computer connection (so that i dun need to build wi-fi network). But in that way, can i connect with out activesync I understand it is possible to change the setting on Pocket PC emulator to share the internet connection with local PC, but how about real Pocket PC device Please help If you're not using AS it's best to forget about USB connection. Consider it useless unless there’s AS on another side to back it up. It might be somewhat functional under WM 5.0 but not as functional as with AS. If you have Wi-Fi (or any other TCP/IP network) Pocket ...Show All
Windows Forms Spalsh Screen
Hey, In in properties of a project how do you select what form you want to be a splash screen I used the help in the compiler but I could not get an answer that worked... Thanks :) Yeah, I have the correct code setup nice and neat for posting in this thread, but I think I will give him a day or so to see if he can figure it out. It would help him build on his problem solving skills. :) ...Show All
Visual Studio 2008 (Pre-release) What I would like to see in ADO.NET 3.0
Hi; I think the following would be a gigantic help for a lot of people (all being standard calls so we do not have to write selects on a per vendor basis): Enumerate servers works for all ADO.NET clients (ie - it's a required feature). For a given server - enumerate all databases (schemas in Oracle's case). For a given database/schema - enumerate all tables, views, and stored procedures - can filter by user vs system ones. For a table/view - get all columns. Get an autocreated primary key from an insert. Create a connection string form standard parameters (server, database, uname/pw or truested). Run a script (to create a database, etc). The script would be vendor specific but being able to ...Show All
Visual Studio Express Editions Database Connection
Hi, I am making an application that needs to connect to an sql database, using the database connection wizard, on a remote server. When i type in the path of the database it comes up with a message saying "Attempted to access a path that is not on the disk". How would i connect to this database I am putting in the database file name the path of it http://the path of the database/database.mdf . I am leaving the server login fields blank. Please note that i am not using code to do the connection, i am using the database connection wizard. The database is stored on a remote server (I canot change any server settings.) ...Show All
Smart Device Development update UI from Thread - control.invoke or controlinvoker?
This is a CF 1.0 application. I need to load an image in a background thread and use it in the UI thread. I'm a little confused. There have been tutorials that have the background thread write to a public variable in the Form, then Control.Invoke when they're finished to have the UI thread update the form. (No locking). This looks very simple, I'd like to do it this way. The following is the way the tutorial described - the thread writes directly to the Form, but not to any control on the form. Is that "legal" public class MainFrame : Form { private int progressBar1Status = 0; public MainFrame() { InitializeComponent(); DoThreading(); } public void DoThreading() { Thread t = new Thread( ne ...Show All
Smart Device Development Configuration Service Providers
Hi, is there a way to programmatically list the available configuration service providers in the mobile device best regards This forum is primarily monitored by Visual Studio for devices group. Please check this link for more appropriate forum for this type of queries. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=286724&SiteID=1 Thanks Srikanth Bogadapati ...Show All
Windows Forms How to retrieve data from formView?
I've a formview which including 2 textbox ,I want to retrieve data from these textbox in run time. is it possible I tried these ... FormView1.FindControl(f_nameTextBox); FormView1.Row.FindControl(f_nameTextBox); FormView1.Page.FindControl(f_nameTextBox); all of above all shows error message like this " 'f_nameTextBox' Not exist in this conatain... why " thanks I failed to mention that you need to make sure of the control.currentmode and that the findcontrol statements must reference the name of the control for the mode. if (fvEditSoftware.CurrentMode == FormViewMode .Edit ...Show All
SQL Server Format parameter date
Hello My problem is with parmater format date, when i input for example the date format yyyy/mm/dd and then press in boton view report this foramt change to dd/mm/yyyy, this succed in all machines with all configuration in the regional configuration. When i change this format in th configuration of reporting services. Thank you Are you setting the various lanuage settings for Reporting Services These settings are very configurable. See the following link for more information. International Considerations for Reporting Services: http://msdn2.microsoft.com/en-us/library/ms156493.aspx ...Show All
Visual Basic how can i do with " in vb
how can I do with " in vb , I want replace " to & email:huangzhixing@hteb.com In practice I believe that one should interact with objects directly whenever comparable functionality is available. Why ask a function to do a replace on an outside string when you could ask the string to do it itself It would be like looking up someone's phone number whom you could ask directly. On the note about "typing too much hurts my feelings": variable.Replace(oldText, newText) requires 1 less character than Replace(variable, oldText, newText) and the latter doesn't even give Intellisense. in all fairness the OO syntax is really just syntactic sugar over the procedural (so to speak). However there are a few ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 360 Boat game with source
Hello I was playing about again the last 4 days and come up with a little boat game for the 360. The source code is very untidy but there might be something of use in there for some people. It was written for use on the 360, it might work ok for the PC. You can have 1 to 4 players and it uses some ai for the others. There's only 1 track at the moment - I may get around to fixing it all up into a proper game if there's enough interest or if an artist wants to help out. It plays a different sound effect when you cross the line and beat your own best score. My best lap is 8.07 (no down to a 7.96) seconds. Best to use a 360 pad but here's some keys if you feel the need. Q and E change the number of players ...Show All
.NET Development Need some advice on how to approach this problem (web service calling C# application methods)
Hi everyone, I've been working on a solution to this project I was assigned, and after working on it for a couple days I thought maybe I was approaching it the wrong way. Basically what I need to do is to get a web service to access an a method or two on a locally running C# Windows application (Like for example have the web service send a string to an int method on the C# application). The way I have approached it thus far is by having the application register itself with the ROT, and then attempting to grab it via Monikers, etc. I've moved along pretty far with it thus far, but then thought that it could possibly be easier by creating a COM server/client type thing, with the C# application being the server and the web service being a "te ...Show All
.NET Development Could not find installable ISAM
when i am trying to connect to Excel form Visual Studio 2005 i am getting an Error : "Could not find installable ISAM" Statements are: OleDbConnection con = new OleDbConnection ( "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + m_SourceFileName + ";Extended Properties=Excel 10.0;" ); con.Open(); Can Any body Help me we are already using WindowsXP Sp2. does it need to install latest service pack for Jet 4.0. Regards, Sachin ...Show All
.NET Development Connect to Access DataBase with ADO .NET
I need help, or an example, of how connect and work with a Data Base with ADO .NET. I've seen de sqlclient, but i don't need to connect at a sql server, i've my own database in my computer. is everything in the same way that in old ADO or is a special change thanks a lot! Yes ADO uses the Recordset while ADO.NET uses the DataReader, DataSet, DataTable, etc. Yes ADODB (or ADO) was the technology designed for OLEDB. If you want to use some of the GUI tools I would start with the below article and follow the links: Data Source Configuration Wizard ...Show All
.NET Development problem converting PDF to Xml
Hi all, I am trying to convert the PDF document into xml document while I converting the document some of the characters(fi ,fl ,ff,(,) ,<,>,--> ;) were not properly converted. Is it possible to solve this problem , if we can could any one plz tel me how can I convert to xml same as PDF content. Thanks, ram krishna Joe thanks a lot for your early replay im trying to do this simply open the PDF document and I make it saved into as a .xml format. If the word like “first“ in pdf document ,its displaying like ” rst “. Where ever the fi,ff,ff,<,>, is their that symboles replaced with "box" symbol . here are the some of the examples what i am getting in xml: differen ...Show All
