Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. obislavu

    Can't add DataRow to DataTable

    Solution 1: <code> DataRow row = dt.NewRow(); row[0] = "maria"; row[1] = "george"; dt.Rows.Add(row); // row = dt.NewRow(); row[0] = "Helene"; row[1] = "Maxim"; dt.Rows.Add(row); </code> Running the...
  2. obislavu

    Not strictly a C# question, but...

    There is MFT (Microsoft File Transfer) Obislavu
  3. obislavu

    Recycle Bin Size

    Windows allocates a percent of each drive for the Recycle Bin and not a mximum size as you are looking for. That percent is set by right-clicking on Recycle Bin, choosing Properties, setting the percentage, and clicking on OK. It is possible to do that programatically. obislavu
  4. obislavu

    Write string to File

    Here is the code: using (StreamWriter sw = new StreamWriter("C:\\Temp\\file.out", false, Encoding.Default)) { string line1 = "if \"%1\" == \"\" goto usage"; string line2 = "c:\\Software\\a.exe \"FT-CDS-MDI-SCR PP\" -i -l %1\\%2 %3 -d Messenger...
  5. obislavu

    write arraylist contents to database

    I think the line DR["BookMarkText"] = string.Join("\r\n", (string[]) Text.ToArray(typeof(string))); is Okay. Questions to see in order: 1) What is the field type in database for BookMarkText ? If it is varchar or nvarchar then maybe the field is not updated because of truncation. 2) What is...
  6. obislavu

    Timed Event

    I understand that you have a service (windows) to do this task e.g. kill a given task at a given time. There are many solutions: 1)add a time scheduler and use it in the service 2)-use Task Scheduler to run at certain time a .bat file in which you only say [code] echo "" >file.ctl [/ctl] -...
  7. obislavu

    Data Column Length

    You CAN detect the lenght of the columns if and only if you send a query like this one: select c.length,c.name from sysobjects o, syscolumns c where o.id=c.id and o.name ='your table name' ; Iterate through this set using the c.name and find out the lenght but be aware about non-text fields...
  8. obislavu

    Icon and Bitmap for installer project

    Okay, that is possible. -Add that .icon file in the Application Folder -Create the shortcut (User Desktop or User Program Menu) -Make sure AlwaysCreate property is set to TRUE -Go to Properties window of that shortcut -Set the Icon property browsing the Application Folder and select the .icon...
  9. obislavu

    C# Changing text in textbox

    If you just want to display a text (passed as param in the Log() ) in that form then try to pass it in the ctor of the form and in the Load event assign it to the text box. You should have not any problem due to the thread. If you want to update the Text box in that form during the running then...
  10. obislavu

    AssemblyInfo.cs

    Take a look to PermissionSetAttribute class at the Assembly level. You can use it combined with security code access set in the machine.config. obislavu
  11. obislavu

    C# methods

    Here is what you should do: using System; using System.Collections.Generic; using System.Text; using System.Text.RegularExpressions; namespace Test { class Program { public bool IsNumeric_Regex(object num) { Regex r = new...
  12. obislavu

    Progress bar question

    The Gorkem way using events is working. If you want another robust solution,use BackgroundWorker class that has all events you need to upsate the progress bar. See ProgessChamged event. You also find examples on MSDN. obislavu
  13. obislavu

    returning multiple object types

    Creating a class is common but you also can return as many objects you want using ref or out. Example: void returnTwoObjects(point a, ref point b, ref int myInt) { b=...; myInt =...; } How to call the function ? point a=...; point onePoint=...; int oneInt =0; returnTwoObjects(a,ref...
  14. obislavu

    Get File Version of unmanaged dll

    System.Diagnostics.FileVersionInfo.GetVersionInfo should returns what is said. Example: string fn="C:\\Windows\\System32\\comctl32.dll"; string fileVersion=FileVersionInfo myFileVersionInfo = FileVersionInfo.GetVersionInfo(fn); will return fileVersion = "5.82 (xpsp.060825-0040)"; The file name...
  15. obislavu

    New to C# - need help making C# app to execute a URL

    Take a look of this code that is doing the job without openning the browser:^ //http://finance.yahoo.com/q?s=BCE public void GetStock(string strURL, stockName) { WebRequest req = null; WebResponse rsp = null; StreamReader readStream = null; string strRec=""...
  16. obislavu

    I don't get it... 'System.Security.SecurityException' occurred...

    In order your program to write on another machine you have to go in the .NET cOnfiguration and trust that directory e.g. \\server name\drive\drictory. You can do it manually, executing the caspol.exe utility or in the installer when you install the assembly. obislavu
  17. obislavu

    dlls and wrappers

    To read the content of an Excel file you no need to instantiate the Excel application. You can use OleDb* like you do with any database to load the content of the Excel into a DataSet. obislavu
  18. obislavu

    Web Service Proxy Reference.cs

    The Reference.cs file should be under the Web References folder in your project. Select that folder and click on the button Show all Folders which you find it in the Explorer window. You should see also the Reference.map file as well .disco and .wsdl files. obislavu
  19. obislavu

    Outlook Object Model 10 Access to files inside Folders

    Example if the folder is Contact then you have ContactItem as items. ContactItem myContact; string company = myContact.ItemProperties["CompanyName"].Value string mailaddress=myContact.ItemProperties["MailingAddressStreet"].Value and so on. You can add new propoerties to an Item, example...
  20. obislavu

    Timezone issues

    You know that Microsoft has everything in registry. All TimeZones are under: HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\ It is easy to extract from there! obislavu

Part and Inventory Search

Back
Top