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
A

arbrsoft

@arbrsoft
About
Posts
10
Topics
10
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • axWebBrowser focus issue
    A arbrsoft

    AxSHDocVw.AxWebBrowser axWebBrowser1; I am making a web editor(wysiwyg editor). My program has a toolStrip and axWebBrowser control When I want to change the font of the webbrowser, select my comboBox on toolStrip, it make the font change but the FOCUS Remain in Font ComboBox. I want give the focus to axWebBrowser programmically. here is the code that executed when the ComboBox SelectedIndex changed

    case 32:
    doc1.execCommand("FontSize", false, (object) ((ToolStripComboBox)sender).SelectedItem.ToString().Split('(',')')[1]); //change font it works fine.

    //but next to give focus to axWebBrowser is not working.
    Win32.SetForegroundWindow(axWebBrowser1.Handle); //don't work
    Win32.SetFocus(new System.Runtime.InteropServices.HandleRef(null, axWebBrowser1.Handle)); //don't work

    //mshtml.IHTMLTxtRange txt = (mshtml.IHTMLTxtRange)doc1.selection.createRange();
    //txt.select(); //tried but...

    //axWebBrowser1.Update();
    //axWebBrowser1.Select(); //tried but...

    //tabPage1.SelectNextControl(axWebBrowser1, true, true, true, true); //tried but...
    //axWebBrowser1.Select(); //it is not working...

    please take care of my question. thanks a lot.

    C# help question announcement

  • OpenFileDialog with setting View mode to small icon
    A arbrsoft

    I want show my image files when my OpenFileDialog Find File in showing InisialDirectory... OpenFileDialog sp = new OpenFileDialog(); sp.InisialDicrectory = dir; list View mode or detail View mode doesn't show image. I need the small icon view mode. I tried DirectoryInfo but got no solution. It maybe a option for windows expolerer or a option for a Directory? I searched google but I didn't get it. somewhere must be a solution for this. help apprcieate. thanks.

    C# sharepoint help question

  • help to covert this to generic code... [modified]
    A arbrsoft

    //code is like this... [XmlRoot("AutoupData")] public class AutoupData { private ArrayList VersionArray; public AutoupData() { VersionArray = new ArrayList(); } [System.Xml.Serialization.XmlElement("versionInfo")] public VersionC[] VersionInfos { get { VersionC[] VersionInfos = new VersionC[VersionArray.Count]; VersionArray.CopyTo(VersionInfos); return VersionInfos; } set { if (value == null) return; VersionC[] VersionInfos = (VersionC[])value; VersionArray.Clear(); foreach (VersionC Versioninfo in VersionInfos) VersionArray.Add(Versioninfo); } } public int AddItem(VersionC VersionInfo) { return VersionArray.Add(VersionInfo); } } public class VersionC { [XmlAttribute("version")] public float version; public VersionC() { } public VersionC(float Version) { version = Version; } } //code end... is this using boxing and unboxing? if it does then how can I convert this code to generic one? I'm trying hard but the concept is so difficult to me. please help me. thanks.

    C# question xml json help announcement

  • Timer AutoResetEvent Animation...
    A arbrsoft

    I want to make a animation that moves from a position value using Timer and AutoResetEvent... I implemented it like this... AutoResetEvent are; private void StartMovie() { ptimer=new System.Windows.Forms.Timer(); ptimer.Interval=10; ptimer.Tick += new EventHandler(pTimerOnTick); ptimer.Start(); } private void pTimerOnTick(object sender, EventArgs e) { if(movingK<=605&&isMoving)//till movkingK(pos_X)<605 show it's moving. { are.Set(); movingK+=10; Invalidate(); are.ReSet(); are.WaitOne(); } else { are.Set(); StonePut(b_intStone,intValueTemp,b_selectedStone,selectValueTemp,First,0); ptimer.Stop(); ptimer.Tick-=new EventHandler(pTimerOnTick); isMoving=false; } } private void DThis1_Paint(object sender, System.Windows.Forms.PaintEventArgs e) { rectDst=new Rectangle(movingK,movingKY,54,60); grfx.DrawImage(GeneralsImage,rectDst,rectSrc,GraphicsUnit.Pixel); //paint rutine has no problem... } actually I did not understand well AutoResetEvent and how to it wait event and go next job... I think if it needs a loop then it goes more complex. please someone help me and show me a good implementation of this problem. Image will remind us some feelings and if I can ask someone about a problem, that's not a bad life.

    C# help tutorial career

  • CFile file.Open assertion failure
    A arbrsoft

    This code is working for... Open and Read the file "login.rec" in "RECENT" folder and add "USER_NICK" info for a combobox and enumerate "USER_NICK" for same combobox from all existing "USER_NICK.use" file. this may have a assertion failure error please fix this code for good working and no error. BOOL CLogin::OnInitDialog() { CDialog::OnInitDialog(); CMainFrame *pMainWnd=(CMainFrame*)AfxGetMainWnd(); CDiet_caloView *pView=(CDiet_caloView*)pMainWnd->GetActiveView(); CString one1; CString one; CString RecentUser; one1.Format("%s\\RECENT",pView->m_strInstallPath); CFileStatus status; if( CFile::GetStatus( one1, status )) { } else { CreateDirectory(one1, NULL); } one.Format("%s\\RECENT\\login.rec",pView->m_strInstallPath); if( CFile::GetStatus( one, status )) { CFile file; file.Open(one,CFile::modeRead); char ch[300]; int FileLength=file.GetLength(); file.Read(ch, FileLength); char seps[]="#"; char *token; token=strtok(ch,seps); token=strtok(NULL,seps); RecentUser.Format("%s",token); file.Close(); } CString sPath2; sPath2.Format("%s",pView->m_strInstallPath); WIN32_FIND_DATA stFindData; HANDLE hFindFile; CString sFile,sTextFile; CString UserNick; BOOL nRet; int nCount; int num; char* sPtr=NULL; sTextFile = sPath2; sPath2 += "\\user\\*.use"; CString DD; hFindFile = FindFirstFile(sPath2,&stFindData); int doit=0; ((CComboBox *)GetDlgItem(IDC_COMBO1))->ResetContent(); while(hFindFile != INVALID_HANDLE_VALUE) { if(stFindData.dwFileAttributes != FILE_ATTRIBUTE_DIRECTORY) { sFile = stFindData.cFileName; num=sFile.Find("."); UserNick.Format("%s",sFile.Left(num)); ((CComboBox*)GetDlgItem(IDC_COMBO1))->InsertString(doit,UserNick); nCount = ((CComboBox *)GetDlgItem(IDC_COMBO1))->GetCount(); if(UserNick==RecentUser) ((CComboBox *)GetDlgItem(IDC_COMBO1))->SetCurSel(doit); doit++; } nRet = FindNextFile(hFindFile,&stFindData); if( !nRet ) break; } FindClose(hFindFile); UpdateData(FALSE); return TRUE; //return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE } Image will remind us some feelings and if I can ask someone about a problem, that's not a bad life.

    C / C++ / MFC help

  • forms and resource
    A arbrsoft

    In WinForms programming I made 3 Forms. and the 3 forms have same menu but the menu load all forms each of menu item. So I think I want to make it does not take more resource when hide a form and show another form. So I made write down like this... class Form1 public Form2 form2; Form3 from3; Form1() { form2=new Form2(); form3=new Form3(); } and like above in another form. it makes a recursive function and resource take more and more, it can't show main screen. constructor has all resource, it is not I want. then I copy some code that is using owner but It has some more and more resource when I open file and close file. I can't use form1.Close it will shut down my program. then I can't get resource when I hide a form. menu can bring any another form of my program and then hide or close using form. I must implement it. but I'm a beginner. So I want kind explain. thanks you for reading. Image will remind us some feelings and if I can ask someone about a problem, that's not a bad life.

    C# learning csharp winforms help

  • How can I get width of window of my program when it change?
    A arbrsoft

    When width and height are Changed of my program, How can I get the width and height of my program. I see a code in example from a book but I'm not sure code is start with like this protected override void OnResize(EventArgs ea) What deligate or event need to get Size Changed event. and How can I get width and height of my program when it occurs? Image will remind us some feelings and if I can ask someone about a problem, that's not a bad life.

    C# question help tutorial learning

  • Can apple ArrayList in string[]
    A arbrsoft

    public ArrayList strline=new ArrayList(); strline.Add("I found a reason for me. To change who I used to be. A reason to start over new. And the reason is you."); strline.Add("Anger dwells only in the bosom of fools - John F. Kennedy."); I hoped this could be work. but it didn't. I want to replace string[] with readed Line by Line in txt file. and I know how to read line by line but string[] Length is fixed as initial. so I tried apple ArrayList in string[] but it's not easy to me. How can we treat this? Help me please. Image will remind us some feelings and if I can ask someone about a problem, that's not a bad life.

    C# help tutorial question

  • postion of text in label and text in textbox is not same
    A arbrsoft

    I made WinForm project. And I made a label and it has a font of 12 point and Comic Sans MS. And below of it, I made a textbox too and it has a font of 12 point and Comic Sans MS. both of it are multiline. and I give a words in this.label1.Text="I found a reason for me to change who I used to be. A reason to start over new. And the reason is you."; and I runed my program and I typed same as above on textbox. and position of the text of textbox is more left than label text. I hope it's position of left to right is same. Someone help please. StreamFormat? or anything? Image will remind us some feelings and if I can ask someone about a problem, that's not a bad life.

    C# help question

  • DAO query by array long[] numbers
    A arbrsoft

    I made a program using CDaoRecordSet with ACCESS97 database. And I want to query table data by array long[] that I have. long IDID[5]={7, 12, 14, 27, 33}; and I want to Do like this. CString ralp; //ID2 is a feild name of the table is named move in xx.mdb ralp.Format("ID2 LIKE %ld OR %ld OR %ld OR %ld OR %ld",IDID[0],IDID[1],IDID[2],IDID[3],IDID[4],IDID[5]"); m_pSet->m_strFilter=ralp; m_pSet->Requery(); But it goes wrong, it has just a one record though it must have 5. I want to query by my known numbers. Please help me. thanks.

    Database database data-structures help
  • Login

  • Don't have an account? Register

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