palestine's Q&A profile
Windows Forms Problem with passing data from a form to another
Hi , I have a .Net 2.0 windows application that requires authentication to proceed. I already set the start form as the MainForm and at the initialization of MainForm, I set the loginForm to show up as loginForm.ShowDialog(). public MainForm() { InitializeComponent(); FormLogin loginForm = new FormLogin(); loginForm.ShowDialog(); } Then, I put the code for user validation inside loginForm. User will press "Login" button. If the user is authentic, loginForm will close and MainForm will show up. The problem now is I want to send to the MainForm the Usertype (Usertype is a field in database, just like Password and Username) once he/she successfully logged in. I know how to retrieve the info from database but have no ide ...Show All
Visual Studio Express Editions How can i open a aboutbox in a windows form
Hey i've been trying for weeks to try open a aboutbox whilst in a windows form, i have a menu bar and a drop down menu with about this product on it and when i click it i would like it to open the aboutbox, but i can't get it to work can anybody help me please thank you in advance. Assuming you do already have a form for your about box, this code snippet will do ("AboutDialog" is the name of the form): AboutDialog aboutDialog = new AboutDialog (); aboutDialog.ShowDialog(); ...Show All
Visual C# Public partial classes
Hello Everyone, How to access these public partial classes: I have something like this public partial class test : System.Web.UI.Page { // What ever I need here } I have a second class public partial class test1 : System.Web.UI.Page { //Code here How can I access test from here } Hi Harsimrat, Can you tell me what actually you want ot do here It seems to be you are trying to access one asp.net web page form another. Are you trying to pass values form one web page to another When you are doing the web programming, you have to understand web (http) is stateless model. So do things with this awareness. The purpose of ...Show All
SQL Server problem in time dimension
Hi, I have the following fact table structure for the time dimension: Date | CalYear | CalhalfYear | CalQuarter | CalMonth | 12/31/2002 12:00:00 AM 2002 2 4 12 1/31/2003 12:00:00 AM 2003 1 1 1 2/28/2003 12:00:00 AM 2003 1 1 2 1/30/2004 12:00:00 AM 2004 1 1 1 2/27/2004 12:00:00 AM 2004 1 1 2 12/30/2005 12:00:00 AM 2005 2 4 12 I create the following attributes: Date (key), Month, Quarter, Halfyear and Year when I set the attribute relations as: Date Month Quarter Halfyear Year Then I create a hierarchy: Date > Month > Quarter > HalfYear > year and then I browse only the dimension hierarchy in BI studio, with the member properties visible. I get all the values correctly, including each month (num ...Show All
Smart Device Development Deployment and/or registration failed with error: 0x8973190e. Error writing file '%csidl_program_files%\test\system.wind
hi, I have wrote a simple C# device application program intend to call the function from the managed C++/CLI Class library in the form of *.dll file. The *.dll is named as pll.dll. My procedure is added the pll.dll file as 'add reference' and i Rebuild the C# device application project concurrently. Afterthat, i tried to deploy it to the PC Pocket emulator. Somehow the deploying process failed all the time and the error is like below. Error 1 Deployment and/or registration failed with error: 0x8973190e. Error writing file '%csidl_program_files%\test\system.windows.forms.dll'. Error 0x80070070: There is not enough space on the disk. Device Connectivity Component Is there anyone can help me to solve this problem and tell me the ...Show All
SQL Server vb code in ssis
HI, I have a function written in vb and want to know if there is a way to use it in an ssis package Is there a task that I can paste this function in and execute it Like the vbscript task or T-sql task The function opens up 2 tables and updates table1 recordset with data from table2 if the (if statement) is correct and It uses 2 do loops. Any ideas Thanks Head over to the VB General forum. They can probably help you better than in here. http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=32&SiteID=1 ...Show All
Internet Explorer Development IE DHTML capabilities
I was playing with IE DHTML methods and properties, created a site, showing the superiority of IE as compared with other browsers. Check it out: http://home.arcor.de/wrfan/files/div_popup/ It shows how to create DIV elements by means of insertAdjacentHTML method + IE Popup objects to display HTML elements information in them, how to effectively use the IE componentFromPoint method, how to zoom images in IE, zoom specific HTML elements, zoom the entire document.body, how to use IE DXImageTransform filters, how to get specific attributes of HTML elements (e.g. the IMG alt attribute) and change their values or remove them altogether on the fly when specific events occur etc. Pertaining to the IE popup o ...Show All
SQL Server Specify that a measure cannot be totaled by date
I have a measure that cannot be totaled by date is there any way to specify that in the cube Or do I instruct users to delete total columns. The example is market value which is a certain amount at a given point but is not summed. If you are using Analysis Services 2005, try taking a look at using semi-additive measures (see Books Online), which I think is what you want to use. Notice that the use of (native) semi-additive aggregation functions in Analysis Services 2005 requires Enterprise Edition. ...Show All
Windows Forms increasing resolution disperses position of controls in a windows form app. why?
hi here is a bad experience i had a few days before , i made a gui app. on my system that runs on 1024*768 resolution , now i deployed my application on a laptop with a higher resolution what i found was that the position of my controls got highly dispersed which made my app. look really a blunder mistake , my question is : this is not a website so why such problem arises , also please help me how to solve this problem thanks very much gurpreet I think we need to see a screenshot to know what "dispersed" means. Use a website like ImageShack.com, make one for your "good" layout and one for your bad layout. Post the links so we can see what you're talking about. ...Show All
Visual Studio Team System Getting a new work item field to display in the OLAP cube
I've created a new field named stage in our scenario template and updated VSTS. It looks like: < FIELD name = " Stage " refname = " Microsoft.VSTS.Common.Stage " type = " String " reportable = " dimension " > < HELPTEXT > Stage of the scenario in the development process </ HELPTEXT > < REQUIRED /> It's showing up correctly in VSTS and in the TFSWorkItemTracking DB in Team. The issue I'm having is that it's not showing up in the TFSWarheous OLAP cube. How can I get this in to the cube Thanks in advance for any help on this. Greg Would you please process your warehouse manually and see if the field ap ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Spacewar Performance Problems
Finally got my hands on a 360 controller today, so I thought I would give Spacewar a spin, unfortunately, it was a very, very slow spin. 2.5fps slow, even in retro mode. My laptop isn't the greatest (Pentium M 1.7Ghz, 512 RAM, X300 128mb w/ latest Omega drivers), but it should certainly be doing better than that. I've compared stats in PIX with some of the MDX samples, and nothing seems out of the ordinary. I tried the CLR Profiler on it, but from my limited experience with it, I wasn't able to interpret the results well enough to come to any conclusion. Any ideas Hey nuvem, We think we've found a bug in the Spacewar sample that may impact performace issues on some machines, we're still looking into ...Show All
Visual C# Problem debugging generic classes
Anyone knows how to solve this When I try to debug my generic class, I doesn't allow me to watch the value. Here is my sample code :- //* In a Windows Form private void button2_Click( object sender, EventArgs e) { DictionaryWrapper < int > tmpDic = new DictionaryWrapper < int >(); tmpDic.AddEntry(6); tmpDic.AddEntry(16); tmpDic.AddEntry(3); tmpDic.AddEntry(33); } //* My own Class public class DictionaryWrapper <T> { Dictionary <T, int > myDic; public DictionaryWrapper() { myDic = new Dictionary <T, int >(); } public void AddEntry(T inKey) { myDic.ContainsKey(inKey); // <====== I set a breakpoint here ********** ...Show All
Visual Studio Express Editions Data grid view controls
How do i get the data grid view box to work in my application. For instance save data to a file and open data from a file, and get the copy, cut and paste controls to work in my application. e.g. the copy control in a RTB = rtb.Copy and the copy control for a html editor is HTMLDoc2.exeCommand("Copy"), what is this command in the data grid view box Can any one help http://msdn.microsoft.com/library/default.asp url=/library/en-us/dv_vbcode/html/vbtskCodeExamplePrintingDataGrid.asp I don't know what what you are referring to as far as the other issues. ...Show All
Visual C# Read XML
How can I read just the innertext of just station name < xml version="1.0" encoding="UTF-8" standalone="yes" > - < stationlist > < tunein base =" /sbin/tunein-station.pls " /> < station name =" Dragon Radio " mt =" audio/mpeg " id =" 959135 " br =" 128 " genre =" Rocks and Beats " ct =" My Spiritual Essence - HBO Special FULL George Carlin " lc =" 0 " /> < station name =" KRIZMIX " mt =" audio/mpeg " id =" 536133 " br =" 80 " genre =" Variou ...Show All
SQL Server What works for me
Hi, I am using the IBM OLE DB Provider (IBMDASQL) provided with Client Access (IBM) to access a DB2 database on an AS/400 (iSeries). Using an OLE DB Source in the data flow and Access Mode set to "OpenRowset" this works fine (even though I think it is quite slow). However, when I change the Access Mode to "SQL Command" my data flow fails at the OLE DB Source component - not giving me any meaningful error description (only the mysterious "... the error is specific to the component..."). Using and SQL Command to access the data is important to me, since I need to put a WHERE-statement on the rows returned from the source. /Michael PS: I am not able to use the MS OLE DB Provider for DB2 (as far as I know it is only shipped with HIS ). ...Show All
