Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
T

TALHAKOSEN

@TALHAKOSEN
About
Posts
47
Topics
13
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Cannot create instance in a partial class
    T TALHAKOSEN

    Yeah i solved my problem with usin session, you are right )) Merry Christmas an a Happy New Year to you , too

    thanks for everything i have...

    Web Development question csharp visual-studio design help

  • Cannot create instance in a partial class
    T TALHAKOSEN

    Thanks fot giving your time,Estys...

    thanks for everything i have...

    Web Development question csharp visual-studio design help

  • Cannot create instance in a partial class
    T TALHAKOSEN

    Estys, Thanks for your attention and sorry for my poor english , i couldnt explain what i wanna say excatly. Ok, i try to explain it clearly at this time, I gave a simple sample to tell my problem before, but now i wanna give you my real project's page example. so I want to take a values of a textbox.text or name of a button which are in another page. TariheGore.aspx Imports System Imports System.Globalization Imports System.Threading Imports System.Data.SqlClient Imports System.Data Imports System.Drawing Imports System.Drawing.Color Imports System.Drawing.Font Partial Class TariheGore Inherits System.Web.UI.Page Public fp1 As TariheGoreDuzelt ' there are problem it says "type TariheGoreDuzelt is not defined" Public fp2 As TariheGoreGiris ' there are problem it says "type TariheGoreGiris is not defined" Protected WithEvents Form2 As System.Web.UI.HtmlControls.HtmlForm Public ReadOnly Property GetBtnName() As String ' i will use this in TariheGoreGiris.aspx Get Return ButtonName End Get End Property TariheGoreGiris.aspx Imports System.Data.SqlClient Imports System.Data Imports System Imports System.Globalization Imports System.Threading Partial Class TariheGoreGiris Inherits System.Web.UI.Page Public fpTariheGore As TariheGore Protected WithEvents Form1 As System.Web.UI.HtmlControls.HtmlForm Protected WithEvents CikBtn As System.Web.UI.HtmlControls.HtmlButton Dim utl As New Utils . . . Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Thread.CurrentThread.CurrentCulture = New CultureInfo("tr-TR") if Not IsPostBack Then Try fpTariheGore = CType(Context.Handler, TariheGore) BtnName = fpTariheGore.GetBtnName i hope i could explain my problem :(

    thanks for everything i have...

    Web Development question csharp visual-studio design help

  • Cannot create instance in a partial class
    T TALHAKOSEN

    yes, it is website application, i create it with this way in vs2008 file --> new web site

    thanks for everything i have...

    Web Development question csharp visual-studio design help

  • Cannot create instance in a partial class
    T TALHAKOSEN

    :) i mean when i wrote Dim _test as new ... i cant reach my test class.

    thanks for everything i have...

    Web Development question csharp visual-studio design help

  • Cannot create instance in a partial class
    T TALHAKOSEN

    (in visual studio 2008, website project) I cant create instance of a partial class in a another partial class, why ???? Please look at below; test.aspx <%@ Page Language="VB" AutoEventWireup="false" CodeFile="test.aspx.vb" Inherits="test" %> test.aspx.vb Partial Class test Inherits System.Web.UI.Page End Class profile.aspx <%@ Page Language="VB" AutoEventWireup="false" CodeFile="profile.aspx.vb" Inherits="profile" %> profile.aspx.vb Partial Class profile Inherits System.Web.UI.Page ' doesnt work Dim _test as new test End Class i couldnt understand what is the problem ?? thanks...

    thanks for everything i have...

    Web Development question csharp visual-studio design help

  • sql code problem Help pls
    T TALHAKOSEN

    thank you, it works !

    thanks for everything i have...

    Database help database

  • sql code problem Help pls
    T TALHAKOSEN

    Hi all, i know maybe its is really easy but I've been working on it for ages ! ( Name Diploma year A 1991 A 1986 A 1981 B 2001 B 1996 B 1992 C 1990 C C D 2006 D D i have a 3-4 tables and join them, then it returns lots of people have diplomas from different school, but i need to show the last graduated school for everyone. like that A 1991 B 2001 C 1990 D 2006 . . . . . thanks for now ... Talha

    thanks for everything i have...

    Database help database

  • Insert HTML Formatted Text On Word Document Using C# [modified]
    T TALHAKOSEN

    it is late answer i know )) Create a word doc, and insert a bookmark into that, then you can paste your string to that bookmarked place wit trhe code below private void button2_Click(object sender, EventArgs e) { WordApp = new Word.ApplicationClass(); fileName = @"yourworddocname"; Microsoft.Office.Interop.Word.Document aDoc = WordApp.Documents.Open(ref fileName, ref missing, ref readOnly, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref Format, ref realencode, ref isVisible, ref missing, ref missing, ref missing, ref missing); WordApp.Visible = true; WordApp.Visible = true; bookmarkdene(aDoc, "yourbookmarinworddoc", yaz); } private static string HtmlClipboardData(string html) { StringBuilder sb = new StringBuilder(); Encoding encoding = Encoding.GetEncoding("utf-8"); string Header = @" Version: 1.0 StartHTML: {0:000000} EndHTML: {1:000000} StartFragment: {2:000000} EndFragment: {3:000000} "; string HtmlPrefix = @" !DOCTYPE HTML PUBLIC ""-//W3C//DTD HTML 4.0 Transitional//TR"" html head meta http-equiv=Content-Type content=""text/html; charset={0}"" head body !--StartFragment-- "; HtmlPrefix = string.Format(HtmlPrefix, encoding.WebName); string HtmlSuffix = @" <!--EndFragment--> </body> </html> "; // Get lengths of chunks int HeaderLength = encoding.GetByteCount(Header); HeaderLength -= 16; // extra formatting characters {0:000000} int PrefixLength = encoding.GetByteCount(HtmlPrefix); int HtmlLength = encoding.GetByteCount(html); int SuffixLength = encoding.GetByteCount(HtmlSuffix); // Determine locations of chunks int StartHtml = HeaderLength; int StartFragment = StartHtml + PrefixLength; int EndFragment = StartFragment + HtmlLength; int EndHtml = EndFragment + SuffixLength; // Build the data sb.AppendFormat(Header, StartHtml, EndHtml, StartFragment, EndFragment); sb.Append(HtmlPrefix); sb.Ap

    C# csharp html com

  • non english character problem !!!
    T TALHAKOSEN

    (i hope i write true place) Hi all, i use the two method shown below, to sent text as html to a word document, but non english characters arent shown in the document. what can i do?? private void button2_Click(object sender, EventArgs e) { WordApp = new Word.ApplicationClass(); fileName = @"........"; Microsoft.Office.Interop.Word.Document aDoc = WordApp.Documents.Open(ref fileName, ref missing, ref readOnly, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref Format, ref missing, ref isVisible, ref missing, ref missing, ref missing, ref missing); WordApp.Visible = true; bookmarkPaste(aDoc, bookmarkinWordDoc,myHtmlScript); } **public void bookmarkPaste(Word.Document aDoc, string bookmarkAdi, string data)** { try { object bookmark = bookmarkAdi; object missing = System.Reflection.Missing.Value; object pasteType = Word.WdPasteDataType.wdPasteHTML; DataObject clipDO = new DataObject(); if (aDoc.Bookmarks.Exists(bookmark.ToString())) { Word.Range rangeTbl = aDoc.Bookmarks.get_Item(ref bookmark).Range; clipDO.SetData(DataFormats.Html,**HtmlClipboardData**(data)); Clipboard.SetDataObject(clipDO, true); rangeTbl.PasteSpecial(ref missing, ref missing, ref missing, ref missing, ref pasteType, ref missing, ref missing); } else { } } catch (Exception exc) { MessageBox.Show(exc.Message); } } **private static string HtmlClipboardData(string html)** { StringBuilder sb = new StringBuilder(); Encoding encoding = Encoding.UTF8; string Header = @" Version: 1.0 StartHTML: {0:000000} EndHTML: {1:000000} StartFragment: {2:000000} EndFragment: {3:000000} "; string HtmlPrefix = @" DOCTYPE HTML PUBLIC ""-//W3C//DTD HTML 4.0 Transitional//EN""&; html; head; meta http-equiv=Content-Type content=""text/html; charset={0}""; /head;

    C# html com help question announcement

  • Eval(sesion[key])
    T TALHAKOSEN

    anyway thanks

    thanks for everything i have...

    ASP.NET

  • Eval(sesion[key])
    T TALHAKOSEN

    Thanks for your reply, .aspx file ItemTemplate Label ID="Label1" runat="server" text=<%#Eval(ID)%> ItemTemplate .cs file string ID; ------ how can i send this to item template, when i wrote like text=<%#Eval(ID)%> it gives error protected void Button1_Click(object sender, EventArgs e) { ID = "picID"; DataList1.DataSource = SqlDataSource1; DataList1.DataBind(); } protected void Button2_Click(object sender, EventArgs e) { ID = "UserID"; DataList1.DataSource = SqlDataSource2; DataList1.DataBind(); }

    thanks for everything i have...

    ASP.NET

  • Eval(sesion[key])
    T TALHAKOSEN

    Hi all, I have a datalist and i want to fill datalist from 2 sqldatasource retuning 2 different table. In a button1_click event, i wrote dt1.datasource = sd1; return fields picID,picName ... dt1.databind(); In a button2_click event, i wrote dt1.datasource = sd2; return fields userID,userName.... dt1.databind(); i wrote on aspx file for a label text <%# eval("picID") %> for example <%# session[mysessionkey] %> but i wanna change this dynamically, Thanks ...

    thanks for everything i have...

    ASP.NET

  • how to get text with api ???
    T TALHAKOSEN

    anyway you can send the picture to my email it says this, HTTP1.1 STATUS 403 Remote Access to this object forbidden This file cannot be directly accessed from a remote site, but must be linked through the Brinkster Member's site.

    thanks for everything i have...

    Windows Forms question json tutorial

  • how to get text with api ???
    T TALHAKOSEN

    there are an error on the path

    thanks for everything i have...

    Windows Forms question json tutorial

  • how to get text with api ???
    T TALHAKOSEN

    Good luck !)

    thanks for everything i have...

    Windows Forms question json tutorial

  • how to get text with api ???
    T TALHAKOSEN

    it takes the button names on calculator using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Runtime.InteropServices; namespace apiGetText { public partial class Form1 : Form { private const int WM_GETTEXT = 0x000D; private const int WM_SETTEXT = 0x000C; private const int WM_GETTEXTLENGTH = 0x000E; [DllImport("User32.dll")] public static extern uint GetMenuItemID(int hMenu, int nPos); [DllImport("User32.dll")] public static extern int FindWindow( String lpClassName, String lpWindowName); [DllImport("user32.dll")] private static extern int FindWindowEx( int parentHandle, int childAfter, string className, string windowTitle); [DllImport("User32.dll")] public static extern Int32 SendMessage( int hWnd, // handle to destination window int Msg, // message IntPtr wParam, // first message parameter StringBuilder lParam); [DllImport("User32.dll")] public static extern Int32 SendMessage( int hWnd, // handle to destination window int Msg, // message IntPtr wParam, // first message parameter IntPtr lParam); // second message parameter private void button1_Click(object sender, EventArgs e) { int calculatorHwnd; int btnHwndGrp; // youcan find SciCalc on spy++ --- > findwindow ----> classname calculatorHwnd = FindWindow("SciCalc", "Calculator"); btnHwndGrp = FindWindowEx(calculatorHwnd, 0, "BUTTON", null); int length = SendMessage(btnHwndGrp, WM_GETTEXTLENGTH, (IntPtr)0, (IntPtr)0); if (length > 0) { StringBuilder sb = new StringBuilder(length); SendMessage(btnHwndGrp, WM_GETTEXT, (IntPtr)(length + 1), sb); //this shows the text MessageBox.Show(sb.ToString()); } } } }

    thanks for everything i have...

    Windows Forms question json tutorial

  • How to pass a groupbox from a class to other class
    T TALHAKOSEN

    Thx for your help and i found how to to do that exactly public void gbRenk( GroupBox gb) { gb.MouseClick += new MouseEventHandler(gb_renkAl); } private void gb_renkAl(object sender, EventArgs e) { **((GroupBox)sender).**BackColor = Color.Red; }

    thanks for everything i have...

    C# tutorial

  • How to pass a groupbox from a class to other class
    T TALHAKOSEN

    they are in a different class named baglanti public GroupBox gb; public void gbColor(GroupBox gbT) { gb = gbT; gb.MouseClick += new MouseEventHandler(gb_click); } private void gb_click(object sender, EventArgs e) { gb.BackColor = Color.Red; } in other class i use this to add gb_click event to the groupboxes clsBgl.gbColor(groupBox1); clsBgl.gbColor(groupBox2); clsBgl.gbColor(groupBox3); it always execute the lastone, when i click on groupbox3 its color is changing but others stay same. thanx for your helps..

    thanks for everything i have...

    C# tutorial

  • Write to Ms word document ???
    T TALHAKOSEN

    I found the solution, maybe somebody need it... to write as html on c# first take clipboard as html then use stringbuilder Object m = System.Reflection.Missing.Value; DataObject clipDO = new DataObject(); clipDO.SetData(DataFormats.Html, HtmlClipboardData(strHTML)); Clipboard.SetDataObject(clipDO, true); // Save to clipbaord object typeHtml = (object)Word.WdPasteDataType.wdPasteHTML; s.PasteSpecial(ref m, ref m, ref m, ref m, ref typeHtml, ref m, ref m); http://www.codeproject.com/script/Membership/Profiles.aspx?mid=252028 knowledge is valuable when it is shared !!!) and nobody has a right to make fun with anyone!! thx all

    thanks for everything i have...

    C# question html
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups