Software Development Network Logo
  • Visual Studio
  • Windows Forms
  • SQL Server
  • SharePoint Products
  • Visual FoxPro
  • Windows Vista
  • Audio and Video
  • Game Technologies
  • Microsoft ISV
  • .NET Development
  • Visual C++
  • VS Team System
  • Smart Devicet
  • IE Development
  • Visual C#

Software Development Network >> Shohre Mansouri's Q&A profile

Shohre Mansouri

Member List

JGreene
some1sxi
jori0001
Sergey Volk
Ramanujam Sampath
m0nkeyforce
SCarmeli
joshua926
AvalonNewbie
rperreta
AlexanderJ
AndersBank
LeeroyB
James_Steven
creaturita
lpx
Adhi78
sharyl
Todd Biggs - Windows Live
startlet
Only Title

Shohre Mansouri's Q&A profile

  • SharePoint Products and Technologies Help Required- List Events

    Hi I'm writing an event to User Information List... Here I'm using some conditions. If they are not met then I have show up an error message and stop the event to complete in the below code I'm using the ItemUpdated Event of the list. In custom code a condition is checked if satisfies then error page should come.... public override void ItemUpdated( SPItemEventProperties properties) { CustomCode(properties); } void CustomCode( SPItemEventProperties properties) { if (alreadyExist) { alreadyExist = false ; properties.ErrorMessage = "error message" ; properties.Cancel = true ; } Now when I run the above code this message is not coming.....my code is working ...Show All

  • Visual Basic list box order

    I know that I have seen something like this before. I know have a list box getting names from a text file. But I want the last record to show first that is on top. how do I do this Or do I need to change the way my lines are added to the file Add lines to first row is this possible thanks Code Snippet Dim WithEvents lstAddress As New System.Windows.Forms.ListBox Private Sub AddLine ( ByVal value As String ) With Me If Not .lstAddress.Items.Contains(value) Then 'checks to see if value is already in list. .lstAddress.Items.Insert(0, value) 'Insert at index 0 End If End With End Sub ...Show All

  • Visual Studio Team System App Server install: User account problem

    I am trying to install TFS in dual server mode and I've had no end of problems! We have set up the TFS service accounts: SVC_TFS and SVC_TFS_REPORT We have used these accounts successfully on a number of test machines, but as soon as we tried to put it on our production machine, we have had no end of problems: Database server install would not work... seemingly could not connect to the SQL Server 2005 database. This is a default instance as per the installation pre-requisites. However, we did get it working by restoring from one of the previous instances. Now, during the app server installation, when we enter the credentials for the service accounts we get the following error message: The account name is not valid or does n ...Show All

  • Visual C# Add Datarow

    I am using the following code to 'test how to add a datarow' But it does not seem to work- can anyone correct the code for me.. //test add rows myConn.Open(); DataSet dtSet = new DataSet (); myCmd.Fill(dtSet, "DETAIL_POLEVEL3" ); DataTable dt = dtSet.Tables[0]; DataRow workRow; for ( int i = 0; i <= 9; i++) { workRow = dt.NewRow(); workRow[0] = i; workRow[1] = "CustName" + i.ToString(); dt.Rows.Add(workRow); dt.AcceptChanges(); myCmd.Update(dt); } Can-Ann wrote: {"Update requires a valid InsertCommand when passed DataRow collection with new rows."} ... I am using Vs2005 incase it makes a dif ...Show All

  • Visual Basic Refactor bug on default properties

    I wondered if this bug is noteworthy. VB Express comes with a small refactor feature that allows you to symbolically rename identifiers, but less advanced than in C# Express. However, if you declare a default property in a class (such as an indexed property if your class wraps an array and a bunch of relevant information), then address this property, you will get a little tricky situation if you refactor this property. I wrote a short class to demonstrate this: Public Class TestCase Private items As List(Of Object) Public Shared Function Exists(ByRef obj As Object, ByRef test As TestCase) As Boolean Dim i As Integer For i = 0 To test.Count If test ( i) Is obj Then Return True End If Next Return ...Show All

  • Windows Forms how do I conditionally change a DataGridViewButtonColumn?

    I'd like to change the text and disable the column if a certain condition is true in the row. What events or methods should I be altering In this example I want to be able to specify conditions related to business rules. For example if column a is greater than column b, or some other formula. ...Show All

  • Architecture Learning design patterns

    Hi all, I'm very interesting of learning design patterns. I need your help please with two things : 1. Guid me start with easy patterns to understand then go harder. So if you have a list sorted by easy levels. 2. If you have links for concrete exampls for each design. Please help. Best regards... I 100% agree with Clemens. The best way to learn Patterns is to map them to real scenario. For example, how do you use factory pattern to solve my problem in FullTimeStaff and PartTimeStaff scenario (see my other thread.) where staffType is stored in database. ...Show All

  • Windows Forms Writing a picturebox to a file using .jpg format

    I have a picturebox with text that was added using the DrawString method. The text can be seen on the display. I now want to: 1. Save the picturebox to a .jpg file. 2. Send the picturebox to a printer (directly, not from the .jpg file created in #1). Can someone show me how to do these two steps Thank you. You are not using the PB's Image property but directly paint onto the PB's control surface. To create a bitmap from that, just paint directly into a bitmap. Use something like this: Image bmp = new Bitmap(pb1.width, pb1.height) Graphics g = Graphics.FromImage(bmp) //... etc bmp.Save(...); ...Show All

  • SQL Server Authentication

    hey all Not sure if I have this in the right forum - please direct me otherwise people. This is my set-up Windows Server 2003 (NZDEV) Virtual Server (nzvmw1) - Visual Studio 2005 Sql Server Express Edition with Advanced Services Tools = Reporting Services on my computer - I have deployed a report up to the nzvmw1 server using url nzvmw1/reports - I can see everything my user nzdev/user (admin rights) I have two other users - they are users on nzdev (not with admin rights) if they use url nzvmw1/reports - the password screen comes up nzdev/***** and password I set for them - page comes up but no folders I don't know where else to give them permissions (and don't think I should be making everyone Admins ...Show All

  • Visual C# help me plz

    can u help me in converting this code to vb.net code two delagetes two events declared of type of the delegates and the event is used in (if statement) in c# u can call the event as it is a method but in vb u must put (raiseevent) public delegate void ChangePageEventHandler( object sender, frmMain.Pages Page); public delegate void NotifyEventHandler( object sender); public event ChangePageEventHandler ChangePage = null ; public event NotifyEventHandler Terminate = null ; // ╔═══════════════════════╗ // ║ method OnChangePage() ║ // ╚═══════════════════════╝ /// <summary> /// /// </summary> /// <param name="Page"> ...Show All

  • Visual C++ How to make a compiler link with __CxxFrameHandler instead of __CxxFrameHandler3

    How to make a compiler link with __CxxFrameHandler instead of __CxxFrameHandler3. Is there is any option available. We are developing printer drivers for Vista Operating system, for the XPS print path, using PT/PC support. Problem: Though we could install the binaries on the Vista OS, we were not able to install the Vista binary set on a XP operating system. We have installed the .Net3.0 on XP Operating system. Issue: On investigation, we found that one of our DLL was referring to some functions like : * strcat_s, * _itow_s, * __CxxFrameHandler3, * _except_handler4_common The issue is that the above functions "are not" exported by MSVCRT.DLL available on XP SP2 OS. Build Setup: We are currently building the dll ...Show All

  • Visual Basic Vertical label

    I would like to add a vertica label on my from, is there somebody can help me with that thank you very much, works a treat, however i was playing with the angle.... it only works in -90 is there an easy way to rotate 90 degrees the other way, i would of thought 90 or +90 would of done the job but ut never :o( ...Show All

  • SQL Server Does Replication Use Compression?

    Does SQL Server replication impliment any kind of compression It seems to me that this would be very helpful for congested WAN links and costly merge replication. Hi Joshua, Here is a direct quote from book online http://msdn2.microsoft.com/en-us/library/ms151740.aspx Does replication work over low bandwidth connections Does it use compression Yes, replication does work over low bandwidth connections. For connections over TCP/IP, it uses the compression provided by the protocol but does not provide additional compression . For Web synchronization connections over HTTPS, it uses the compression provided by the protocol and also additional compression of the XML files used to replicate changes. For more information about ...Show All

  • Windows Forms Input String was not in a correct format

    Hi I am a new bie to the c# programing . i am getting this error at the time of form_load. where when i run the form it works properly.i have come to the conclusion that the problem is at the line cmd.Parameters["@vendorid"].Value=int.Parse(cmbSrchVendor.SelectedValue.ToString()); Problem is that , this problem only exists at the time of form_load. required help and a solution ASAP. private void cmbSrchVendor_SelectedIndexChanged(object sender, System.EventArgs e) {SqlConnection con; try { con=new SqlConnection("connetion string"); con.Open(); //int id = Convert.ToInt32(cmbSrchVendor.SelectedValue.ToString.SelectedValue); // string str="select * from tblvendor where (vend ...Show All

  • Visual Studio Express Editions <list> and deprecated

    I'm including <list> in my project, and using std::list. I get a TON of deprecated messages, for just about everything in stdio it looks like. Naturally I'm not using all the naughty files. Is their a better flavor of list to use I've been dilligently updating old code, and prefer to not to turn off the warnings. thanks, Kristian Your example does not generate those warnings in my project. Could you supply more detail, is there other includes before #include <list>, or have you changed any compiler settings in the project ...Show All

©2008 Software Development Network