Jakobsgaard TDC's Q&A profile
Software Development for Windows Vista Various comments on Default application projects
I've been playing a bit with beta 1 and beta 1.2 and there are a few things I'm not very comfortable with in the default code generated when you create a new Workflow project (C#). For example, the default exe projects (e.g. sequential workflow console application) have absolutely no error handling at all. Now, I'm assuming that many people might just fail to notice this and either use the generated code in Program.Main as is or with little modification, in which case their workflow projects will simply hang in case of an unhandled exception inside one of the workflow tasks, with no indication of anything that might have happened. This is b ...Show All
.NET Development Moving in Binary File
Hello I am reading data from binary file ,some of this data is string and some is images and the length of some of this data is saved in many places in the file I need a way to move back in the file i use the Seek method with the StreamReader to do that when i read text files but there is no Seek method for the BinaryReader Any body can help me . When you create a BinaryReader object you give it the steam with which to use. You can use that Stream to seek backwards. If you didn't keep a reference to that stream you can use the BinaryReader.BaseStream property. Example int i = reader. ...Show All
.NET Development Problem in creating RAS -VPN Connection Class
Hi everybody, I found this code but unable to make it work. I like to create a Remote access service using VPN Network connection in order I could interact with remote database. I like to created a fixed link to a remote server with default username and password. With this code, still unable to connect to remote server as verified if internet connection is ok. Is there anyone who can help me fixed thia problem I need help. Thanks. This inside main class [code] public void Dial() { if(_Handle!=IntPtr.Zero) { RASCONNSTATUS status=new RASCONNSTATUS(); ...Show All
Windows Forms how to create simple IDE? - from Where to start ?
hello every one ... i need some guidance .. i need to develop simple IDE which can hold my custom control & generate xml tags against it like vs.net does when we developing asp.net applications. i know its not that easy.. just need to know from where to start what keywords to search any book out dere what need to be learn to develop these kind of IDE i know how to develop custom controls .. need info about creating IDE .. is dere any free open source IDE out dere so that i can look at it any resources & links would be highy appreciated hoping for the reply soon Kamran Sorathia Thanx guy ...Show All
Windows Forms Security Application Block
Hi All, I have a centralized db containing all sales figures for instance of different division. My existing applications have set of tables to maintain the relation of users and their accessible division(s) to ensure that users can view the sales figures of appropriate divisions. Now, I am going to rewrite the app. with .Net. How can I centralize these ac ...Show All
Visual Studio Adding a new toolbar into a ToolWindow
I have a working Tool Window developed using VSIP 7.1. I want to add a toolbar to it that mimics actions already defined in a top-level menu. I have read through a bunch of postings to this thread talking about manipulating the toolbar once it's there, but I cannot figure out how to get in the plugin in the first place. I have the CTC group and commands, as well as a something that I thought could lead to a toolbar: MENUS_BEGIN menuGrp:IDM_MAIN_TOOLBAR, menuGrp:IDM_MAIN_TOOLBAR, 0x0000, TOOLBAR, "name", "name"; MENUS_END NEWGROUPS_BEGIN menuGrp:IDG_MAIN_TOOLBAR, menuGrp:IDG_MAIN_TOOLBAR, 0x0100; NEWGR ...Show All
Windows Forms Unable to view designer in vs2005 c#
I am trying to get some help with a very strange problem. When I opened up vs2005 today my form designer would no longer work and caused vs to crash. This happens on all projects, even newly created ones. I have tried reinstalling vs, but the problem persists. If anyone has seen this problem or knows how to repair vs I would be very happy to hear from you. Thanks. DC. Disable that the toolbox become populated automatically. Delete All bin and obj folders Go to VS2005 command Prompt (Start menu|All programs|Microsoft Visual Studio 2005|Visual Studio Tools Start DEVENV with the parame ...Show All
Visual Studio 2008 (Pre-release) Don and Anders first example not working
Am I missing anything This is my code: static void Main( string [] args) { string [] names = { "Seba" , "Viviana" }; IEnumerable < string > expr = from s in names select s.ToUpper(); foreach ( string item in s) Console .WriteLine(item); } And I get compilation errors You have the Using statements correct, but is the custom build action set I don't have my LINQ build handy to check it at the moment. There is one bug in your code. On your iterations to print the results to the console, use the following: foreach (string item in expr) Your variable that you ...Show All
Visual Studio Express Editions Mdiparent - Is this bug solved?
I've an mdiParent (maximized) with X children (maximized). The mdiParent contains a menustrip. I load the children into the parent. The first time when I load a child into the parent, the menustrip hides a part of the child. When I minimize the parent and then maximize it, the position of the child is correct (below the menustrip). The same problem: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=180826&SiteID=1 Please do not post duplicate posts. If your question has not received any replies it is most likely because nobody that can give you an answer has replied to it yet. Have some patience. Your other p ...Show All
Visual C++ STL\CLR serialization & containers
Will the containers within STL\CLR support the Serialization attribute Im using the alpha verisons and when i try to serialize a vector i get the following error message: Failed to serialize. Reason: Type 'cliext.vector<FunctionBase ^>' in Assembly 'Runtime2, Version=1.0.2161.21524, Culture=neutral, PublicKeyToken=null' is not marked as serializable To continue must i now implement the ISerializable interface and serialize the items myself I have to say that I am not even sure on what version of STL/CLR you are looking right now. :-) I assume you are talking about STL/CLR in Beta 2. You cle ...Show All
.NET Development Adding rows to table in Dataset
VB 2005 express beta 2 I've set up a dummy project to learn how to insert rows into a database, and i'm having some trouble. You'll see the naming convention right away.... Here's the code that looks like it should work... the warning that pops up is that the variable NewTestRow is used before it has been assigned a value. i want it to be a new row in the table, but can't figure out how to set it as a new row. Private Sub TextBox1_Leave( ByVal sender As Object , ByVal e As System.EventArgs) Handles TextBox1.Leave Dim NewTestRow As TestDataSetDataSet.TestTableRow NewTestRow. ...Show All
Visual Studio Express Editions changing col header names
Does anybody have any success in changing the column header tesxt for each column somthing like DataGridView1.CurrentCell = DataGridView1.Columns(1) DataGridView1.CurrentCell.Value = "File Name" which does not work any ideas PS in VB2005 hi, you can do something like this colName.HeaderText = "Employee ID" select your datagridview and go to properties , select collection property click the small button that appear beside it then you will see your columns that you use and the properties for each column hope this helps ...Show All
Visual C++ Opening files
Is it possible to open explorer.exe in C++ If so, how. Use the system functions. E.g. system (notepad.exe) should open notepad.exe. for more details, search for the system method on msdn.microsoft.com Thanks, Ayman Shoukry VC++ Team ...Show All
Visual Studio 2008 (Pre-release) database support
Hi! Will LINQ support database providers other than sql server Actually, I didn't ask -- someone else did. But I *was* wondering when a Mono-affiliated project was going to be doing something with this, aside from the XLinq classes that were whipped up during PDC. ...Show All
Visual C++ How to display a jpg image on a MFC dialog form
Hello, i'm using Visual Studio 2003. In a MFC dialg form i should show a jpg image, so i added a Picture Control; then in Resources i tried to imported a jpg image (in dialogbox window many files extensions are supported, like jpg,gif,png,etc...) but i noticed i can only import BMP file (with this file format in fact i never get difficulties). Jpg, gif & other file formats if imported they are classified (in Reources Tree) like a general item and displaiyd in binary mode. Anybody knows a way to import a non bmp image (jpg, gif, etc) Or anybody knows another control (activex) usefull to manage many images types I hope somebody can hel ...Show All
