Halil_developer's Q&A profile
.NET Development PropertyGrid / CollectionEditor doesn`t call my Add- Methode
Hello, I'll try do describe my problem: I'm developing an application to draw/export class diagrams using C#, .Net Framework 1.1. To let the user edit the properties of a class or relation, I'm using the PropertyGrid- Control. Since my class- objects are UserControls, they have many properties inherited I don't want to show in the PropertyGrid. For that reason I built wrapper- classes, which only own the properties I want to offer. Some of these properties, e.g. the operations or attributes of a class, are realized in the original UserControl- class as hashtable. To display these hashtables, I built own Collection classes (which extends the System.Collections.CollectionBase- class), so you can say that these are kind of wrapper classes for ...Show All
.NET Development .NET Framework 3.0
Does the framework 3.0 installer come with the appropiate documentation . I have framework 2.0 and VS 2005, once i install the Framework 3.0, will i have all the corresponding documentation in VS , if not, how do i install it You can download the latest MSDN Library: http://www.microsoft.com/downloads/details.aspx FamilyID=94596af5-cc58-45af-a14b-df627a31e783&DisplayLang=en Or use online help, using online help you will always have the latest documentation ...Show All
.NET Development Oledb/Framework BUG
Hi Folks, I am facing a problem to update ms-access table using this code: Dim sqlCommando As OleDb . OleDbCommand Dim reg As Integer con__conection_DB = New OleDb . OleDbConnection ( str_conection ) sqlCommand = New OleDb . OleDbCommand ( str_sql_query , con__conection_DB ) con__conection_DB . Open () sqlComando . ExecuteNonQuery () gfun__register_execute_sql = reg con__conection_DB . Close () --------------------------------------------- str_sql_query is UPDATE Table1 SET str_signal =' cccaaaccaaacaacaaca aa‥a‥ ac c aacc‥ a caaaaacc aca c ac 6 =@CBBDEFFGJIJJLNMMPOORSTTVUXEAAAAAAAAAAAAAAAAAAAAAA LRSSTUUXWWZZY\]]\_]_`ac ...Show All
SQL Server Matrix Report and Expression on field
I have a matrix report that has two columns, and one of the colums has the following expression for background color: =IIF( Fields!Percentile.Value >= .10, "Yellow", "White") Basically if the percent is greater than 10 highlight the field, for some reason i have some fields that dont show up yellow, see below: http://duhaas.googlepages.com/percent.Jpg your colour expression needs to wrap the field reference with the same aggregate function as the textbox value expression. So, if you are using: =sum(Fields!Percentile.Value) as your value then change the colour expression to =IIF( SUM ( Fields!Percentile.Value ) >= .10, "Yellow", "White") this is because when no aggr ...Show All
Windows Forms Is there any Window Control to hold avi files other than window media player
Hi, I want to display avi files on some window control that i can put on my window form. Is there any such window control that support such property other than window media player itself. I am looking for like we have picture box for images (ex. with no borders or other ui like in window media player). Regards Chips. Here's a custom control that plays .avi files with the old Multimedia API. Add a new class to your project and paste this code: using System; using System.Drawing; using System.Windows.Forms; public class AviPanel : Panel { private bool mPlaying; private int mError; [System.Runtime.InteropServices.DllImport("winmm.dll")] private static extern int mciSendString(strin ...Show All
.NET Development displaying an image from the internet in a picture box / label?
Is there any way i can have a picture box and display an image in it that is hosted on the internet say for e.g. - picturebox1.image ( http://www.website.com/image.jpg ) any help or direction would be great, i would use web browser but i cant get rid of the boarders. hello again, i have one small question... Dim wc As New WebClient Dim buffer1 As Byte () = wc.DownloadData( http://www.test.com/test.jpg ) 'can i populate this url via a text box (e.g. wc.DownloadData = textbox1.text) Dim stream1 As New MemoryStream(buffer1) Me .PictureBox.Image = Image.FromStream(stream1) this is the working code you sent, although i've tried populating the url from a text box and it r ...Show All
Visual Basic Calculate Percentage (%)
Hello, I need to calculate the percentage (%) of certain time values. Example: Planning 02:00 Shopping 03:15 Building 09:45 Total Time: 15:00 I need to be able to output something like this: Planning 13,3% Shopping 21,7% Building 65,0% How can I do that Thanks, Joao Pinto Dim first As TimeSpan = New TimeSpan(2, 0, 0) Dim second As TimeSpan = New TimeSpan(3, 15, 0) Dim third As TimeSpan = New TimeSpan(9, 45, 0) Dim total As TimeSpan = first + second + third Dim firstPercent As Double = first.TotalSeconds / total.TotalSeconds Dim secondPercent As Double = second.TotalSeconds / total.TotalSeconds Dim thirdPercent As Double = thir ...Show All
Visual Studio Team System Pre-build validation failes for setup project
Hi there, I am trying to build a setup project (.vdproj) using team build. I am aware that msbuild does not support building setup projects and one has to add custom task to build setup projects separately using devenv. I have added a custom task in TFSBuild.proj file to build the setup project. However, it fails to build it and gives an error. The command I have added is: >D:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv" $(SolutionRoot)\Setup\Setup.vdproj /Build "Release" The error it shows is something like this: ERROR: Invalid or unspecified target for shortcut <shortcutname>, ERROR: Cannot find outputs of project output group '(unable to determine name)'. Either the group, its ...Show All
.NET Development How to convert pdf file to html file.
Can anybody help me in finding a solution for converting pdf file to html file. There is a lot of PDF-to-HTML converters on the market, including the free online converter on the adobe.com site. If you wish to implement one yourself, you may start with iTextSharp , the .NET PDF library. Hope it helps, Anton ...Show All
.NET Development HOW TO DELETE RECORD IN A DATABASE ?
Hi, I have question to delete record in database. After clicked delete button I was able remove that row from view in datagridview but this record still exist in database. Here my coding : private void button3_Click( object sender, EventArgs e) { int Z; Z = dataGridView1.CurrentCell.RowIndex; maintenanceDataSet.MTN_Request.Rows .Delete(); maintenanceDataSet.MTN_Request.AcceptChanges(); } Thanks for your help. Joseph Please, get in the habit of using Parameters with your database queries. They make coding easier, in the longrun, because they will handle all the formatting. Furthermore, they will handle strings in such a way as to prevent SQL injection hacker attacks when you are wri ...Show All
.NET Development Retreive information from registry...
I need to retreive some information from the registry. 1) How do I open a registry key 2) How do I check/read the value 3) How can I copy that value into a label Thank you very much, BTW: Is it possible to retreive system memory information from the registry Hi You can use the Registry and RegistryKey class. You can refer the MSDN or VS help. Regards ...Show All
Windows Forms How do i bring my application to foreground
I am facing problem when my application icon is clicked in the taskbar then it does not come into foreground as any other windows application does.Even though i have written code for window activate method.This is on c#. In your code, did you change the WindowState property of the main application check this or try making the WindowState property equal to FormWindowState .Normal . Also check if you have a tranceparency key or so. Does your form show at all or it just does not show even when started Does it show but lose focus when you click its icon in the taskbar (shows as deactivated) what exactly happens Hope this helps ...Show All
SQL Server Package not picking up latest Config File changes
Hi, I've created a solution with 5 packages in. I've scripted a config file for each package where I would be able to change the source file connection and the database servers (source and destination). On the first package, I am able to change the config attributes and the affects are picked up, but the rest of the packages do no pick up the changes. For example, if the source file is "C:\Files\source.txt" and this is changed to "C:\Files\source123.txt" (Just to make sure it fails) it wont pick up the new changes and still uses "C:\Files\source.txt". Also, I tried changing the name of config file itself and the package still ran as if nothing had changed. It's as if it's not recognising the config fi ...Show All
Visual C++ missing .lib files for x86 in Platform SDK where do I get them?
I have installed "Microsoft R Windows ServerR 2003 R2 Platform SDK Web Install" and Visual Studio 2005 Express Edition and my programming seemed to work fine (Visual C++) until I needed to include fstream.h witch includes iostream.h, but now I cant compile because of some missing .lib files wich I find in the \lib\AMD64\ folder and \lib\IA64\ but they dont work on an x86, then I read on the install page for the Platform SDK that x84 compiler is not included I guess that is the reason for my problem, but where do I find my .lib files for x86 then otherwise, can I work around this problem somehow, I need to read ASCII numbers data from a .txt file. Can I do this without my .h files I cant compile with ...Show All
Visual C++ Project organization
I find myself against the wall. I am at a place where I have never gotten beyond because I do not understand the organization of projects. In the past I have done top-down programming. I've gotten fairly proficient with it, even though I have never gotten deep into the system with it. An example of the type of coding I am familiar with is here . While I can understand the concept of classes and objects, the organization of object-based projects throws me. As example, the app I'm writing. Using windows forms I created this project. It has 2 header files (Form1.h and stdafx.h) and 3 c++ files (AssemblyInfo.cpp, ProLite.cpp and stdafx.cpp). So far,all of the code generated by the designer is going into Form1.h. All of it. I know that I am ...Show All
