tackett's Q&A profile
Visual Studio 2008 (Pre-release) SSDL File
Why do we have SSDL file when we need only csdl and msl files. IS this file also generated by the mapping tool The Store Schema (SSDL) contains the metadata that describes the schema of your datastore. The central concept in the store schema are entities. Entities are instances of Entity Types (e.g., Product) where an instance represents a single record. And yes it is also generated. Perhaps this might help you to understand the metadata in the framework " ADO.NET Entity Framework Metadata ". ...Show All
Windows Forms how to call value of one form to another form
Hi I am a new bie to c# i am designing a c# window application.i have a login form. so how can i access thin login name or login id in all other forms. as their is nothing called as session or cache in windows applicaton. please suggest a suitable solutions. Waiting for the reply Thanking you because you are creating a new instance of a form/class therefore everything is reset to default values. you need the existing instance and pass this instance to the other form via constructor for example, as shown in the link supplied earlier.. I also dont understand why you are creating another instance of your login form when you are already in the login form and doing nothing with it :-) Best practice would b ...Show All
Internet Explorer Development Force Modal to Refresh?
IE6. I have instanced a modal ("popup") window without toolbar, statusbar, etc. I am not always sure that the content is being pulled down from the server - some clients get (locally) cached things, others do not. Is there a way to pass parameters to a modal popup so the client always fetches the content from the server Thanks. ...Show All
Visual Studio Express Editions Saving decimal in SQL Data Base
Hi, When I save a decimal number, forexample 1.23, the database is rounding it to the nearest whole number 1. I need the DB to retain the value sent 1.23. Ron hi One more thing, I am writing the data to the data table as follows. The Cdec(m_unitcost) is the field in question When in debug mode the m_unitcost displays the correct value of 123 If addstock = True Then AddStockTable.AddstockRow(m_partNo, m_Description, CInt (m_qty), CDec (m_unitcost), totalcost, CInt (m_min), picture, m_location) AddStockAdapter.Update(AddStockTable) Ron ...Show All
Visual Studio Team System Custom "Project Lead" group can not add users
I've created a custom Project group called 'Project Leads'. It has every right at the project level except "Delete this project". I've added the Project Lead to this TFS Security group and he is not able to add users to the other Project security groups What other rights does this custom group need in order to add users to this projects security groups Thanks, John In version 1.0 you must be a member of the Project Administrators group or the global Administrators group in order to modify group membership. One way that you can delegate group administration is to create a group in AD, add then add the AD group to the TFS group. Then you can use normal AD permissions to delegate administration of the AD group ...Show All
Visual Studio Tools for Office How can I put data in Word Documents???
I'm working in a Windows Project (using Visual Studio .Net 2003), the goal that I have to reach is to put data, (that is taked from database) and put them in a Word document. The problem that I have is that I'm NOT working with Visual Studio Tools For Office, instead of that, I'm writing code. A good example of what I'm trying to do is the following link: http://www.codeproject.com/csharp/Simple_Ms_Word_Automation.asp I'm working with templates, and in the template, I have putted bookmarks in this way: Within Microsoft Word - Insert - Bookmark. Then I write a name for the bookmark and finally clik on Insert. After that, the goal that I want to have is to put the data in those bookmarks.... Please can anyone tell me how can I ...Show All
SQL Server Date formats in SSIS
Hi once again guys, I seem to be struggling with everything in SSIS these days! I have a datetime field and I want to convert it to the following format in my derived column component : yyyy.mm.dd I also have another datetime field but this time I am only interested in the time values and I want to get : HH:MM How do I go about doing this in the SSIS expression builder Please help. dreameR.78 wrote: the year, month and days and concatenated together to form my YYYY.MM.DD string. I was just about to suggest that :) its the best way when using expressions. -Jamie ...Show All
Internet Explorer Development Safe to inert HTML into page with IFrames after refresh
I know similar questions have been asked in the past, but none of the responses really answered my question: On a page with IFrames, after the user refreshes, is there a way to tell when the main page has loaded enough that I can insert HTML If I insert early, I get an "operation aborted" pop-up from IE and then the page does not load. Thanks, Alex I am using the BHO to insert the code into some given webpage. Nothing is known about the page beforehand. Two techniques that I have tries include: myDiv= doc.createElement("div"); ((IHTMLElement2)doc.body).insertAdjacentElement("beforeEnd", myDiv); doc.body.insertAdjacentHTML("beforeEnd", InsertVariables(someHTML)); ...Show All
Visual Studio 2008 (Pre-release) FlowDocument - Find does find elements in Section
Hi, I have flowdocument with number of sections. When I load this document and Find the paragraph, it returns desired para. But when I load each section in a different flowdocument, and use find on this new flowdocument, it fails to find the paragraph. Do let me know what could be the reason. --------------------------Code --------------------- // load only a section into rtb as new FlowDocument string fn = "c:\\FlowDocument1.xaml" ; XmlReader xr = XmlReader .Create(fn); FlowDocument flowDoc = XamlReader .Load(xr) as FlowDocument ; FlowDocument fdSection = new FlowDocument (flowDoc.FindName( "Section1" ) as Section ); rtb.Document = fdSection ; // Find para in rtb.Document and this fails ...Show All
.NET Development httpwebrequest Proxy Authentication Error
I am using VS2005 on Windows XP Professional. In my application I use a timer to send every two minutes an http request using "post" method. After running for some time: 1 hour or 1 day, the application fails with the following error: System.Net.WebException: Problem with the Web site that should provide the response!407. Proxy authentication required ---> System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required. at System.Net.HttpWebRequest.GetRequestStream() at MyProjectName.Lib.Requests.RequestSender.GetResponse(XmlDocument& document, ICredentials& credentials) My application sends the same request after another two minutes and it fails again and again. After an hour ...Show All
Game Technologies: DirectX, XNA, XACT, etc. I can't find what I'm doing wrong!
[EDIT]Well, I finally got it to work. What was wrong I don't know. I did get it to work simply by adding a weight variable into the vertex definition, but am not sure why, simply becuase that had not worked before (yes, I had defined them as 1 before). So, no more help needed, I guess... The best way would be to comment out most of the initialisation code using /* */ so you get something working then bit by bit start uncommenting sections until you get to the bit that’s giving the error. ...Show All
Software Development for Windows Vista Additional actions and conditions for SharePoint Designer
Will Microosft be providing additional activites and conditions I need ability to escalate workflow if the assigned person is not responding within a certain period - how do I automate that in a custom SP designer workflow Question related to the SharePoint should be posted to one of the forums found at http://www.microsoft.com/office/preview/community/newsgroups.mspx . ...Show All
Visual Studio Tools for Office Bug?
The following line gives error "Activate method failed" when the oExcel workbook was previously open when the program is run. oExcel.Worksheets( 5 ).cells( nPositions, 1).activate() However, it does work fine when the oExcel object was not open and is opened by the GetObject. All other manipulation of oExcel works fine independently of whether oExcel was previously open or not. The related relevant code is Dim oExcel As Excel.Workbook oExcel = GetObject( "C:\Documents and Settings\Antonio\My Documents\inventory.xls" ) oExcel.Application.Visible = True (manipulation of oExcel) oExcel.Worksheets( 5 ).cells( nPositions, 1).activate() Hi asalce ...Show All
SQL Server creating a new replication
I am very new to the whole sql replication, i am trying to replicate with 2x 2000sql std machines One is to be the distrubuter and the publisher (merge type by the way) the other to be the subscriber. I have downloaded and followed step by steps religiously however i have nothing but isses with this. I have used the wizards i am getting various errors. the merge client comes up with an error after looking in the event view i find i have the following error Event Type: Information Event Source: SQLSERVERAGENT Event Category: Job Engine Event ID: 203 Date: 8/01/2007 Time: 12:52:17 PM User: N/A Computer: FAILOVERSQL2000 Description: SubSystem Message - Job 'FAILOVERSQL2000-PTO-PTO-ELCOM-TEST-1' (0x96AD1DBC3E5A9541A6C72C4CCFB ...Show All
Visual C# Trouble with WinNT provider on remote OS with other language.
I'm using this code: DirectoryEntry O = new DirectoryEntry("WinNT://" + ServerName + "/" + UserName); O.Rename(NewName); it works fine only on OS where language equals my OS language. E.g. it works when remote system is Windows XP SP2 RUS. But when remote OS is Windows 2000 SP4 RUS or Windows XP SP2 ENG it throws an exception. Why this so IntPtr bufPtr; NetworkAPI.USER_INFO_0 CurrentUser = new NetworkAPI.USER_INFO_0(); NetworkAPI.NetUserGetInfo(ServerName, UserName, 0, out bufPtr); CurrentUser = (NetworkAPI.USER_INFO_0)Marshal.PtrToStructure(bufPtr, typeof(NetworkAPI.USER_INFO_0)); System.Diagnostics.Debug.WriteLine(ServerName + " Username ...Show All
